-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
497 lines (436 loc) · 26.1 KB
/
index.html
File metadata and controls
497 lines (436 loc) · 26.1 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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Agendamento - Studio Amanda Simplicio</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
box-sizing: border-box;
}
.gradient-bg {
background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}
.service-card:hover {
transform: translateY(-2px);
transition: all 0.3s ease;
}
.time-slot:hover {
background-color: #e0e7ff;
}
.time-slot.selected {
background-color: #1f2937;
color: white;
}
.calendar-day:hover {
background-color: #f3f4f6;
}
.calendar-day.selected {
background-color: #1f2937;
color: white;
}
.calendar-day.disabled {
opacity: 0.3;
cursor: not-allowed;
}
</style>
</head>
<body class="min-h-full bg-gray-50">
<!-- Header -->
<div class="gradient-bg text-white py-8">
<div class="max-w-4xl mx-auto px-4 text-center">
<h1 class="text-4xl font-bold mb-2">💅 Studio Amanda Simplicio</h1>
<p class="text-xl opacity-90">Agende seu horário de beleza</p>
<div class="mt-4 flex items-center justify-center gap-2">
<span class="text-lg">📱</span>
<span class="text-lg font-medium">(83) 99650-3562</span>
</div>
</div>
</div>
<div class="max-w-4xl mx-auto px-4 py-8">
<!-- Etapas do Agendamento -->
<div class="mb-8">
<div class="flex items-center justify-center space-x-4 mb-8">
<div class="flex items-center">
<div id="step1-indicator" class="w-8 h-8 bg-gray-800 text-white rounded-full flex items-center justify-center font-bold">1</div>
<span class="ml-2 font-medium">Serviço</span>
</div>
<div class="w-12 h-1 bg-gray-300"></div>
<div class="flex items-center">
<div id="step2-indicator" class="w-8 h-8 bg-gray-300 text-gray-600 rounded-full flex items-center justify-center font-bold">2</div>
<span class="ml-2 font-medium text-gray-600">Data</span>
</div>
<div class="w-12 h-1 bg-gray-300"></div>
<div class="flex items-center">
<div id="step3-indicator" class="w-8 h-8 bg-gray-300 text-gray-600 rounded-full flex items-center justify-center font-bold">3</div>
<span class="ml-2 font-medium text-gray-600">Horário</span>
</div>
</div>
</div>
<!-- Etapa 1: Seleção de Serviços -->
<div id="step1" class="bg-white rounded-lg shadow-lg p-6 mb-6">
<h2 class="text-2xl font-bold text-gray-800 mb-6">Escolha seu serviço</h2>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-4">
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="corte" data-price="25" data-duration="45">
<div class="text-2xl mb-2">✂️</div>
<h3 class="font-semibold text-lg">Corte Feminino</h3>
<p class="text-gray-600 text-sm mb-2">Corte personalizado</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">R$ 25,00</span>
<span class="text-gray-500 text-sm">45 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="escova" data-price="25" data-duration="30">
<div class="text-2xl mb-2">💨</div>
<h3 class="font-semibold text-lg">Escova</h3>
<p class="text-gray-600 text-sm mb-2">Escova modeladora</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">A partir de R$ 25,00</span>
<span class="text-gray-500 text-sm">30 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="sobrancelha-simples" data-price="20" data-duration="30">
<div class="text-2xl mb-2">👁️</div>
<h3 class="font-semibold text-lg">Designer de Sobrancelha Simples</h3>
<p class="text-gray-600 text-sm mb-2">Modelagem e design básico</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">R$ 20,00</span>
<span class="text-gray-500 text-sm">30 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="sobrancelha-henna" data-price="30" data-duration="45">
<div class="text-2xl mb-2">🎨</div>
<h3 class="font-semibold text-lg">Designer com Henna</h3>
<p class="text-gray-600 text-sm mb-2">Design + coloração com henna</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">R$ 30,00</span>
<span class="text-gray-500 text-sm">45 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="hidratacao" data-price="25" data-duration="90">
<div class="text-2xl mb-2">💧</div>
<h3 class="font-semibold text-lg">Hidratação</h3>
<p class="text-gray-600 text-sm mb-2">Tratamento capilar</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">R$ 25,00</span>
<span class="text-gray-500 text-sm">90 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="micropigmentacao" data-price="250" data-duration="120">
<div class="text-2xl mb-2">🖋️</div>
<h3 class="font-semibold text-lg">Micropigmentação</h3>
<p class="text-gray-600 text-sm mb-2">Micropigmentação de sobrancelhas</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">R$ 250,00</span>
<span class="text-gray-500 text-sm">120 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="extensao-cilios" data-price="70" data-duration="90">
<div class="text-2xl mb-2">👁️🗨️</div>
<h3 class="font-semibold text-lg">Extensão de Cílios</h3>
<p class="text-gray-600 text-sm mb-2">Alongamento e volume</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">R$ 70,00</span>
<span class="text-gray-500 text-sm">90 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="selagem" data-price="150" data-duration="120">
<div class="text-2xl mb-2">✨</div>
<h3 class="font-semibold text-lg">Selagem</h3>
<p class="text-gray-600 text-sm mb-2">Tratamento de selagem capilar</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">A partir de R$ 150,00</span>
<span class="text-gray-500 text-sm">120 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="mechas" data-price="150" data-duration="180">
<div class="text-2xl mb-2">🎨</div>
<h3 class="font-semibold text-lg">Mechas</h3>
<p class="text-gray-600 text-sm mb-2">Coloração e mechas</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">A partir de R$ 150,00</span>
<span class="text-gray-500 text-sm">180 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="depilacao-perna-meia" data-price="20" data-duration="30">
<div class="text-2xl mb-2">🦵</div>
<h3 class="font-semibold text-lg">Depilação Perna Meia</h3>
<p class="text-gray-600 text-sm mb-2">Depilação até o joelho</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">R$ 20,00</span>
<span class="text-gray-500 text-sm">30 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="depilacao-perna-completa" data-price="40" data-duration="60">
<div class="text-2xl mb-2">🦵</div>
<h3 class="font-semibold text-lg">Depilação Perna Completa</h3>
<p class="text-gray-600 text-sm mb-2">Depilação completa das pernas</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">R$ 40,00</span>
<span class="text-gray-500 text-sm">60 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="depilacao-axila" data-price="20" data-duration="15">
<div class="text-2xl mb-2">💪</div>
<h3 class="font-semibold text-lg">Depilação Axila</h3>
<p class="text-gray-600 text-sm mb-2">Depilação das axilas</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">R$ 20,00</span>
<span class="text-gray-500 text-sm">15 min</span>
</div>
</div>
<div class="service-card border-2 border-gray-200 rounded-lg p-4 cursor-pointer hover:border-gray-800" data-service="depilacao-face" data-price="50" data-duration="45">
<div class="text-2xl mb-2">👩</div>
<h3 class="font-semibold text-lg">Depilação Face</h3>
<p class="text-gray-600 text-sm mb-2">Depilação facial completa</p>
<div class="flex justify-between items-center">
<span class="text-gray-800 font-bold">R$ 50,00</span>
<span class="text-gray-500 text-sm">45 min</span>
</div>
</div>
</div>
</div>
<!-- Etapa 2: Seleção de Data -->
<div id="step2" class="bg-white rounded-lg shadow-lg p-6 mb-6 hidden">
<h2 class="text-2xl font-bold text-gray-800 mb-6">Escolha a data</h2>
<div class="grid grid-cols-7 gap-2 mb-4">
<div class="text-center font-semibold text-gray-600 py-2">Dom</div>
<div class="text-center font-semibold text-gray-600 py-2">Seg</div>
<div class="text-center font-semibold text-gray-600 py-2">Ter</div>
<div class="text-center font-semibold text-gray-600 py-2">Qua</div>
<div class="text-center font-semibold text-gray-600 py-2">Qui</div>
<div class="text-center font-semibold text-gray-600 py-2">Sex</div>
<div class="text-center font-semibold text-gray-600 py-2">Sáb</div>
</div>
<div id="calendar-grid" class="grid grid-cols-7 gap-2">
<!-- Dias serão gerados dinamicamente -->
</div>
</div>
<!-- Etapa 3: Seleção de Horário -->
<div id="step3" class="bg-white rounded-lg shadow-lg p-6 mb-6 hidden">
<h2 class="text-2xl font-bold text-gray-800 mb-6">Escolha o horário</h2>
<div class="grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-3" id="time-slots">
<!-- Horários serão gerados dinamicamente -->
</div>
</div>
<!-- Resumo e Confirmação -->
<div id="summary" class="bg-white rounded-lg shadow-lg p-6 hidden">
<h2 class="text-2xl font-bold text-gray-800 mb-6">Confirme seu agendamento</h2>
<div class="bg-gray-50 rounded-lg p-4 mb-6">
<div class="grid md:grid-cols-2 gap-4">
<div>
<h3 class="font-semibold text-gray-700 mb-2">Serviço</h3>
<p id="summary-service" class="text-lg"></p>
</div>
<div>
<h3 class="font-semibold text-gray-700 mb-2">Valor</h3>
<p id="summary-price" class="text-lg font-bold text-gray-800"></p>
</div>
<div>
<h3 class="font-semibold text-gray-700 mb-2">Data</h3>
<p id="summary-date" class="text-lg"></p>
</div>
<div>
<h3 class="font-semibold text-gray-700 mb-2">Horário</h3>
<p id="summary-time" class="text-lg"></p>
</div>
</div>
</div>
<form id="client-form" class="space-y-4 mb-6">
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Nome completo</label>
<input type="text" id="client-name" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500">
</div>
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Telefone</label>
<input type="tel" id="client-phone" required class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-gray-500">
</div>
</form>
<div class="flex gap-4">
<button id="back-btn" class="flex-1 bg-gray-300 text-gray-700 py-3 px-6 rounded-lg font-semibold hover:bg-gray-400 transition-colors">
Voltar
</button>
<button id="confirm-btn" class="flex-1 bg-gray-800 text-white py-3 px-6 rounded-lg font-semibold hover:bg-black transition-colors">
Confirmar Agendamento
</button>
</div>
</div>
<!-- Modal de Confirmação -->
<div id="confirmation-modal" class="fixed inset-0 bg-black bg-opacity-50 hidden items-center justify-center z-50">
<div class="bg-white rounded-lg p-8 max-w-md mx-4">
<div class="text-center">
<div class="text-6xl mb-4">✅</div>
<h3 class="text-2xl font-bold text-gray-800 mb-4">Agendamento Confirmado!</h3>
<p class="text-gray-600 mb-6">Seu agendamento foi realizado com sucesso. Entre em contato conosco pelo WhatsApp para confirmar.</p>
<button id="whatsapp-btn" class="w-full bg-green-500 text-white py-3 px-6 rounded-lg font-semibold hover:bg-green-600 transition-colors mb-3">
📱 Confirmar no WhatsApp
</button>
<button id="close-modal" class="w-full bg-gray-300 text-gray-700 py-2 px-6 rounded-lg font-semibold hover:bg-gray-400 transition-colors">
Fechar
</button>
</div>
</div>
</div>
</div>
<script>
let selectedService = null;
let selectedDate = null;
let selectedTime = null;
let currentStep = 1;
// Horários disponíveis
const availableHours = [
'08:00', '08:30', '09:00', '09:30', '10:00', '10:30',
'11:00', '11:30', '13:00', '13:30', '14:00', '14:30',
'15:00', '15:30', '16:00', '16:30', '17:00', '17:30'
];
// Seleção de serviços
document.querySelectorAll('.service-card').forEach(card => {
card.addEventListener('click', function() {
document.querySelectorAll('.service-card').forEach(c => c.classList.remove('border-gray-800', 'bg-gray-100'));
this.classList.add('border-gray-800', 'bg-gray-100');
selectedService = {
name: this.querySelector('h3').textContent,
price: this.dataset.price,
duration: this.dataset.duration,
type: this.dataset.service
};
setTimeout(() => {
goToStep(2);
}, 300);
});
});
// Geração do calendário
function generateCalendar() {
const calendarGrid = document.getElementById('calendar-grid');
const today = new Date();
const currentMonth = today.getMonth();
const currentYear = today.getFullYear();
// Primeiro dia do mês
const firstDay = new Date(currentYear, currentMonth, 1);
const lastDay = new Date(currentYear, currentMonth + 1, 0);
// Limpar calendário
calendarGrid.innerHTML = '';
// Dias vazios no início
for (let i = 0; i < firstDay.getDay(); i++) {
const emptyDay = document.createElement('div');
calendarGrid.appendChild(emptyDay);
}
// Dias do mês
for (let day = 1; day <= lastDay.getDate(); day++) {
const dayElement = document.createElement('div');
const dayDate = new Date(currentYear, currentMonth, day);
dayElement.className = 'calendar-day text-center py-3 cursor-pointer rounded-lg border';
dayElement.textContent = day;
// Desabilitar domingos e dias passados
if (dayDate.getDay() === 0 || dayDate < today) {
dayElement.classList.add('disabled');
} else {
dayElement.addEventListener('click', function() {
if (!this.classList.contains('disabled')) {
document.querySelectorAll('.calendar-day').forEach(d => d.classList.remove('selected'));
this.classList.add('selected');
selectedDate = new Date(currentYear, currentMonth, day);
setTimeout(() => {
goToStep(3);
}, 300);
}
});
}
calendarGrid.appendChild(dayElement);
}
}
// Geração dos horários
function generateTimeSlots() {
const timeSlotsContainer = document.getElementById('time-slots');
timeSlotsContainer.innerHTML = '';
availableHours.forEach(hour => {
const timeSlot = document.createElement('div');
timeSlot.className = 'time-slot text-center py-3 px-2 border rounded-lg cursor-pointer hover:bg-gray-100';
timeSlot.textContent = hour;
timeSlot.addEventListener('click', function() {
document.querySelectorAll('.time-slot').forEach(t => t.classList.remove('selected'));
this.classList.add('selected');
selectedTime = hour;
setTimeout(() => {
showSummary();
}, 300);
});
timeSlotsContainer.appendChild(timeSlot);
});
}
// Navegação entre etapas
function goToStep(step) {
// Esconder todas as etapas
document.querySelectorAll('#step1, #step2, #step3, #summary').forEach(el => el.classList.add('hidden'));
// Resetar indicadores
document.querySelectorAll('[id$="-indicator"]').forEach(indicator => {
indicator.className = 'w-8 h-8 bg-gray-300 text-gray-600 rounded-full flex items-center justify-center font-bold';
});
// Ativar etapa atual
currentStep = step;
document.getElementById(`step${step}`).classList.remove('hidden');
document.getElementById(`step${step}-indicator`).className = 'w-8 h-8 bg-gray-800 text-white rounded-full flex items-center justify-center font-bold';
// Gerar conteúdo específico da etapa
if (step === 2) {
generateCalendar();
} else if (step === 3) {
generateTimeSlots();
}
}
// Mostrar resumo
function showSummary() {
document.querySelectorAll('#step1, #step2, #step3').forEach(el => el.classList.add('hidden'));
document.getElementById('summary').classList.remove('hidden');
// Preencher resumo
document.getElementById('summary-service').textContent = selectedService.name;
document.getElementById('summary-price').textContent = `R$ ${selectedService.price},00`;
document.getElementById('summary-date').textContent = selectedDate.toLocaleDateString('pt-BR');
document.getElementById('summary-time').textContent = selectedTime;
}
// Botão voltar
document.getElementById('back-btn').addEventListener('click', function() {
if (currentStep > 1) {
goToStep(currentStep - 1);
}
});
// Confirmação do agendamento
document.getElementById('confirm-btn').addEventListener('click', function(e) {
e.preventDefault();
const name = document.getElementById('client-name').value;
const phone = document.getElementById('client-phone').value;
if (!name || !phone) {
alert('Por favor, preencha todos os campos obrigatórios.');
return;
}
document.getElementById('confirmation-modal').classList.remove('hidden');
document.getElementById('confirmation-modal').classList.add('flex');
});
// WhatsApp
document.getElementById('whatsapp-btn').addEventListener('click', function() {
const name = document.getElementById('client-name').value;
const message = `Olá! Gostaria de confirmar meu agendamento:
👤 Nome: ${name}
💅 Serviço: ${selectedService.name}
📅 Data: ${selectedDate.toLocaleDateString('pt-BR')}
⏰ Horário: ${selectedTime}
💰 Valor: R$ ${selectedService.price},00`;
const whatsappUrl = `https://wa.me/5583996503562?text=${encodeURIComponent(message)}`;
window.open(whatsappUrl, '_blank');
});
// Fechar modal
document.getElementById('close-modal').addEventListener('click', function() {
document.getElementById('confirmation-modal').classList.add('hidden');
document.getElementById('confirmation-modal').classList.remove('flex');
// Resetar formulário
location.reload();
});
// Inicializar
document.addEventListener('DOMContentLoaded', function() {
goToStep(1);
});
</script>
<form action="https://formsubmit.co/Curstotiamanda@hotmail.com" method="POST">
</form>
<script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'98ca020fc594ef81',t:'MTc2MDE0MDEwMS4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body>
</html>