Avex3 commited on
Commit
23f8055
·
verified ·
1 Parent(s): edfca50

Criar um site, com nome PADARIA DO AVEX moderno, bonito e funcional para uma padaria comercializar pães e produtos de confeitaria online, com um painel administrativo completo (backend) que permita total controle do conteúdo, com opção de baixar o site para uso pessoal. - Initial Deployment

Browse files
Files changed (2) hide show
  1. README.md +7 -5
  2. index.html +796 -19
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Https Huggingface Co Spaces
3
- emoji: 🐨
4
- colorFrom: gray
5
- colorTo: green
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: https-huggingface-co-spaces
3
+ emoji: 🐳
4
+ colorFrom: red
5
+ colorTo: pink
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,796 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </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>Padaria do Avex | Pães Artesanais e Confeitaria</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ /* Custom CSS for elements that need more precise control */
11
+ .hero-bg {
12
+ background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1509440159596-0249088772ff');
13
+ background-size: cover;
14
+ background-position: center;
15
+ }
16
+
17
+ .bread-card:hover {
18
+ transform: translateY(-5px);
19
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
20
+ }
21
+
22
+ .admin-panel {
23
+ transition: all 0.3s ease;
24
+ }
25
+
26
+ .admin-panel.active {
27
+ right: 0;
28
+ }
29
+
30
+ /* Animation for the shopping cart */
31
+ @keyframes pulse {
32
+ 0% { transform: scale(1); }
33
+ 50% { transform: scale(1.1); }
34
+ 100% { transform: scale(1); }
35
+ }
36
+
37
+ .cart-pulse {
38
+ animation: pulse 0.5s ease;
39
+ }
40
+ </style>
41
+ </head>
42
+ <body class="font-sans bg-gray-50">
43
+ <!-- Header/Navigation -->
44
+ <header class="bg-amber-800 text-white shadow-lg sticky top-0 z-50">
45
+ <div class="container mx-auto px-4 py-3 flex justify-between items-center">
46
+ <div class="flex items-center space-x-2">
47
+ <i class="fas fa-bread-slice text-2xl text-amber-200"></i>
48
+ <h1 class="text-2xl font-bold">PADARIA DO AVEX</h1>
49
+ </div>
50
+
51
+ <nav class="hidden md:flex space-x-6">
52
+ <a href="#home" class="hover:text-amber-200 transition">Início</a>
53
+ <a href="#products" class="hover:text-amber-200 transition">Produtos</a>
54
+ <a href="#about" class="hover:text-amber-200 transition">Sobre Nós</a>
55
+ <a href="#contact" class="hover:text-amber-200 transition">Contato</a>
56
+ </nav>
57
+
58
+ <div class="flex items-center space-x-4">
59
+ <div class="relative cursor-pointer" id="cartIcon">
60
+ <i class="fas fa-shopping-cart text-xl"></i>
61
+ <span class="absolute -top-2 -right-2 bg-amber-200 text-amber-900 rounded-full w-5 h-5 flex items-center justify-center text-xs font-bold" id="cartCount">0</span>
62
+ </div>
63
+
64
+ <button id="adminToggle" class="bg-amber-600 hover:bg-amber-700 px-3 py-1 rounded-md text-sm hidden md:block">
65
+ <i class="fas fa-user-shield mr-1"></i> Admin
66
+ </button>
67
+
68
+ <button class="md:hidden text-xl" id="mobileMenuButton">
69
+ <i class="fas fa-bars"></i>
70
+ </button>
71
+ </div>
72
+ </div>
73
+
74
+ <!-- Mobile Menu -->
75
+ <div class="md:hidden bg-amber-700 hidden" id="mobileMenu">
76
+ <div class="container mx-auto px-4 py-2 flex flex-col space-y-2">
77
+ <a href="#home" class="py-2 hover:text-amber-200 transition">Início</a>
78
+ <a href="#products" class="py-2 hover:text-amber-200 transition">Produtos</a>
79
+ <a href="#about" class="py-2 hover:text-amber-200 transition">Sobre Nós</a>
80
+ <a href="#contact" class="py-2 hover:text-amber-200 transition">Contato</a>
81
+ <button class="bg-amber-600 hover:bg-amber-700 px-3 py-2 rounded-md text-sm w-full text-left">
82
+ <i class="fas fa-user-shield mr-1"></i> Área Admin
83
+ </button>
84
+ </div>
85
+ </div>
86
+ </header>
87
+
88
+ <!-- Hero Section -->
89
+ <section id="home" class="hero-bg text-white py-20 md:py-32">
90
+ <div class="container mx-auto px-4 text-center">
91
+ <h2 class="text-4xl md:text-6xl font-bold mb-4">Pães Artesanais com Amor</h2>
92
+ <p class="text-xl md:text-2xl mb-8 max-w-2xl mx-auto">Descubra o sabor autêntico da Padaria do Avex. Feitos diariamente com ingredientes selecionados.</p>
93
+ <div class="flex flex-col sm:flex-row justify-center gap-4">
94
+ <a href="#products" class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-3 px-6 rounded-lg transition duration-300 transform hover:scale-105">
95
+ Nossos Produtos
96
+ </a>
97
+ <a href="#contact" class="bg-white hover:bg-gray-100 text-amber-800 font-bold py-3 px-6 rounded-lg transition duration-300 transform hover:scale-105">
98
+ Faça seu Pedido
99
+ </a>
100
+ </div>
101
+ </div>
102
+ </section>
103
+
104
+ <!-- Featured Products -->
105
+ <section id="products" class="py-16 bg-white">
106
+ <div class="container mx-auto px-4">
107
+ <div class="text-center mb-12">
108
+ <h2 class="text-3xl md:text-4xl font-bold text-amber-900 mb-4">Nossos Produtos</h2>
109
+ <p class="text-gray-600 max-w-2xl mx-auto">Selecione entre nossa variedade de pães frescos, doces e salgados feitos artesanalmente todos os dias.</p>
110
+ </div>
111
+
112
+ <!-- Product Categories -->
113
+ <div class="flex justify-center mb-8 overflow-x-auto pb-2">
114
+ <div class="flex space-x-2">
115
+ <button class="category-btn active px-4 py-2 rounded-full bg-amber-600 text-white" data-category="all">Todos</button>
116
+ <button class="category-btn px-4 py-2 rounded-full bg-amber-100 text-amber-800 hover:bg-amber-200" data-category="bread">Pães</button>
117
+ <button class="category-btn px-4 py-2 rounded-full bg-amber-100 text-amber-800 hover:bg-amber-200" data-category="pastry">Confeitaria</button>
118
+ <button class="category-btn px-4 py-2 rounded-full bg-amber-100 text-amber-800 hover:bg-amber-200" data-category="cake">Bolos</button>
119
+ <button class="category-btn px-4 py-2 rounded-full bg-amber-100 text-amber-800 hover:bg-amber-200" data-category="gluten-free">Sem Glúten</button>
120
+ </div>
121
+ </div>
122
+
123
+ <!-- Product Grid -->
124
+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8" id="productGrid">
125
+ <!-- Products will be loaded here via JavaScript -->
126
+ </div>
127
+ </div>
128
+ </section>
129
+
130
+ <!-- About Section -->
131
+ <section id="about" class="py-16 bg-amber-50">
132
+ <div class="container mx-auto px-4">
133
+ <div class="flex flex-col md:flex-row items-center">
134
+ <div class="md:w-1/2 mb-8 md:mb-0 md:pr-8">
135
+ <img src="https://images.unsplash.com/photo-1608190003443-86b2636f7092" alt="Padaria do Avex" class="rounded-lg shadow-xl w-full h-auto">
136
+ </div>
137
+ <div class="md:w-1/2">
138
+ <h2 class="text-3xl md:text-4xl font-bold text-amber-900 mb-6">Nossa História</h2>
139
+ <p class="text-gray-700 mb-4">Fundada em 2010, a Padaria do Avex nasceu do sonho de trazer pães artesanais de qualidade para nossa comunidade. Começamos pequenos, mas com muita dedicação e amor pelo que fazemos.</p>
140
+ <p class="text-gray-700 mb-6">Hoje, mantemos a tradição de fazer pães como antigamente, com fermentação natural e ingredientes selecionados, sem aditivos ou conservantes. Cada produto que sai do nosso forno é feito com o mesmo cuidado e atenção que tínhamos no primeiro dia.</p>
141
+ <div class="grid grid-cols-2 gap-4">
142
+ <div class="bg-white p-4 rounded-lg shadow">
143
+ <i class="fas fa-award text-amber-600 text-2xl mb-2"></i>
144
+ <h3 class="font-bold text-amber-900">Qualidade Garantida</h3>
145
+ <p class="text-sm text-gray-600">Ingredientes selecionados e processos artesanais</p>
146
+ </div>
147
+ <div class="bg-white p-4 rounded-lg shadow">
148
+ <i class="fas fa-leaf text-amber-600 text-2xl mb-2"></i>
149
+ <h3 class="font-bold text-amber-900">Natural</h3>
150
+ <p class="text-sm text-gray-600">Sem conservantes ou aditivos artificiais</p>
151
+ </div>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ </div>
156
+ </section>
157
+
158
+ <!-- Testimonials -->
159
+ <section class="py-16 bg-amber-800 text-white">
160
+ <div class="container mx-auto px-4">
161
+ <h2 class="text-3xl md:text-4xl font-bold mb-12 text-center">O Que Nossos Clientes Dizem</h2>
162
+
163
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
164
+ <div class="bg-amber-700 p-6 rounded-lg">
165
+ <div class="flex items-center mb-4">
166
+ <img src="https://randomuser.me/api/portraits/women/32.jpg" alt="Cliente" class="w-12 h-12 rounded-full mr-4">
167
+ <div>
168
+ <h3 class="font-bold">Maria Silva</h3>
169
+ <div class="flex text-amber-200">
170
+ <i class="fas fa-star"></i>
171
+ <i class="fas fa-star"></i>
172
+ <i class="fas fa-star"></i>
173
+ <i class="fas fa-star"></i>
174
+ <i class="fas fa-star"></i>
175
+ </div>
176
+ </div>
177
+ </div>
178
+ <p>"Os pães da Padaria do Avex são incríveis! Compro toda semana e nunca decepcionam. O pão de fermentação natural é meu favorito."</p>
179
+ </div>
180
+
181
+ <div class="bg-amber-700 p-6 rounded-lg">
182
+ <div class="flex items-center mb-4">
183
+ <img src="https://randomuser.me/api/portraits/men/45.jpg" alt="Cliente" class="w-12 h-12 rounded-full mr-4">
184
+ <div>
185
+ <h3 class="font-bold">João Santos</h3>
186
+ <div class="flex text-amber-200">
187
+ <i class="fas fa-star"></i>
188
+ <i class="fas fa-star"></i>
189
+ <i class="fas fa-star"></i>
190
+ <i class="fas fa-star"></i>
191
+ <i class="fas fa-star-half-alt"></i>
192
+ </div>
193
+ </div>
194
+ </div>
195
+ <p>"Como celíaco, sempre tive dificuldade em encontrar pães bons sem glúten. A linha especial da Padaria do Avex mudou isso para mim!"</p>
196
+ </div>
197
+
198
+ <div class="bg-amber-700 p-6 rounded-lg">
199
+ <div class="flex items-center mb-4">
200
+ <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Cliente" class="w-12 h-12 rounded-full mr-4">
201
+ <div>
202
+ <h3 class="font-bold">Ana Oliveira</h3>
203
+ <div class="flex text-amber-200">
204
+ <i class="fas fa-star"></i>
205
+ <i class="fas fa-star"></i>
206
+ <i class="fas fa-star"></i>
207
+ <i class="fas fa-star"></i>
208
+ <i class="fas fa-star"></i>
209
+ </div>
210
+ </div>
211
+ </div>
212
+ <p>"Compro os doces para eventos e todos sempre elogiam. A qualidade é excelente e o atendimento muito atencioso. Recomendo!"</p>
213
+ </div>
214
+ </div>
215
+ </div>
216
+ </section>
217
+
218
+ <!-- Contact Section -->
219
+ <section id="contact" class="py-16 bg-white">
220
+ <div class="container mx-auto px-4">
221
+ <div class="text-center mb-12">
222
+ <h2 class="text-3xl md:text-4xl font-bold text-amber-900 mb-4">Faça Seu Pedido</h2>
223
+ <p class="text-gray-600 max-w-2xl mx-auto">Entre em contato conosco para encomendas ou tire suas dúvidas.</p>
224
+ </div>
225
+
226
+ <div class="flex flex-col md:flex-row gap-8">
227
+ <div class="md:w-1/2">
228
+ <form class="space-y-4">
229
+ <div>
230
+ <label for="name" class="block text-gray-700 mb-2">Nome</label>
231
+ <input type="text" id="name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-500 focus:border-amber-500">
232
+ </div>
233
+
234
+ <div>
235
+ <label for="email" class="block text-gray-700 mb-2">Email</label>
236
+ <input type="email" id="email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-500 focus:border-amber-500">
237
+ </div>
238
+
239
+ <div>
240
+ <label for="phone" class="block text-gray-700 mb-2">Telefone</label>
241
+ <input type="tel" id="phone" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-500 focus:border-amber-500">
242
+ </div>
243
+
244
+ <div>
245
+ <label for="message" class="block text-gray-700 mb-2">Mensagem/Pedido</label>
246
+ <textarea id="message" rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-amber-500 focus:border-amber-500"></textarea>
247
+ </div>
248
+
249
+ <button type="submit" class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-3 px-6 rounded-lg transition duration-300 w-full">
250
+ Enviar Mensagem
251
+ </button>
252
+ </form>
253
+ </div>
254
+
255
+ <div class="md:w-1/2 bg-amber-50 p-8 rounded-lg">
256
+ <h3 class="text-2xl font-bold text-amber-900 mb-4">Informações de Contato</h3>
257
+
258
+ <div class="space-y-4">
259
+ <div class="flex items-start">
260
+ <i class="fas fa-map-marker-alt text-amber-600 mt-1 mr-3"></i>
261
+ <div>
262
+ <h4 class="font-bold text-gray-800">Endereço</h4>
263
+ <p class="text-gray-600">Rua dos Padeiros, 123 - Centro, Avex</p>
264
+ </div>
265
+ </div>
266
+
267
+ <div class="flex items-start">
268
+ <i class="fas fa-phone-alt text-amber-600 mt-1 mr-3"></i>
269
+ <div>
270
+ <h4 class="font-bold text-gray-800">Telefone</h4>
271
+ <p class="text-gray-600">(11) 98765-4321</p>
272
+ </div>
273
+ </div>
274
+
275
+ <div class="flex items-start">
276
+ <i class="fas fa-envelope text-amber-600 mt-1 mr-3"></i>
277
+ <div>
278
+ <h4 class="font-bold text-gray-800">Email</h4>
279
+ <p class="text-gray-600">contato@padariadoavex.com.br</p>
280
+ </div>
281
+ </div>
282
+
283
+ <div class="flex items-start">
284
+ <i class="fas fa-clock text-amber-600 mt-1 mr-3"></i>
285
+ <div>
286
+ <h4 class="font-bold text-gray-800">Horário de Funcionamento</h4>
287
+ <p class="text-gray-600">Segunda a Sexta: 6h às 19h</p>
288
+ <p class="text-gray-600">Sábado: 6h às 14h</p>
289
+ <p class="text-gray-600">Domingo: Fechado</p>
290
+ </div>
291
+ </div>
292
+ </div>
293
+
294
+ <div class="mt-6">
295
+ <h4 class="font-bold text-gray-800 mb-2">Siga-nos</h4>
296
+ <div class="flex space-x-4">
297
+ <a href="#" class="text-amber-600 hover:text-amber-800 text-xl"><i class="fab fa-facebook"></i></a>
298
+ <a href="#" class="text-amber-600 hover:text-amber-800 text-xl"><i class="fab fa-instagram"></i></a>
299
+ <a href="#" class="text-amber-600 hover:text-amber-800 text-xl"><i class="fab fa-whatsapp"></i></a>
300
+ </div>
301
+ </div>
302
+ </div>
303
+ </div>
304
+ </div>
305
+ </section>
306
+
307
+ <!-- Shopping Cart Modal -->
308
+ <div id="cartModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex justify-end hidden">
309
+ <div class="bg-white w-full max-w-md h-full overflow-y-auto">
310
+ <div class="p-4 border-b flex justify-between items-center">
311
+ <h3 class="text-xl font-bold text-amber-900">Seu Carrinho</h3>
312
+ <button id="closeCart" class="text-gray-500 hover:text-gray-700">
313
+ <i class="fas fa-times"></i>
314
+ </button>
315
+ </div>
316
+
317
+ <div class="p-4" id="cartItems">
318
+ <!-- Cart items will be loaded here -->
319
+ <div class="text-center py-8 text-gray-500" id="emptyCartMessage">
320
+ <i class="fas fa-shopping-cart text-4xl mb-4"></i>
321
+ <p>Seu carrinho está vazio</p>
322
+ </div>
323
+ </div>
324
+
325
+ <div class="p-4 border-t">
326
+ <div class="flex justify-between mb-4">
327
+ <span class="font-bold">Total:</span>
328
+ <span class="font-bold" id="cartTotal">R$ 0,00</span>
329
+ </div>
330
+ <button id="checkoutBtn" class="bg-amber-600 hover:bg-amber-700 text-white font-bold py-3 px-6 rounded-lg transition duration-300 w-full disabled:opacity-50" disabled>
331
+ Finalizar Compra
332
+ </button>
333
+ </div>
334
+ </div>
335
+ </div>
336
+
337
+ <!-- Admin Panel -->
338
+ <div id="adminPanel" class="admin-panel fixed top-0 right-[-400px] w-full max-w-md h-full bg-gray-800 text-white z-50 overflow-y-auto shadow-2xl">
339
+ <div class="p-4 border-b border-gray-700 flex justify-between items-center">
340
+ <h3 class="text-xl font-bold">
341
+ <i class="fas fa-user-shield mr-2"></i> Painel Admin
342
+ </h3>
343
+ <button id="closeAdmin" class="text-gray-400 hover:text-white">
344
+ <i class="fas fa-times"></i>
345
+ </button>
346
+ </div>
347
+
348
+ <div class="p-4">
349
+ <h4 class="text-lg font-semibold mb-4">Gerenciamento de Conteúdo</h4>
350
+
351
+ <div class="space-y-4">
352
+ <div class="bg-gray-700 p-4 rounded-lg">
353
+ <h5 class="font-medium mb-2 flex items-center">
354
+ <i class="fas fa-bread-slice mr-2"></i> Produtos
355
+ </h5>
356
+ <div class="space-y-2">
357
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
358
+ <i class="fas fa-plus-circle mr-2"></i> Adicionar Novo Produto
359
+ </button>
360
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
361
+ <i class="fas fa-edit mr-2"></i> Editar Produtos
362
+ </button>
363
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
364
+ <i class="fas fa-tags mr-2"></i> Gerenciar Categorias
365
+ </button>
366
+ </div>
367
+ </div>
368
+
369
+ <div class="bg-gray-700 p-4 rounded-lg">
370
+ <h5 class="font-medium mb-2 flex items-center">
371
+ <i class="fas fa-shopping-cart mr-2"></i> Pedidos
372
+ </h5>
373
+ <div class="space-y-2">
374
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
375
+ <i class="fas fa-list mr-2"></i> Ver Todos os Pedidos
376
+ </button>
377
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
378
+ <i class="fas fa-truck mr-2"></i> Gerenciar Entregas
379
+ </button>
380
+ </div>
381
+ </div>
382
+
383
+ <div class="bg-gray-700 p-4 rounded-lg">
384
+ <h5 class="font-medium mb-2 flex items-center">
385
+ <i class="fas fa-users mr-2"></i> Clientes
386
+ </h5>
387
+ <div class="space-y-2">
388
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
389
+ <i class="fas fa-user-friends mr-2"></i> Lista de Clientes
390
+ </button>
391
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
392
+ <i class="fas fa-comment-alt mr-2"></i> Mensagens de Contato
393
+ </button>
394
+ </div>
395
+ </div>
396
+
397
+ <div class="bg-gray-700 p-4 rounded-lg">
398
+ <h5 class="font-medium mb-2 flex items-center">
399
+ <i class="fas fa-chart-line mr-2"></i> Relatórios
400
+ </h5>
401
+ <div class="space-y-2">
402
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
403
+ <i class="fas fa-money-bill-wave mr-2"></i> Vendas
404
+ </button>
405
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
406
+ <i class="fas fa-star mr-2"></i> Avaliações
407
+ </button>
408
+ </div>
409
+ </div>
410
+
411
+ <div class="bg-gray-700 p-4 rounded-lg">
412
+ <h5 class="font-medium mb-2 flex items-center">
413
+ <i class="fas fa-cog mr-2"></i> Configurações
414
+ </h5>
415
+ <div class="space-y-2">
416
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
417
+ <i class="fas fa-store mr-2"></i> Informações da Loja
418
+ </button>
419
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
420
+ <i class="fas fa-download mr-2"></i> Backup do Site
421
+ </button>
422
+ <button class="admin-btn w-full text-left py-2 px-3 bg-gray-600 hover:bg-gray-500 rounded">
423
+ <i class="fas fa-user-cog mr-2"></i> Usuários Admin
424
+ </button>
425
+ </div>
426
+ </div>
427
+ </div>
428
+ </div>
429
+ </div>
430
+
431
+ <!-- Footer -->
432
+ <footer class="bg-amber-900 text-white py-8">
433
+ <div class="container mx-auto px-4">
434
+ <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
435
+ <div>
436
+ <h3 class="text-xl font-bold mb-4 flex items-center">
437
+ <i class="fas fa-bread-slice mr-2"></i> Padaria do Avex
438
+ </h3>
439
+ <p class="text-amber-100">Pães artesanais e produtos de confeitaria feitos com ingredientes selecionados e muito amor.</p>
440
+ </div>
441
+
442
+ <div>
443
+ <h3 class="text-lg font-semibold mb-4">Links Rápidos</h3>
444
+ <ul class="space-y-2">
445
+ <li><a href="#home" class="text-amber-200 hover:text-white">Início</a></li>
446
+ <li><a href="#products" class="text-amber-200 hover:text-white">Produtos</a></li>
447
+ <li><a href="#about" class="text-amber-200 hover:text-white">Sobre Nós</a></li>
448
+ <li><a href="#contact" class="text-amber-200 hover:text-white">Contato</a></li>
449
+ </ul>
450
+ </div>
451
+
452
+ <div>
453
+ <h3 class="text-lg font-semibold mb-4">Horário</h3>
454
+ <ul class="space-y-2 text-amber-100">
455
+ <li>Segunda a Sexta: 6h - 19h</li>
456
+ <li>Sábado: 6h - 14h</li>
457
+ <li>Domingo: Fechado</li>
458
+ </ul>
459
+ </div>
460
+
461
+ <div>
462
+ <h3 class="text-lg font-semibold mb-4">Newsletter</h3>
463
+ <p class="text-amber-100 mb-2">Assine para receber nossas novidades e promoções.</p>
464
+ <div class="flex">
465
+ <input type="email" placeholder="Seu email" class="px-3 py-2 text-gray-800 rounded-l w-full">
466
+ <button class="bg-amber-600 hover:bg-amber-700 px-4 rounded-r">
467
+ <i class="fas fa-paper-plane"></i>
468
+ </button>
469
+ </div>
470
+ </div>
471
+ </div>
472
+
473
+ <div class="border-t border-amber-800 mt-8 pt-6 text-center text-amber-100">
474
+ <p>&copy; 2023 Padaria do Avex. Todos os direitos reservados.</p>
475
+ </div>
476
+ </div>
477
+ </footer>
478
+
479
+ <script>
480
+ // Sample product data
481
+ const products = [
482
+ {
483
+ id: 1,
484
+ name: "Pão de Fermentação Natural",
485
+ price: 12.90,
486
+ category: "bread",
487
+ description: "Feito com fermento natural e farinha orgânica, crocante por fora e macio por dentro.",
488
+ image: "https://images.unsplash.com/photo-1509440159596-0249088772ff"
489
+ },
490
+ {
491
+ id: 2,
492
+ name: "Baguete Tradicional",
493
+ price: 8.50,
494
+ category: "bread",
495
+ description: "Crocante por fora e macia por dentro, perfeita para acompanhar refeições.",
496
+ image: "https://images.unsplash.com/photo-1608190003443-86b2636f7092"
497
+ },
498
+ {
499
+ id: 3,
500
+ name: "Croissant de Manteiga",
501
+ price: 6.90,
502
+ category: "pastry",
503
+ description: "Folhado e crocante, feito com manteiga de primeira qualidade.",
504
+ image: "https://images.unsplash.com/photo-1627834377411-8da5f4f09de8"
505
+ },
506
+ {
507
+ id: 4,
508
+ name: "Pão de Queijo Artesanal",
509
+ price: 15.90,
510
+ category: "pastry",
511
+ description: "Feito com queijo minas padrão e polvilho azedo, macio e saboroso.",
512
+ image: "https://images.unsplash.com/photo-1602922960055-6fac3a707e54"
513
+ },
514
+ {
515
+ id: 5,
516
+ name: "Bolo de Chocolate",
517
+ price: 45.00,
518
+ category: "cake",
519
+ description: "Bolo úmido com cobertura de ganache, perfeito para ocasiões especiais.",
520
+ image: "https://images.unsplash.com/photo-1578985545062-69928b1d9587"
521
+ },
522
+ {
523
+ id: 6,
524
+ name: "Pão Integral Multigrãos",
525
+ price: 10.90,
526
+ category: "bread",
527
+ description: "Rico em fibras e nutrientes, com mix de grãos selecionados.",
528
+ image: "https://images.unsplash.com/photo-1608190003443-86b2636f7092"
529
+ },
530
+ {
531
+ id: 7,
532
+ name: "Donut Glacê",
533
+ price: 7.50,
534
+ category: "pastry",
535
+ description: "Massa fofinha coberta com glacê de diversos sabores.",
536
+ image: "https://images.unsplash.com/photo-1551024506-0bccd828d307"
537
+ },
538
+ {
539
+ id: 8,
540
+ name: "Pão Sem Glúten",
541
+ price: 14.90,
542
+ category: "gluten-free",
543
+ description: "Opção sem glúten, feito com farinha de arroz e fécula de batata.",
544
+ image: "https://images.unsplash.com/photo-1602922960055-6fac3a707e54"
545
+ }
546
+ ];
547
+
548
+ // Shopping cart
549
+ let cart = [];
550
+
551
+ // DOM Elements
552
+ const productGrid = document.getElementById('productGrid');
553
+ const categoryBtns = document.querySelectorAll('.category-btn');
554
+ const cartIcon = document.getElementById('cartIcon');
555
+ const cartCount = document.getElementById('cartCount');
556
+ const cartModal = document.getElementById('cartModal');
557
+ const closeCart = document.getElementById('closeCart');
558
+ const cartItems = document.getElementById('cartItems');
559
+ const emptyCartMessage = document.getElementById('emptyCartMessage');
560
+ const cartTotal = document.getElementById('cartTotal');
561
+ const checkoutBtn = document.getElementById('checkoutBtn');
562
+ const mobileMenuButton = document.getElementById('mobileMenuButton');
563
+ const mobileMenu = document.getElementById('mobileMenu');
564
+ const adminToggle = document.getElementById('adminToggle');
565
+ const adminPanel = document.getElementById('adminPanel');
566
+ const closeAdmin = document.getElementById('closeAdmin');
567
+
568
+ // Display products
569
+ function displayProducts(filter = 'all') {
570
+ productGrid.innerHTML = '';
571
+
572
+ const filteredProducts = filter === 'all'
573
+ ? products
574
+ : products.filter(product => product.category === filter);
575
+
576
+ filteredProducts.forEach(product => {
577
+ const productCard = document.createElement('div');
578
+ productCard.className = 'bread-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300 hover:shadow-xl';
579
+ productCard.innerHTML = `
580
+ <img src="${product.image}" alt="${product.name}" class="w-full h-48 object-cover">
581
+ <div class="p-4">
582
+ <h3 class="text-lg font-bold text-gray-800 mb-1">${product.name}</h3>
583
+ <p class="text-gray-600 text-sm mb-3">${product.description}</p>
584
+ <div class="flex justify-between items-center">
585
+ <span class="text-amber-700 font-bold">R$ ${product.price.toFixed(2)}</span>
586
+ <button class="add-to-cart bg-amber-600 hover:bg-amber-700 text-white px-3 py-1 rounded text-sm" data-id="${product.id}">
587
+ <i class="fas fa-plus mr-1"></i> Adicionar
588
+ </button>
589
+ </div>
590
+ </div>
591
+ `;
592
+ productGrid.appendChild(productCard);
593
+ });
594
+
595
+ // Add event listeners to "Add to cart" buttons
596
+ document.querySelectorAll('.add-to-cart').forEach(button => {
597
+ button.addEventListener('click', (e) => {
598
+ const productId = parseInt(e.target.getAttribute('data-id'));
599
+ addToCart(productId);
600
+ });
601
+ });
602
+ }
603
+
604
+ // Add to cart function
605
+ function addToCart(productId) {
606
+ const product = products.find(p => p.id === productId);
607
+ const existingItem = cart.find(item => item.id === productId);
608
+
609
+ if (existingItem) {
610
+ existingItem.quantity += 1;
611
+ } else {
612
+ cart.push({
613
+ id: product.id,
614
+ name: product.name,
615
+ price: product.price,
616
+ quantity: 1,
617
+ image: product.image
618
+ });
619
+ }
620
+
621
+ updateCart();
622
+
623
+ // Add pulse animation to cart icon
624
+ cartIcon.classList.add('cart-pulse');
625
+ setTimeout(() => {
626
+ cartIcon.classList.remove('cart-pulse');
627
+ }, 500);
628
+ }
629
+
630
+ // Update cart display
631
+ function updateCart() {
632
+ // Update cart count
633
+ const totalItems = cart.reduce((sum, item) => sum + item.quantity, 0);
634
+ cartCount.textContent = totalItems;
635
+
636
+ // Update cart modal if open
637
+ if (cartModal.classList.contains('hidden')) return;
638
+
639
+ if (cart.length === 0) {
640
+ emptyCartMessage.classList.remove('hidden');
641
+ cartItems.innerHTML = '';
642
+ checkoutBtn.disabled = true;
643
+ cartTotal.textContent = 'R$ 0,00';
644
+ } else {
645
+ emptyCartMessage.classList.add('hidden');
646
+
647
+ let itemsHTML = '';
648
+ let total = 0;
649
+
650
+ cart.forEach(item => {
651
+ const itemTotal = item.price * item.quantity;
652
+ total += itemTotal;
653
+
654
+ itemsHTML += `
655
+ <div class="flex items-center mb-4 pb-4 border-b border-gray-200">
656
+ <img src="${item.image}" alt="${item.name}" class="w-16 h-16 object-cover rounded mr-4">
657
+ <div class="flex-1">
658
+ <h4 class="font-medium">${item.name}</h4>
659
+ <div class="flex justify-between mt-1">
660
+ <span class="text-gray-600">R$ ${item.price.toFixed(2)}</span>
661
+ <div class="flex items-center">
662
+ <button class="change-quantity px-2 text-gray-500 hover:text-amber-600" data-id="${item.id}" data-change="-1">
663
+ <i class="fas fa-minus"></i>
664
+ </button>
665
+ <span class="mx-2">${item.quantity}</span>
666
+ <button class="change-quantity px-2 text-gray-500 hover:text-amber-600" data-id="${item.id}" data-change="1">
667
+ <i class="fas fa-plus"></i>
668
+ </button>
669
+ </div>
670
+ </div>
671
+ </div>
672
+ <button class="remove-item ml-4 text-red-500 hover:text-red-700" data-id="${item.id}">
673
+ <i class="fas fa-trash"></i>
674
+ </button>
675
+ </div>
676
+ `;
677
+ });
678
+
679
+ cartItems.innerHTML = itemsHTML;
680
+ checkoutBtn.disabled = false;
681
+ cartTotal.textContent = `R$ ${total.toFixed(2)}`;
682
+
683
+ // Add event listeners to quantity buttons
684
+ document.querySelectorAll('.change-quantity').forEach(button => {
685
+ button.addEventListener('click', (e) => {
686
+ const productId = parseInt(e.target.getAttribute('data-id'));
687
+ const change = parseInt(e.target.getAttribute('data-change'));
688
+ updateQuantity(productId, change);
689
+ });
690
+ });
691
+
692
+ // Add event listeners to remove buttons
693
+ document.querySelectorAll('.remove-item').forEach(button => {
694
+ button.addEventListener('click', (e) => {
695
+ const productId = parseInt(e.target.getAttribute('data-id'));
696
+ removeFromCart(productId);
697
+ });
698
+ });
699
+ }
700
+ }
701
+
702
+ // Update item quantity in cart
703
+ function updateQuantity(productId, change) {
704
+ const itemIndex = cart.findIndex(item => item.id === productId);
705
+
706
+ if (itemIndex !== -1) {
707
+ cart[itemIndex].quantity += change;
708
+
709
+ // Remove item if quantity reaches 0
710
+ if (cart[itemIndex].quantity <= 0) {
711
+ cart.splice(itemIndex, 1);
712
+ }
713
+
714
+ updateCart();
715
+ }
716
+ }
717
+
718
+ // Remove item from cart
719
+ function removeFromCart(productId) {
720
+ cart = cart.filter(item => item.id !== productId);
721
+ updateCart();
722
+ }
723
+
724
+ // Filter products by category
725
+ categoryBtns.forEach(button => {
726
+ button.addEventListener('click', () => {
727
+ categoryBtns.forEach(btn => btn.classList.remove('active', 'bg-amber-600', 'text-white'));
728
+ categoryBtns.forEach(btn => btn.classList.add('bg-amber-100', 'text-amber-800'));
729
+
730
+ button.classList.add('active', 'bg-amber-600', 'text-white');
731
+ button.classList.remove('bg-amber-100', 'text-amber-800');
732
+
733
+ const category = button.getAttribute('data-category');
734
+ displayProducts(category);
735
+ });
736
+ });
737
+
738
+ // Toggle cart modal
739
+ cartIcon.addEventListener('click', () => {
740
+ cartModal.classList.remove('hidden');
741
+ updateCart();
742
+ });
743
+
744
+ closeCart.addEventListener('click', () => {
745
+ cartModal.classList.add('hidden');
746
+ });
747
+
748
+ // Checkout button
749
+ checkoutBtn.addEventListener('click', () => {
750
+ alert('Compra finalizada com sucesso! Obrigado por comprar na Padaria do Avex.');
751
+ cart = [];
752
+ updateCart();
753
+ cartModal.classList.add('hidden');
754
+ });
755
+
756
+ // Mobile menu toggle
757
+ mobileMenuButton.addEventListener('click', () => {
758
+ mobileMenu.classList.toggle('hidden');
759
+ });
760
+
761
+ // Admin panel toggle
762
+ adminToggle.addEventListener('click', () => {
763
+ adminPanel.classList.toggle('active');
764
+ });
765
+
766
+ closeAdmin.addEventListener('click', () => {
767
+ adminPanel.classList.remove('active');
768
+ });
769
+
770
+ // Initialize
771
+ displayProducts();
772
+
773
+ // Smooth scrolling for anchor links
774
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
775
+ anchor.addEventListener('click', function (e) {
776
+ e.preventDefault();
777
+
778
+ const targetId = this.getAttribute('href');
779
+ const targetElement = document.querySelector(targetId);
780
+
781
+ if (targetElement) {
782
+ window.scrollTo({
783
+ top: targetElement.offsetTop - 70,
784
+ behavior: 'smooth'
785
+ });
786
+
787
+ // Close mobile menu if open
788
+ if (!mobileMenu.classList.contains('hidden')) {
789
+ mobileMenu.classList.add('hidden');
790
+ }
791
+ }
792
+ });
793
+ });
794
+ </script>
795
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Avex3/https-huggingface-co-spaces" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
796
+ </html>