Spaces:
Running

undefined / login.html
ONEAL225's picture
implémente une sécurité importante
cd82107 verified
Raw History Blame Contribute Delete
3.6 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Connexion - RetailWizard DashTrack</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
body {
font-family: 'Inter', sans-serif;
background-color: #f8fafc;
}
.login-card {
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body class="min-h-screen flex items-center justify-center">
<div class="w-full max-w-md">
<div class="bg-white rounded-xl login-card p-8">
<div class="text-center mb-8">
<div class="flex justify-center mb-4">
<i data-feather="shopping-bag" class="text-indigo-600 w-10 h-10"></i>
</div>
<h1 class="text-2xl font-bold text-gray-800">RetailWizard DashTrack</h1>
<p class="text-gray-600 mt-2">Connectez-vous à votre espace</p>
</div>
<form id="loginForm" class="space-y-6">
<div>
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
<input type="email" id="email" required class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Mot de passe</label>
<input type="password" id="password" required class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-indigo-500 focus:border-indigo-500">
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<input id="remember-me" type="checkbox" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
<label for="remember-me" class="ml-2 block text-sm text-gray-700">Se souvenir de moi</label>
</div>
<a href="reset-password.html" class="text-sm text-indigo-600 hover:text-indigo-500">Mot de passe oublié?</a>
</div>
<button type="submit" class="w-full bg-indigo-600 hover:bg-indigo-700 text-white py-2 px-4 rounded-lg flex items-center justify-center space-x-2">
<i data-feather="log-in" class="w-4 h-4"></i>
<span>Se connecter</span>
</button>
</form>
<div class="mt-6 text-center">
<p class="text-sm text-gray-600">
Pas encore de compte?
<a href="#" class="text-indigo-600 hover:text-indigo-500 font-medium">Contactez l'administrateur</a>
</p>
</div>
</div>
</div>
<script>
feather.replace();
document.getElementById('loginForm').addEventListener('submit', function(e) {
e.preventDefault();
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;
// Simple validation (in real app you would call an API)
if(email && password) {
window.location.href = 'index.html';
} else {
alert('Veuillez remplir tous les champs');
}
});
</script>
</body>
</html>