Spaces:
Running

undefined / settings.html
ONEAL225's picture
ajoute l'interface paramètres
0f7ebc7 verified
Raw History Blame Contribute Delete
9.99 kB
<!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>