Spaces:
Running

flexfusion-flare / login.html
hapysingh's picture
changing theme and notification should be inside profile section in setting
6dcea05 verified
Raw History Blame Contribute Delete
7.01 kB
<!DOCTYPE html>
<html lang="en" class="">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login | FitFusion</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
</head>
<body class="bg-gray-50 dark:bg-gray-900 min-h-screen flex items-center justify-center p-4" id="vanta-bg">
<!-- Main Content -->
<div class="w-full max-w-md bg-white dark:bg-gray-800 rounded-2xl shadow-xl overflow-hidden relative z-10">
<div class="p-8">
<div class="flex flex-col items-center">
<div class="w-16 h-16 rounded-full bg-primary-500 flex items-center justify-center mb-4">
<i data-feather="activity" class="text-white w-8 h-8"></i>
</div>
<h1 class="text-2xl font-bold text-gray-800 dark:text-white mb-2">Welcome Back</h1>
<p class="text-gray-600 dark:text-gray-300 mb-6">Sign in to continue your fitness journey</p>
</div>
<form>
<div class="space-y-4">
<div>
<label for="email" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Email Address</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i data-feather="mail" class="text-gray-400"></i>
</div>
<input type="email" id="email" class="w-full pl-10 pr-3 py-2 bg-gray-50 dark:bg-gray-700 border border-gray-200 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent text-gray-800 dark:text-white" placeholder="your@email.com">
</div>
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Password</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i data-feather="lock" class="text-gray-400"></i>
</div>
<input type="password" id="password" class="w-full pl-10 pr-3 py-2 bg-gray-50 dark:bg-gray-700 border border-gray-200 dark:border-gray-600 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent text-gray-800 dark:text-white" placeholder="••••••••">
<button type="button" class="absolute inset-y-0 right-0 pr-3 flex items-center">
<i data-feather="eye" class="text-gray-400 hover:text-primary-500"></i>
</button>
</div>
<div class="flex justify-end mt-1">
<a href="#" class="text-sm text-primary-500 dark:text-primary-400 hover:underline">Forgot password?</a>
</div>
</div>
<div class="flex items-center">
<input type="checkbox" id="remember" class="w-4 h-4 text-primary-500 rounded focus:ring-primary-500 border-gray-300 dark:border-gray-600">
<label for="remember" class="ml-2 block text-sm text-gray-700 dark:text-gray-300">Remember me</label>
</div>
<button type="submit" class="w-full bg-primary-500 hover:bg-primary-600 text-white py-2 px-4 rounded-lg font-medium transition duration-200">
Sign In
</button>
</div>
</form>
<div class="mt-6 text-center">
<p class="text-sm text-gray-600 dark:text-gray-300">
Don't have an account?
<a href="signup.html" class="text-primary-500 dark:text-primary-400 hover:underline font-medium">Sign up</a>
</p>
</div>
<div class="relative mt-8">
<div class="absolute inset-0 flex items-center">
<div class="w-full border-t border-gray-200 dark:border-gray-700"></div>
</div>
<div class="relative flex justify-center text-sm">
<span class="px-2 bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400">
Or continue with
</span>
</div>
</div>
<div class="mt-6 grid grid-cols-3 gap-3">
<button class="flex items-center justify-center py-2 px-4 bg-gray-50 dark:bg-gray-700 rounded-lg border border-gray-200 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-600">
<i data-feather="facebook" class="text-blue-500"></i>
</button>
<button class="flex items-center justify-center py-2 px-4 bg-gray-50 dark:bg-gray-700 rounded-lg border border-gray-200 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-600">
<i data-feather="twitter" class="text-blue-400"></i>
</button>
<button class="flex items-center justify-center py-2 px-4 bg-gray-50 dark:bg-gray-700 rounded-lg border border-gray-200 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-600">
<i data-feather="github" class="text-gray-800 dark:text-white"></i>
</button>
</div>
</div>
</div>
<script>
// Vanta.js background
if (window.innerWidth > 768) {
VANTA.GLOBE({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: "#0ea5e9",
backgroundColor: "#f9fafb",
size: 0.80
});
}
// Theme detection
const html = document.documentElement;
if (localStorage.getItem('theme') === 'dark' || (!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
html.classList.add('dark');
} else {
html.classList.remove('dark');
}
feather.replace();
</script>
</body>
</html>