Andxrey commited on
Commit
ff44cfa
·
verified ·
1 Parent(s): 5d725ea

Pagina pedido.html

Browse files
Files changed (1) hide show
  1. pedidos.html +334 -8
pedidos.html CHANGED
@@ -1,13 +1,339 @@
1
- <!-- pedidos.html -->
2
  <!DOCTYPE html>
3
  <html lang="pt-BR">
4
  <head>
5
- <meta charset="UTF-8">
6
- <title>Pedidos</title>
7
- <link rel="stylesheet" href="style.css"> <!-- Se quiser usar o mesmo CSS -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  </head>
9
- <body>
10
- <h1>Bem-vindo à página de pedidos!</h1>
11
- <a href="index.html">Voltar para a página inicial</a>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  </body>
13
- </html>
 
 
1
  <!DOCTYPE html>
2
  <html lang="pt-BR">
3
  <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Infinity Açaí</title>
7
+ <!-- Importando Tailwind CSS -->
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <!-- Importando Font Awesome para os ícones -->
10
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
11
+ <style>
12
+ /* Estilos para os itens da navegação */
13
+ .nav-item {
14
+ transition: all 0.3s ease; /* Suave transição para efeitos hover */
15
+ }
16
+ .nav-item:hover {
17
+ transform: translateY(-3px); /* Efeito de levantar ao passar o mouse */
18
+ }
19
+ .active-item {
20
+ background-color: white; /* Fundo branco para item ativo */
21
+ color: #6B46C1; /* Cor roxa para ícone ativo */
22
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* Sombra sutil */
23
+ }
24
+ .active-item .nav-text {
25
+ color: #6B46C1; /* Cor roxa para texto ativo */
26
+ }
27
+ .logo-text {
28
+ font-family: 'Arial', sans-serif;
29
+ letter-spacing: 1px; /* Espaçamento entre letras para melhor legibilidade */
30
+ }
31
+ .açai-icon {
32
+ color: #6B46C1; /* Cor roxa para o ícone do logo */
33
+ }
34
+ /* Estilos para o popup de login */
35
+ .login-overlay {
36
+ position: fixed;
37
+ top: 0;
38
+ left: 0;
39
+ right: 0;
40
+ bottom: 0;
41
+ background-color: rgba(0, 0, 0, 0.5); /* Fundo escuro semi-transparente */
42
+ display: flex;
43
+ justify-content: center;
44
+ align-items: center;
45
+ z-index: 1000; /* Garante que fique acima de tudo */
46
+ opacity: 0;
47
+ visibility: hidden;
48
+ transition: all 0.3s ease; /* Transição suave para aparecer/desaparecer */
49
+ }
50
+ .login-overlay.active {
51
+ opacity: 1;
52
+ visibility: visible;
53
+ }
54
+ .login-container {
55
+ transform: translateY(-20px); /* Efeito de deslizar ao aparecer */
56
+ transition: all 0.3s ease;
57
+ }
58
+ .login-overlay.active .login-container {
59
+ transform: translateY(0); /* Posição final quando ativo */
60
+ }
61
+ .input-phone {
62
+ letter-spacing: 2px; /* Espaçamento entre números do telefone */
63
+ }
64
+ </style>
65
  </head>
66
+ <body class="bg-purple-800 min-h-screen flex flex-col">
67
+ <header class="sticky top-0 z-50">
68
+ <nav class="bg-purple-800 shadow-lg">
69
+ <div class="max-w-6xl mx-auto px-4">
70
+ <div class="flex justify-between items-center py-4">
71
+ <!-- Logo e nome da marca -->
72
+ <div class="flex items-center space-x-3">
73
+ <div class="flex items-center">
74
+ <!-- Ícone do açaí (copo de açaí) -->
75
+ <i class="fas fa-wine-glass-alt text-3xl açai-icon"></i>
76
+ <!-- Texto do logo -->
77
+ <span class="logo-text text-white font-bold text-2xl ml-2">Infinity Açaí</span>
78
+ </div>
79
+ </div>
80
+
81
+ <!-- Navegação para desktop -->
82
+ <div class="hidden md:flex items-center space-x-1">
83
+ <!-- ÍTEM INÍCIO -->
84
+ <a href="#" id="home-btn" class="nav-item active-item py-2 px-5 rounded-full flex flex-col items-center justify-center">
85
+ <!-- Ícone de casa (representa a página inicial) -->
86
+ <i class="fas fa-home text-lg"></i>
87
+ <!-- Texto descritivo -->
88
+ <span class="nav-text text-xs mt-1">Início</span>
89
+ </a>
90
+
91
+ <!-- ÍTEM PROMOÇÕES -->
92
+ <a href="#" class="nav-item py-2 px-5 rounded-full flex flex-col items-center justify-center">
93
+ <!-- Ícone de porcentagem (representa promoções/descontos) -->
94
+ <i class="fas fa-percent text-lg text-white"></i>
95
+ <!-- Texto descritivo -->
96
+ <span class="nav-text text-white text-xs mt-1">Promoções</span>
97
+ </a>
98
+
99
+ <!-- ÍTEM PEDIDOS -->
100
+ <a href="pedidos.html" class="nav-item py-2 px-5 rounded-full flex flex-col items-center justify-center">
101
+ <!-- Ícone de sacola de compras (representa pedidos/carrinho) -->
102
+ <i class="fas fa-shopping-bag text-lg text-white"></i>
103
+ <!-- Texto descritivo -->
104
+ <span class="nav-text text-white text-xs mt-1">Pedidos</span>
105
+ </a>
106
+
107
+ <!-- ÍTEM ENTRAR/CADASTRAR -->
108
+ <a href="#" id="login-btn" class="nav-item py-2 px-5 rounded-full flex flex-col items-center justify-center">
109
+ <!-- Ícone de usuário (representa login/conta) -->
110
+ <i class="fas fa-user text-lg text-white"></i>
111
+ <!-- Texto descritivo -->
112
+ <span class="nav-text text-white text-xs mt-1">Entrar/Cadastrar</span>
113
+ </a>
114
+ </div>
115
+
116
+ <!-- Botão de menu para mobile -->
117
+ <div class="md:hidden flex items-center">
118
+ <button class="outline-none mobile-menu-button">
119
+ <!-- Ícone de menu hamburguer (três linhas horizontais) -->
120
+ <svg class="w-6 h-6 text-white" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" stroke="currentColor">
121
+ <path d="M4 6h16M4 12h16M4 18h16"></path>
122
+ </svg>
123
+ </button>
124
+ </div>
125
+ </div>
126
+ </div>
127
+
128
+ <!-- Menu mobile (oculto por padrão) -->
129
+ <div class="hidden mobile-menu bg-purple-900">
130
+ <div class="flex flex-col items-center py-4 space-y-4">
131
+ <!-- ÍTEM INÍCIO (MOBILE) -->
132
+ <a href="#" id="mobile-home-btn" class="nav-item active-item py-2 px-6 rounded-full flex flex-col items-center justify-center">
133
+ <!-- Ícone de casa (mesmo do desktop) -->
134
+ <i class="fas fa-home text-lg"></i>
135
+ <!-- Texto descritivo -->
136
+ <span class="nav-text text-xs mt-1">Início</span>
137
+ </a>
138
+
139
+ <!-- ÍTEM PROMOÇÕES (MOBILE) -->
140
+ <a href="#" class="nav-item py-2 px-6 rounded-full flex flex-col items-center justify-center">
141
+ <!-- Ícone de porcentagem (mesmo do desktop) -->
142
+ <i class="fas fa-percent text-lg text-white"></i>
143
+ <!-- Texto descritivo -->
144
+ <span class="nav-text text-white text-xs mt-1">Promoções</span>
145
+ </a>
146
+
147
+ <!-- ÍTEM PEDIDOS (MOBILE) -->
148
+ <a href="pedidos.html" class="nav-item py-2 px-6 rounded-full flex flex-col items-center justify-center">
149
+ <!-- Ícone de sacola de compras (mesmo do desktop) -->
150
+ <i class="fas fa-shopping-bag text-lg text-white"></i>
151
+ <!-- Texto descritivo -->
152
+ <span class="nav-text text-white text-xs mt-1">Pedidos</span>
153
+ </a>
154
+
155
+ <!-- ÍTEM ENTRAR/CADASTRAR (MOBILE) -->
156
+ <a href="#" id="mobile-login-btn" class="nav-item py-2 px-6 rounded-full flex flex-col items-center justify-center">
157
+ <!-- Ícone de usuário (mesmo do desktop) -->
158
+ <i class="fas fa-user text-lg text-white"></i>
159
+ <!-- Texto descritivo -->
160
+ <span class="nav-text text-white text-xs mt-1">Entrar/Cadastrar</span>
161
+ </a>
162
+ </div>
163
+ </div>
164
+ </nav>
165
+ </header>
166
+
167
+ <!-- Popup de Login (oculto por padrão) -->
168
+ <div class="login-overlay" id="login-overlay">
169
+ <div class="login-container bg-white rounded-lg shadow-xl w-full max-w-md mx-4">
170
+ <div class="p-6">
171
+ <!-- Cabeçalho do popup -->
172
+ <div class="flex justify-between items-center mb-6">
173
+ <h2 class="text-2xl font-bold text-purple-800">Entrar ou Cadastrar</h2>
174
+ <!-- Ícone de X para fechar o popup -->
175
+ <button id="close-login" class="text-gray-500 hover:text-gray-700">
176
+ <i class="fas fa-times text-xl"></i>
177
+ </button>
178
+ </div>
179
+
180
+ <!-- Campo de entrada para telefone -->
181
+ <div class="mb-6">
182
+ <p class="text-gray-600 mb-4">Digite seu número de telefone para continuar</p>
183
+ <div class="relative">
184
+ <!-- Prefixo do país (+55) -->
185
+ <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
186
+ <span class="text-gray-500">+55</span>
187
+ </div>
188
+ <!-- Input para o número de telefone -->
189
+ <input type="tel" id="phone-number" class="input-phone w-full pl-12 py-3 border-b-2 border-purple-300 focus:border-purple-600 outline-none text-lg" placeholder="(00) 00000-0000" maxlength="15">
190
+ </div>
191
+ </div>
192
+
193
+ <!-- Botões de ação -->
194
+ <div class="flex flex-col space-y-3">
195
+ <!-- Botão principal (Continuar) -->
196
+ <button id="continue-btn" class="bg-purple-600 hover:bg-purple-700 text-white py-3 px-4 rounded-lg font-medium transition-colors">
197
+ Continuar
198
+ </button>
199
+ <!-- Alternativa para login com e-mail -->
200
+ <button class="text-purple-600 hover:text-purple-800 py-2 font-medium transition-colors">
201
+ Entrar com e-mail
202
+ </button>
203
+ </div>
204
+
205
+ <!-- Rodapé com termos e políticas -->
206
+ <div class="mt-6 pt-6 border-t border-gray-200">
207
+ <p class="text-sm text-gray-500">Ao continuar, você concorda com nossos <a href="#" class="text-purple-600 hover:underline">Termos de Serviço</a> e <a href="#" class="text-purple-600 hover:underline">Política de Privacidade</a>.</p>
208
+ </div>
209
+ </div>
210
+ </div>
211
+ </div>
212
+
213
+ <script>
214
+ // ==============================================
215
+ // CONTROLE DO MENU MOBILE
216
+ // ==============================================
217
+ const btn = document.querySelector(".mobile-menu-button");
218
+ const menu = document.querySelector(".mobile-menu");
219
+
220
+ // Mostrar/esconder menu mobile ao clicar no ícone de hamburguer
221
+ btn.addEventListener("click", () => {
222
+ menu.classList.toggle("hidden");
223
+ });
224
+
225
+ // ==============================================
226
+ // CONTROLE DOS ITENS DE NAVEGAÇÃO ATIVOS
227
+ // ==============================================
228
+ const navItems = document.querySelectorAll('.nav-item');
229
+
230
+ // Adiciona comportamento ativo aos itens de navegação
231
+ navItems.forEach(item => {
232
+ item.addEventListener('click', function() {
233
+ // Remove a classe ativa de todos os itens
234
+ navItems.forEach(nav => {
235
+ nav.classList.remove('active-item');
236
+ nav.querySelector('i').classList.remove('text-purple-800');
237
+ nav.querySelector('i').classList.add('text-white');
238
+ nav.querySelector('.nav-text').classList.remove('text-purple-800');
239
+ nav.querySelector('.nav-text').classList.add('text-white');
240
+ });
241
+
242
+ // Adiciona a classe ativa ao item clicado
243
+ this.classList.add('active-item');
244
+ this.querySelector('i').classList.remove('text-white');
245
+ this.querySelector('i').classList.add('text-purple-800');
246
+ this.querySelector('.nav-text').classList.remove('text-white');
247
+ this.querySelector('.nav-text').classList.add('text-purple-800');
248
+ });
249
+ });
250
+
251
+ // ==============================================
252
+ // CONTROLE DO POPUP DE LOGIN
253
+ // ==============================================
254
+ const loginOverlay = document.getElementById('login-overlay');
255
+ const loginBtn = document.getElementById('login-btn');
256
+ const mobileLoginBtn = document.getElementById('mobile-login-btn');
257
+ const closeLogin = document.getElementById('close-login');
258
+ const continueBtn = document.getElementById('continue-btn');
259
+ const phoneInput = document.getElementById('phone-number');
260
+
261
+ // Formata o número de telefone enquanto o usuário digita
262
+ phoneInput.addEventListener('input', function(e) {
263
+ let value = e.target.value.replace(/\D/g, '');
264
+
265
+ if (value.length > 0) {
266
+ value = value.replace(/^(\d{2})(\d)/g, '($1) $2');
267
+ }
268
+ if (value.length > 10) {
269
+ value = value.replace(/(\d{5})(\d)/, '$1-$2');
270
+ }
271
+
272
+ e.target.value = value.substring(0, 15);
273
+ });
274
+
275
+ // Mostra/esconde o popup de login
276
+ function toggleLoginPopup() {
277
+ loginOverlay.classList.toggle('active');
278
+ document.body.style.overflow = loginOverlay.classList.contains('active') ? 'hidden' : '';
279
+ }
280
+
281
+ // Abre o popup ao clicar no ícone de usuário (desktop)
282
+ loginBtn.addEventListener('click', function(e) {
283
+ e.preventDefault();
284
+ toggleLoginPopup();
285
+ });
286
+
287
+ // Abre o popup ao clicar no ícone de usuário (mobile)
288
+ mobileLoginBtn.addEventListener('click', function(e) {
289
+ e.preventDefault();
290
+ menu.classList.add('hidden'); // Fecha o menu mobile
291
+ toggleLoginPopup();
292
+ });
293
+
294
+ // Fecha o popup ao clicar no ícone de X
295
+ closeLogin.addEventListener('click', toggleLoginPopup);
296
+
297
+ // Valida o número de telefone ao clicar em Continuar
298
+ continueBtn.addEventListener('click', function() {
299
+ const phoneNumber = phoneInput.value;
300
+ if (phoneNumber.replace(/\D/g, '').length >= 11) {
301
+ alert(`Número válido: ${phoneNumber}\nRedirecionando para verificação...`);
302
+ // Aqui você pode adicionar a lógica para enviar o número para verificação
303
+ toggleLoginPopup();
304
+ } else {
305
+ alert('Por favor, insira um número de telefone válido com DDD (11 dígitos)');
306
+ }
307
+ });
308
+
309
+ // Fecha o popup ao clicar fora da área do formulário
310
+ loginOverlay.addEventListener('click', function(e) {
311
+ if (e.target === loginOverlay) {
312
+ toggleLoginPopup();
313
+ }
314
+ });
315
+
316
+ // ==============================================
317
+ // CONTROLE DO BOTÃO INÍCIO
318
+ // ==============================================
319
+ const homeBtn = document.getElementById('home-btn');
320
+ const mobileHomeBtn = document.getElementById('mobile-home-btn');
321
+
322
+ // Função para navegar para a página inicial
323
+ function goToHomePage(e) {
324
+ e.preventDefault();
325
+ // Aqui você pode adicionar lógica para recarregar a página ou navegar para a home
326
+ window.location.href = window.location.origin + window.location.pathname;
327
+ }
328
+
329
+ // Configura o clique no ícone de casa (desktop)
330
+ homeBtn.addEventListener('click', goToHomePage);
331
+
332
+ // Configura o clique no ícone de casa (mobile)
333
+ mobileHomeBtn.addEventListener('click', function(e) {
334
+ goToHomePage(e);
335
+ menu.classList.add('hidden'); // Fecha o menu mobile
336
+ });
337
+ </script>
338
  </body>
339
+ </html>