File size: 19,448 Bytes
7011989
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="pt">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Registro - PãoMoz</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        .register-type {
            transition: all 0.3s ease;
        }
        .register-type:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        .register-type.selected {
            border-color: #d97706;
            background-color: #fef3c7;
        }
        .form-section {
            display: none;
        }
        .form-section.active {
            display: block;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Navigation -->
    <nav class="bg-yellow-600 text-white shadow-lg">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <a href="index.html" class="text-2xl font-bold flex items-center">
                <i data-feather="coffee" class="mr-2"></i> Bread Easy
            </a>
            <div class="hidden md:flex space-x-6">
                <a href="index.html" class="hover:text-yellow-200 font-medium">Home</a>
                <a href="products.html" class="hover:text-yellow-200 font-medium">Produtos</a>
                <a href="register.html" class="hover:text-yellow-200 font-medium underline">Registro</a>
                <a href="cart.html" class="hover:text-yellow-200 font-medium flex items-center">
                    <i data-feather="shopping-cart" class="mr-1"></i> Carrinho
                </a>
            </div>
            <button class="md:hidden focus:outline-none" id="menu-toggle">
                <i data-feather="menu"></i>
            </button>
        </div>
        <!-- Mobile menu -->
        <div class="md:hidden hidden bg-yellow-700 px-4 py-2" id="mobile-menu">
            <a href="index.html" class="block py-2 hover:text-yellow-200">Home</a>
            <a href="products.html" class="block py-2 hover:text-yellow-200">Produtos</a>
            <a href="register.html" class="block py-2 hover:text-yellow-200">Registro</a>
            <a href="cart.html" class="block py-2 hover:text-yellow-200 flex items-center">
                <i data-feather="shopping-cart" class="mr-2"></i> Carrinho
            </a>
        </div>
    </nav>

    <!-- Breadcrumb -->
    <div class="bg-gray-100 py-3">
        <div class="container mx-auto px-4">
            <div class="flex items-center text-sm text-gray-600">
                <a href="index.html" class="hover:text-yellow-600">Home</a>
                <i data-feather="chevron-right" class="mx-2 w-4 h-4"></i>
                <span>Registro</span>
            </div>
        </div>
    </div>

    <!-- Registration Section -->
    <section class="py-10">
        <div class="container mx-auto px-4 max-w-3xl">
            <div class="text-center mb-10" data-aos="fade-up">
                <h1 class="text-3xl font-bold mb-4 text-gray-800">Crie sua Conta</h1>
                <p class="text-gray-600">Escolha o tipo de conta que deseja criar</p>
            </div>
            
            <!-- Registration Type Selection -->
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-10" data-aos="fade-up" data-aos-delay="100">
                <!-- Client Card -->
                <div class="register-type bg-white rounded-lg shadow-md p-6 cursor-pointer border-2 border-transparent" onclick="selectType('client')">
                    <div class="text-center">
                        <div class="bg-blue-100 w-16 h-16 mx-auto rounded-full flex items-center justify-center mb-4">
                            <i data-feather="user" class="text-blue-600 w-8 h-8"></i>
                        </div>
                        <h3 class="font-bold text-xl mb-2 text-gray-800">Cliente</h3>
                        <p class="text-gray-600 text-sm">Compre pães e receba em casa ou retire na padaria</p>
                    </div>
                </div>
                
                <!-- Bakery Card -->
                <div class="register-type bg-white rounded-lg shadow-md p-6 cursor-pointer border-2 border-transparent" onclick="selectType('bakery')">
                    <div class="text-center">
                        <div class="bg-green-100 w-16 h-16 mx-auto rounded-full flex items-center justify-center mb-4">
                            <i data-feather="shopping-bag" class="text-green-600 w-8 h-8"></i>
                        </div>
                        <h3 class="font-bold text-xl mb-2 text-gray-800">Padaria</h3>
                        <p class="text-gray-600 text-sm">Venda seus pães e alcance mais clientes</p>
                    </div>
                </div>
                
                <!-- Delivery Card -->
                <div class="register-type bg-white rounded-lg shadow-md p-6 cursor-pointer border-2 border-transparent" onclick="selectType('delivery')">
                    <div class="text-center">
                        <div class="bg-purple-100 w-16 h-16 mx-auto rounded-full flex items-center justify-center mb-4">
                            <i data-feather="truck" class="text-purple-600 w-8 h-8"></i>
                        </div>
                        <h3 class="font-bold text-xl mb-2 text-gray-800">Entregador</h3>
                        <p class="text-gray-600 text-sm">Entregue pães e ganhe comissões</p>
                    </div>
                </div>
            </div>
            
            <!-- Registration Forms -->
            <div class="bg-white rounded-lg shadow-md p-8" data-aos="fade-up" data-aos-delay="200">
                <!-- Client Form -->
                <form id="client-form" class="form-section">
                    <h2 class="text-2xl font-bold mb-6 text-gray-800">Cadastro de Cliente</h2>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
                        <div>
                            <label class="block text-gray-700 text-sm font-bold mb-2">Nome Completo *</label>
                            <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Digite seu nome completo">
                        </div>
                        <div>
                            <label class="block text-gray-700 text-sm font-bold mb-2">Telefone *</label>
                            <input type="tel" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="84 123 4567">
                            <p class="text-xs text-gray-500 mt-1">Número M-Pesa ou e-Mola válido</p>
                        </div>
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-bold mb-2">Bairro/Localização *</label>
                        <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Ex: Alto Maé, Maputo">
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
                        <div>
                            <label class="block text-gray-700 text-sm font-bold mb-2">Senha *</label>
                            <input type="password" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Crie uma senha">
                        </div>
                        <div>
                            <label class="block text-gray-700 text-sm font-bold mb-2">Confirmar Senha *</label>
                            <input type="password" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" placeholder="Repita a senha">
                        </div>
                    </div>
                    <button type="submit" class="w-full bg-blue-500 hover:bg-blue-600 text-white font-bold py-3 px-4 rounded-lg transition duration-300">
                        Concluir Cadastro
                    </button>
                </form>
                
                <!-- Bakery Form -->
                <form id="bakery-form" class="form-section">
                    <h2 class="text-2xl font-bold mb-6 text-gray-800">Cadastro de Padaria</h2>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-bold mb-2">Nome da Padaria *</label>
                        <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="Nome do seu estabelecimento">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-bold mb-2">Responsável *</label>
                        <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="Nome completo do responsável">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-bold mb-2">Localização *</label>
                        <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="Ex: Polana, Maputo">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-bold mb-2">Contacto *</label>
                        <input type="tel" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="84 123 4567">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-bold mb-2">NUIT (opcional)</label>
                        <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="Número único de identificação tributária">
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
                        <div>
                            <label class="block text-gray-700 text-sm font-bold mb-2">Senha *</label>
                            <input type="password" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="Crie uma senha">
                        </div>
                        <div>
                            <label class="block text-gray-700 text-sm font-bold mb-2">Confirmar Senha *</label>
                            <input type="password" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-green-500" placeholder="Repita a senha">
                        </div>
                    </div>
                    <button type="submit" class="w-full bg-green-500 hover:bg-green-600 text-white font-bold py-3 px-4 rounded-lg transition duration-300">
                        Concluir Cadastro
                    </button>
                </form>
                
                <!-- Delivery Form -->
                <form id="delivery-form" class="form-section">
                    <h2 class="text-2xl font-bold mb-6 text-gray-800">Cadastro de Entregador</h2>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-bold mb-2">Nome Completo *</label>
                        <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="Digite seu nome completo">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-bold mb-2">Contacto *</label>
                        <input type="tel" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="84 123 4567">
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-bold mb-2">Meio de Transporte *</label>
                        <select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500">
                            <option value="">Selecione o meio de transporte</option>
                            <option value="bicicleta">Bicicleta</option>
                            <option value="motorizada">Motorizada</option>
                            <option value="carro">Carro</option>
                        </select>
                    </div>
                    <div class="mb-4">
                        <label class="block text-gray-700 text-sm font-bold mb-2">Bairro de Atuação *</label>
                        <input type="text" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="Ex: Matola, Maputo">
                        <p class="text-xs text-gray-500 mt-1">Área onde você pode fazer entregas</p>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-6">
                        <div>
                            <label class="block text-gray-700 text-sm font-bold mb-2">Senha *</label>
                            <input type="password" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="Crie uma senha">
                        </div>
                        <div>
                            <label class="block text-gray-700 text-sm font-bold mb-2">Confirmar Senha *</label>
                            <input type="password" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-500" placeholder="Repita a senha">
                        </div>
                    </div>
                    <button type="submit" class="w-full bg-purple-500 hover:bg-purple-600 text-white font-bold py-3 px-4 rounded-lg transition duration-300">
                        Concluir Cadastro
                    </button>
                </form>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-800 text-white py-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-xl font-bold mb-4 flex items-center">
                        <i data-feather="coffee" class="mr-2"></i> Bread Easy
                    </h3>
                    <p class="text-gray-400">Conectando padarias e clientes em Moçambique para facilitar o acesso a pães frescos e deliciosos.</p>
                </div>
                <div>
                    <h4 class="font-bold text-lg mb-4">Links Rápidos</h4>
                    <ul class="space-y-2">
                        <li><a href="index.html" class="text-gray-400 hover:text-white">Home</a></li>
                        <li><a href="products.html" class="text-gray-400 hover:text-white">Produtos</a></li>
                        <li><a href="register.html" class="text-gray-400 hover:text-white">Registro</a></li>
                        <li><a href="cart.html" class="text-gray-400 hover:text-white">Carrinho</a></li>
                    </ul>
                </div>
                <div>
                    <h4 class="font-bold text-lg mb-4">Contato</h4>
                    <ul class="space-y-2">
                        <li class="flex items-center text-gray-400"><i data-feather="mail" class="mr-2 w-4 h-4"></i> contato@breadeasy.co.mz</li>
                        <li class="flex items-center text-gray-400"><i data-feather="phone" class="mr-2 w-4 h-4"></i> +258 84 123 4567</li>
                        <li class="flex items-center text-gray-400"><i data-feather="map-pin" class="mr-2 w-4 h-4"></i> Maputo, Moçambique</li>
                    </ul>
                </div>
                <div>
                    <h4 class="font-bold text-lg mb-4">Redes Sociais</h4>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white">
                            <i data-feather="facebook" class="w-6 h-6"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white">
                            <i data-feather="instagram" class="w-6 h-6"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white">
                            <i data-feather="twitter" class="w-6 h-6"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white">
                            <i data-feather="whatsapp" class="w-6 h-6"></i>
                        </a>
                    </div>
                </div>
            </div>
            <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
                <p>&copy; 2023 Bread Easy. Todos os direitos reservados.</p>
            </div>
        </div>
    </footer>

    <script>
        // Mobile menu toggle
        document.getElementById('menu-toggle').addEventListener('click', function() {
            const menu = document.getElementById('mobile-menu');
            menu.classList.toggle('hidden');
        });

        // Registration type selection
        function selectType(type) {
            // Remove selected class from all types
            document.querySelectorAll('.register-type').forEach(el => {
                el.classList.remove('selected');
            });
            
            // Hide all forms
            document.querySelectorAll('.form-section').forEach(form => {
                form.classList.remove('active');
            });
            
            // Add selected class to clicked type
            event.target.closest('.register-type').classList.add('selected');
            
            // Show corresponding form
            const formId = type + '-form';
            document.getElementById(formId).classList.add('active');
        }

        // Form submissions
        document.querySelectorAll('form').forEach(form => {
            form.addEventListener('submit', function(e) {
                e.preventDefault();
                // Redirect to home after successful registration
                window.location.href = 'index.html';
            });
        });

        // Initialize AOS and Feather Icons
        document.addEventListener('DOMContentLoaded', function() {
            AOS.init({
                duration: 800,
                easing: 'ease-in-out',
                once: true
            });
            feather.replace();
        });
    </script>
</body>
</html>