Spaces:
Running

File size: 9,988 Bytes
0f7ebc7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Paramètres - ShopTrack Analytica Pro</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#6366f1',
                        secondary: '#8b5cf6',
                    }
                }
            }
        }
    </script>
    <style>
        body {
            font-family: 'Inter', sans-serif;
        }
        .tab-active {
            border-bottom: 3px solid #6366f1;
            color: #6366f1;
            font-weight: 600;
        }
    </style>
</head>
<body class="bg-gray-50 min-h-screen">
    <div class="container mx-auto px-4 py-8">
        <!-- Header -->
        <header class="mb-10">
            <div class="flex items-center justify-between">
                <a href="index.html" class="flex items-center space-x-2">
                    <i data-feather="shopping-bag" class="text-primary w-8 h-8"></i>
                    <h1 class="text-3xl font-bold text-gray-800">ShopTrack <span class="text-primary">Analytica Pro</span></h1>
                </a>
                <a href="login.html" class="bg-primary hover:bg-primary-600 text-white px-4 py-2 rounded-lg flex items-center space-x-2" onclick="localStorage.removeItem('authToken');">
                    <i data-feather="user" class="w-4 h-4"></i>
                    <span>Déconnexion</span>
                </a>
            </div>
        </header>

        <!-- Main Content -->
        <main>
            <div class="flex border-b border-gray-200 mb-8">
                <a href="index.html" class="px-6 py-3 text-sm font-medium text-gray-500 hover:text-primary">
                    <i data-feather="home" class="inline mr-2 w-4 h-4"></i>
                    Accueil
                </a>
                <a href="history.html" class="px-6 py-3 text-sm font-medium text-gray-500 hover:text-primary">
                    <i data-feather="clock" class="inline mr-2 w-4 h-4"></i>
                    Historique visites
                </a>
                <a href="new-visit.html" class="px-6 py-3 text-sm font-medium text-gray-500 hover:text-primary">
                    <i data-feather="plus-circle" class="inline mr-2 w-4 h-4"></i>
                    Nouvelle Visite
                </a>
                <a href="shop-history.html" class="px-6 py-3 text-sm font-medium text-gray-500 hover:text-primary">
                    <i data-feather="shopping-bag" class="inline mr-2 w-4 h-4"></i>
                    Historique boutiques
                </a>
                <button class="tab-active px-6 py-3 text-sm font-medium">
                    <i data-feather="settings" class="inline mr-2 w-4 h-4"></i>
                    Paramètres
                </button>
            </div>

            <div class="bg-white rounded-xl shadow-md p-6">
                <h2 class="text-xl font-semibold text-gray-800 mb-6">Paramètres du compte</h2>
                
                <form class="space-y-6">
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-1">Photo de profil</label>
                            <div class="flex items-center space-x-4">
                                <div class="w-16 h-16 rounded-full bg-gray-200 flex items-center justify-center overflow-hidden">
                                    <i data-feather="user" class="w-8 h-8 text-gray-400"></i>
                                </div>
                                <div>
                                    <button type="button" class="px-3 py-1 bg-gray-100 hover:bg-gray-200 text-gray-800 rounded-lg text-sm">
                                        Changer
                                    </button>
                                    <button type="button" class="px-3 py-1 bg-gray-100 hover:bg-gray-200 text-gray-800 rounded-lg text-sm ml-2">
                                        Supprimer
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                        <div>
                            <label for="name" class="block text-sm font-medium text-gray-700 mb-1">Nom complet</label>
                            <input type="text" id="name" value="John Doe" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-primary focus:border-primary">
                        </div>
                        <div>
                            <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
                            <input type="email" id="email" value="john.doe@example.com" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-primary focus:border-primary">
                        </div>
                        <div>
                            <label for="phone" class="block text-sm font-medium text-gray-700 mb-1">Téléphone</label>
                            <input type="tel" id="phone" value="+33 6 12 34 56 78" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-primary focus:border-primary">
                        </div>
                        <div>
                            <label for="language" class="block text-sm font-medium text-gray-700 mb-1">Langue</label>
                            <select id="language" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-primary focus:border-primary">
                                <option>Français</option>
                                <option>English</option>
                                <option>Español</option>
                            </select>
                        </div>
                    </div>

                    <div class="border-t border-gray-200 pt-6">
                        <h3 class="text-lg font-medium text-gray-800 mb-4">Changer le mot de passe</h3>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                            <div>
                                <label for="current-password" class="block text-sm font-medium text-gray-700 mb-1">Mot de passe actuel</label>
                                <input type="password" id="current-password" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-primary focus:border-primary">
                            </div>
                            <div>
                                <label for="new-password" class="block text-sm font-medium text-gray-700 mb-1">Nouveau mot de passe</label>
                                <input type="password" id="new-password" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-primary focus:border-primary">
                            </div>
                            <div>
                                <label for="confirm-password" class="block text-sm font-medium text-gray-700 mb-1">Confirmer le mot de passe</label>
                                <input type="password" id="confirm-password" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-primary focus:border-primary">
                            </div>
                        </div>
                    </div>

                    <div class="border-t border-gray-200 pt-6">
                        <h3 class="text-lg font-medium text-gray-800 mb-4">Notifications</h3>
                        <div class="space-y-4">
                            <div class="flex items-center">
                                <input type="checkbox" id="email-notifications" checked class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded">
                                <label for="email-notifications" class="ml-2 block text-sm text-gray-700">Notifications par email</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="push-notifications" checked class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded">
                                <label for="push-notifications" class="ml-2 block text-sm text-gray-700">Notifications push</label>
                            </div>
                            <div class="flex items-center">
                                <input type="checkbox" id="sales-alerts" class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded">
                                <label for="sales-alerts" class="ml-2 block text-sm text-gray-700">Alertes de ventes</label>
                            </div>
                        </div>
                    </div>

                    <div class="flex justify-end space-x-4 pt-6">
                        <button type="button" class="px-4 py-2 border border-gray-300 text-gray-700 rounded-lg hover:bg-gray-50">
                            Annuler
                        </button>
                        <button type="submit" class="px-6 py-2 bg-primary hover:bg-primary-600 text-white rounded-lg flex items-center space-x-2">
                            <i data-feather="save" class="w-4 h-4"></i>
                            <span>Enregistrer les changements</span>
                        </button>
                    </div>
                </form>
            </div>
        </main>
    </div>

    <script>
        feather.replace();

        document.querySelector('form').addEventListener('submit', function(e) {
            e.preventDefault();
            alert('Paramètres mis à jour avec succès');
        });
    </script>
</body>
</html>