Spaces:
Running
Running
Download login.html from Thando27/deepsite-project: direct link, hf CLI and curl.
- Browser
- Download file 3.36 kB
-
https://huggingface.co/spaces/Thando27/deepsite-project/resolve/main/login.html
- Command line
-
hf download hf://spaces/Thando27/deepsite-project/login.html
-
curl -L -o login.html https://huggingface.co/spaces/Thando27/deepsite-project/resolve/main/login.html
3.36 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Login - GroupSync</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <style> | |
| .bg-purple-light { | |
| background-color: #F3E8FF; | |
| } | |
| .btn-purple { | |
| background-color: #8B5CF6; | |
| } | |
| .btn-purple:hover { | |
| background-color: #7C3AED; | |
| } | |
| </style> | |
| <!-- Firebase SDK --> | |
| <script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script> | |
| <script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script> | |
| <script> | |
| // Your Firebase config | |
| const firebaseConfig = { | |
| apiKey: "AIzaSyD...", | |
| authDomain: "groupsync-1.firebaseapp.com", | |
| projectId: "groupsync-1", | |
| storageBucket: "groupsync-1.appspot.com", | |
| messagingSenderId: "460981256765", | |
| appId: "1:460981256765:web:ff87818f718c33079ea054" | |
| }; | |
| firebase.initializeApp(firebaseConfig); | |
| </script> | |
| </head> | |
| <body class="bg-purple-light min-h-screen flex items-center justify-center p-4"> | |
| <div class="bg-white rounded-xl shadow-lg p-8 w-full max-w-md"> | |
| <div class="text-center mb-8"> | |
| <i class="fas fa-users text-5xl text-purple-600 mb-4"></i> | |
| <h1 class="text-3xl font-bold text-gray-800">Welcome to GroupSync</h1> | |
| <p class="text-gray-600 mt-2">Organize your group tasks effortlessly</p> | |
| </div> | |
| <form id="loginForm" class="space-y-4"> | |
| <div> | |
| <label class="block text-gray-700 mb-2">Email</label> | |
| <input type="email" id="email" required | |
| class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-pink-300 focus:border-transparent"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-700 mb-2">Password</label> | |
| <input type="password" id="password" required | |
| class="w-full px-4 py-2 border rounded-lg focus:ring-2 focus:ring-pink-300 focus:border-transparent"> | |
| </div> | |
| <button type="submit" | |
| class="w-full btn-purple text-white py-2 rounded-lg font-medium hover:shadow-lg transition-all"> | |
| <i class="fas fa-sign-in-alt mr-2"></i> Login | |
| </button> | |
| </form> | |
| <div class="mt-6 text-center"> | |
| <p class="text-gray-600">Don't have an account? | |
| <a href="#" class="text-purple-600 font-medium hover:underline">Sign up</a> | |
| </p> | |
| </div> | |
| </div> | |
| <script> | |
| document.getElementById('loginForm').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| const email = document.getElementById('email').value; | |
| const password = document.getElementById('password').value; | |
| firebase.auth().signInWithEmailAndPassword(email, password) | |
| .then(() => { | |
| window.location.href = 'dashboard.html'; | |
| }) | |
| .catch(error => { | |
| alert(error.message); | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |