File size: 3,809 Bytes
ab6d371 | 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 | <!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - CraftyMunch</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
.gradient-text {
background: linear-gradient(90deg, #d946ef 0%, #a855f7 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
</style>
</head>
<body class="bg-gray-900 text-gray-100 min-h-screen">
<nav class="bg-gray-800 border-b border-gray-700 px-4 py-3">
<div class="max-w-7xl mx-auto flex items-center justify-between">
<div class="flex items-center space-x-2">
<i data-feather="hand" class="text-primary-500 w-8 h-8"></i>
<span class="text-2xl font-bold gradient-text">CraftyMunch</span>
</div>
<a href="index.html" class="text-primary-500 hover:text-primary-400 transition">
Back to Home
</a>
</div>
</nav>
<section class="max-w-md mx-auto py-16 px-4">
<div class="bg-gray-800 rounded-xl p-8 shadow-lg">
<h1 class="text-3xl font-bold mb-6 text-center">Welcome Back</h1>
<form id="loginForm" class="space-y-6">
<div>
<label for="loginEmail" class="block text-sm font-medium mb-1">Email</label>
<input type="email" id="loginEmail" name="email" required
class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500">
</div>
<div>
<label for="loginPassword" class="block text-sm font-medium mb-1">Password</label>
<input type="password" id="loginPassword" name="password" required
class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500">
</div>
<div class="flex items-center justify-between">
<label class="inline-flex items-center">
<input type="checkbox" class="text-primary-500 focus:ring-primary-500">
<span class="ml-2 text-sm">Remember me</span>
</label>
<a href="#" class="text-sm text-primary-500 hover:text-primary-400 transition">Forgot password?</a>
</div>
<div class="pt-2">
<button type="submit"
class="w-full bg-primary-500 hover:bg-primary-600 text-white font-bold py-3 px-4 rounded-lg transition">
Log In
</button>
</div>
<div class="text-center text-sm text-gray-400">
Don't have an account?
<a href="register.html" class="text-primary-500 hover:text-primary-400 transition">Sign up</a>
</div>
</form>
</div>
</section>
<script>
feather.replace();
document.getElementById('loginForm').addEventListener('submit', function(e) {
e.preventDefault();
// In a real app, you would authenticate with your backend
alert('Login successful! Redirecting...');
// For demo, redirect to home
setTimeout(() => {
window.location.href = 'index.html';
}, 1000);
});
</script>
</body>
</html> |