Spaces:
Running
Running
Download login.html from favouradebowale/escalade: direct link, hf CLI and curl.
- Browser
- Download file 9.23 kB
-
https://huggingface.co/spaces/favouradebowale/escalade/resolve/main/login.html
- Command line
-
hf download hf://spaces/favouradebowale/escalade/login.html
-
curl -L -o login.html https://huggingface.co/spaces/favouradebowale/escalade/resolve/main/login.html
9.23 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Login | Escalade</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap"> | |
| <style> | |
| .login-bg { | |
| background-image: url('http://static.photos/fashion/1920x1080/100'); | |
| background-size: cover; | |
| background-position: center; | |
| } | |
| .dark-mode { | |
| background-color: #111; | |
| color: #fff; | |
| } | |
| </style> | |
| </head> | |
| <body class="font-sans bg-light"> | |
| <!-- Navigation --> | |
| <nav class="fixed w-full z-50 py-4"> | |
| <div class="container mx-auto px-6 flex justify-between items-center"> | |
| <a href="index.html" class="text-3xl font-heading text-primary">ESCALADE</a> | |
| <div class="flex items-center space-x-4"> | |
| <button id="theme-toggle" class="p-2 rounded-full hover:bg-gray-100"> | |
| <i data-feather="moon" class="text-dark"></i> | |
| </button> | |
| <a href="cart.html" class="p-2 rounded-full hover:bg-gray-100 relative"> | |
| <i data-feather="shopping-bag" class="text-dark"></i> | |
| <span class="absolute -top-1 -right-1 bg-primary text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">0</span> | |
| </a> | |
| <button id="mobile-menu-button" class="md:hidden p-2"> | |
| <i data-feather="menu" class="text-dark"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Mobile Menu --> | |
| <div id="mobile-menu" class="fixed inset-0 bg-black bg-opacity-90 z-40 hidden"> | |
| <div class="container mx-auto px-6 py-20"> | |
| <div class="flex flex-col space-y-6 text-white text-2xl"> | |
| <a href="index.html" class="hover:text-primary transition">Home</a> | |
| <a href="shop.html" class="hover:text-primary transition">Shop</a> | |
| <a href="new-arrivals.html" class="hover:text-primary transition">New Arrivals</a> | |
| <a href="collections.html" class="hover:text-primary transition">Collections</a> | |
| <a href="about.html" class="hover:text-primary transition">About</a> | |
| <a href="contact.html" class="hover:text-primary transition">Contact</a> | |
| <div class="pt-6"> | |
| <a href="login.html" class="inline-flex items-center hover:text-primary transition"> | |
| <i data-feather="user" class="mr-2"></i> Login | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Login Section --> | |
| <section class="min-h-screen flex items-center justify-center pt-20 pb-10"> | |
| <div class="container mx-auto px-6"> | |
| <div class="max-w-md mx-auto bg-white rounded-lg shadow-lg overflow-hidden"> | |
| <div class="login-bg h-32 flex items-center justify-center"> | |
| <h2 class="text-3xl font-heading text-white">WELCOME BACK</h2> | |
| </div> | |
| <div class="p-8"> | |
| <form id="login-form" class="space-y-6"> | |
| <div> | |
| <label for="email" class="block text-sm font-medium text-gray-700">Email</label> | |
| <input type="email" id="email" name="email" required | |
| class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-primary focus:border-primary"> | |
| </div> | |
| <div> | |
| <label for="password" class="block text-sm font-medium text-gray-700">Password</label> | |
| <input type="password" id="password" name="password" required | |
| class="mt-1 block w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-primary focus:border-primary"> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input id="remember-me" name="remember-me" type="checkbox" | |
| class="h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded"> | |
| <label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label> | |
| </div> | |
| <div class="text-sm"> | |
| <a href="#" class="font-medium text-primary hover:text-secondary">Forgot password?</a> | |
| </div> | |
| </div> | |
| <div> | |
| <button type="submit" | |
| class="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary"> | |
| Sign in | |
| </button> | |
| </div> | |
| </form> | |
| <div class="mt-6"> | |
| <div class="relative"> | |
| <div class="absolute inset-0 flex items-center"> | |
| <div class="w-full border-t border-gray-300"></div> | |
| </div> | |
| <div class="relative flex justify-center text-sm"> | |
| <span class="px-2 bg-white text-gray-500">Or continue with</span> | |
| </div> | |
| </div> | |
| <div class="mt-6 grid grid-cols-2 gap-3"> | |
| <div> | |
| <a href="#" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50"> | |
| <i data-feather="facebook" class="h-5 w-5"></i> | |
| </a> | |
| </div> | |
| <div> | |
| <a href="#" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50"> | |
| <i data-feather="google" class="h-5 w-5"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-6 text-center"> | |
| <p class="text-sm text-gray-600"> | |
| Don't have an account? | |
| <a href="register.html" class="font-medium text-primary hover:text-secondary">Sign up</a> | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <script> | |
| // Initialize Feather Icons | |
| feather.replace(); | |
| // Mobile Menu Toggle | |
| const mobileMenuButton = document.getElementById('mobile-menu-button'); | |
| const mobileMenu = document.getElementById('mobile-menu'); | |
| mobileMenuButton.addEventListener('click', () => { | |
| mobileMenu.classList.toggle('hidden'); | |
| }); | |
| // Close mobile menu when clicking outside | |
| document.addEventListener('click', (e) => { | |
| if (!mobileMenu.contains(e.target) && e.target !== mobileMenuButton) { | |
| mobileMenu.classList.add('hidden'); | |
| } | |
| }); | |
| // Login Form Submission | |
| const loginForm = document.getElementById('login-form'); | |
| loginForm.addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| const email = document.getElementById('email').value; | |
| const password = document.getElementById('password').value; | |
| // Here you would typically send this to your backend | |
| console.log('Login attempt with:', { email, password }); | |
| // For demo purposes, just redirect to home page | |
| window.location.href = 'index.html'; | |
| }); | |
| // Dark/Light mode toggle | |
| const themeToggle = document.getElementById('theme-toggle'); | |
| const body = document.body; | |
| themeToggle.addEventListener('click', () => { | |
| body.classList.toggle('dark-mode'); | |
| const icon = themeToggle.querySelector('i'); | |
| if (body.classList.contains('dark-mode')) { | |
| feather.replace(); | |
| icon.setAttribute('data-feather', 'sun'); | |
| } else { | |
| feather.replace(); | |
| icon.setAttribute('data-feather', 'moon'); | |
| } | |
| feather.replace(); | |
| }); | |
| </script> | |
| </body> | |
| </html> |