-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget-started.html
More file actions
301 lines (270 loc) · 6.24 KB
/
get-started.html
File metadata and controls
301 lines (270 loc) · 6.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Get Started | HOSPO Hospitality Recruitment</title>
<meta name="description" content="Start your journey with HOSPO. Hire premium hospitality staff or find your next opportunity across the UK.">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
:root{
--primary:#0B1F3B;
--primary-light:#1E4ED8;
--accent:#C7A14A;
--bg:#F8FAFC;
--text:#0F172A;
--muted:#64748B;
--radius:14px;
--shadow:0 12px 30px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
body{
margin:0;
font-family:'Inter',sans-serif;
background:var(--bg);
color:var(--text);
}
.container{
width:92%;
max-width:800px;
margin:auto;
padding:60px 0;
}
/* HEADER */
header{
text-align:center;
margin-bottom:40px;
}
header h1{
font-size:clamp(1.8rem,4vw,2.5rem);
}
/* SPLIT PATH */
.split{
display:grid;
gap:20px;
grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
margin-bottom:40px;
}
.path-card{
background:#fff;
padding:30px;
border-radius:var(--radius);
box-shadow:var(--shadow);
text-align:center;
cursor:pointer;
transition:.3s ease;
}
.path-card:hover{
transform:translateY(-5px);
}
.path-card.active{
border:2px solid var(--primary);
}
/* FORM */
form{
background:#fff;
padding:30px;
border-radius:var(--radius);
box-shadow:var(--shadow);
display:none;
}
.step{
display:none;
}
.step.active{
display:block;
}
input,select,textarea{
width:100%;
padding:12px;
margin-bottom:16px;
border-radius:8px;
border:1px solid #ddd;
}
button{
padding:12px 20px;
border:none;
border-radius:8px;
font-weight:600;
cursor:pointer;
}
.btn-primary{
background:var(--primary);
color:#fff;
}
.btn-accent{
background:var(--accent);
color:var(--primary);
}
/* PROGRESS BAR */
.progress{
height:8px;
background:#eee;
border-radius:4px;
overflow:hidden;
margin-bottom:25px;
}
.progress-bar{
height:100%;
width:0%;
background:var(--primary);
transition:.4s ease;
}
/* GDPR */
.gdpr{
font-size:.85rem;
color:var(--muted);
display:flex;
align-items:flex-start;
gap:8px;
}
/* THANK YOU */
.thank-you{
display:none;
text-align:center;
padding:40px;
background:#fff;
border-radius:var(--radius);
box-shadow:var(--shadow);
}
.thank-you h2{
color:var(--primary);
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Let’s Get Started</h1>
<p>Tell us what you need — we’ll take care of the rest.</p>
</header>
<!-- SPLIT PATH -->
<div class="split">
<div class="path-card" onclick="selectPath('hire')">
<h3>Hire Staff</h3>
<p>Find exceptional hospitality professionals.</p>
</div>
<div class="path-card" onclick="selectPath('job')">
<h3>Find a Job</h3>
<p>Discover your next opportunity in hospitality.</p>
</div>
</div>
<!-- MULTI STEP FORM -->
<form id="multiForm">
<div class="progress">
<div class="progress-bar" id="progressBar"></div>
</div>
<!-- STEP 1 -->
<div class="step active">
<input type="text" id="name" placeholder="Full Name" required>
<input type="email" id="email" placeholder="Email Address" required>
<button type="button" class="btn-primary" onclick="nextStep()">Next</button>
</div>
<!-- STEP 2 -->
<div class="step">
<div id="dynamicFields"></div>
<button type="button" onclick="prevStep()">Back</button>
<button type="button" class="btn-primary" onclick="nextStep()">Next</button>
</div>
<!-- STEP 3 -->
<div class="step">
<textarea id="message" placeholder="Tell us more about your requirements..."></textarea>
<div class="gdpr">
<input type="checkbox" id="gdpr">
<label for="gdpr">
I consent to HOSPO storing my information in accordance with GDPR regulations.
</label>
</div>
<button type="button" onclick="prevStep()">Back</button>
<button type="button" class="btn-accent" onclick="submitForm()">Submit</button>
</div>
</form>
<!-- THANK YOU SCREEN -->
<div class="thank-you" id="thankYou">
<h2>Thank You!</h2>
<p>Our team will contact you within 24 hours.</p>
</div>
</div>
<script>
let currentStep=0;
let selectedPath=null;
const steps=document.querySelectorAll(".step");
const form=document.getElementById("multiForm");
const progressBar=document.getElementById("progressBar");
/* SELECT PATH */
function selectPath(path){
selectedPath=path;
document.querySelectorAll(".path-card")
.forEach(card=>card.classList.remove("active"));
event.currentTarget.classList.add("active");
form.style.display="block";
const dynamic=document.getElementById("dynamicFields");
dynamic.innerHTML="";
if(path==="hire"){
dynamic.innerHTML=`
<input type="text" placeholder="Company Name" required>
<select required>
<option value="">Role Type</option>
<option>Chef</option>
<option>Manager</option>
<option>Front of House</option>
</select>
`;
} else {
dynamic.innerHTML=`
<input type="text" placeholder="Desired Role" required>
<select required>
<option value="">Preferred Location</option>
<option>London</option>
<option>Manchester</option>
<option>Birmingham</option>
</select>
`;
}
}
/* STEP NAVIGATION */
function showStep(index){
steps.forEach((step,i)=>{
step.classList.toggle("active",i===index);
});
progressBar.style.width=((index)/(steps.length-1))*100+"%";
}
function nextStep(){
if(!validateStep()) return;
if(currentStep<steps.length-1){
currentStep++;
showStep(currentStep);
}
}
function prevStep(){
if(currentStep>0){
currentStep--;
showStep(currentStep);
}
}
/* VALIDATION */
function validateStep(){
const activeStep=steps[currentStep];
const inputs=activeStep.querySelectorAll("input[required], select[required]");
for(let input of inputs){
if(!input.value){
input.style.border="2px solid red";
return false;
} else {
input.style.border="1px solid #ddd";
}
}
return true;
}
/* SUBMIT */
function submitForm(){
if(!document.getElementById("gdpr").checked){
alert("Please accept GDPR consent.");
return;
}
form.style.display="none";
document.getElementById("thankYou").style.display="block";
}
</script>
</body>
</html>