Spaces:
Running
Running
Make a website named "Quick Chat" people can sign up or login to make chats with other people who are sign in (NO FAKE CHATS OR AI CHATS)
4a1c18b verified Download index.html from JeffreyMill/quickchat-express: direct link, hf CLI and curl.
- Browser
- Download file 10.2 kB
-
https://huggingface.co/spaces/JeffreyMill/quickchat-express/resolve/main/index.html
- Command line
-
hf download hf://spaces/JeffreyMill/quickchat-express/index.html
-
curl -L -o index.html https://huggingface.co/spaces/JeffreyMill/quickchat-express/resolve/main/index.html
10.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>QuickChat Express - Real-time Connections</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.net.min.js"></script> | |
| <style> | |
| .auth-card { | |
| backdrop-filter: blur(10px); | |
| background-color: rgba(255, 255, 255, 0.1); | |
| } | |
| .chat-bubble { | |
| animation: fadeIn 0.3s ease-in-out; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| </style> | |
| </head> | |
| <body class="min-h-screen bg-gray-900 text-white"> | |
| <div id="vanta-bg" class="fixed inset-0 z-0"></div> | |
| <div class="relative z-10 min-h-screen flex flex-col"> | |
| <!-- Navigation --> | |
| <nav class="px-4 py-4 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i data-feather="message-square" class="text-blue-400"></i> | |
| <span class="text-xl font-bold bg-gradient-to-r from-blue-400 to-purple-500 bg-clip-text text-transparent">QuickChat Express</span> | |
| </div> | |
| <div class="flex space-x-4"> | |
| <button id="loginBtn" class="px-4 py-2 rounded-full bg-blue-600 hover:bg-blue-700 transition">Login</button> | |
| <button id="signupBtn" class="px-4 py-2 rounded-full border border-blue-400 hover:bg-blue-900/30 transition">Sign Up</button> | |
| </div> | |
| </nav> | |
| <!-- Hero Section --> | |
| <main class="flex-1 flex flex-col items-center justify-center px-4 text-center"> | |
| <h1 class="text-5xl font-bold mb-6 leading-tight"> | |
| Connect <span class="text-blue-400">instantly</span> with<br>real people worldwide | |
| </h1> | |
| <p class="text-xl text-gray-300 max-w-2xl mb-8"> | |
| No bots. No fake chats. Just genuine conversations with real people who are online right now. | |
| </p> | |
| <div class="flex space-x-4"> | |
| <button id="getStartedBtn" class="px-8 py-3 rounded-full bg-blue-600 hover:bg-blue-700 text-lg font-medium transition transform hover:scale-105"> | |
| Get Started Now | |
| </button> | |
| <button class="px-8 py-3 rounded-full border border-blue-400 hover:bg-blue-900/30 text-lg font-medium transition flex items-center space-x-2"> | |
| <i data-feather="play-circle"></i> | |
| <span>See How It Works</span> | |
| </button> | |
| </div> | |
| </main> | |
| <!-- Auth Modals --> | |
| <div id="loginModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"> | |
| <div class="auth-card rounded-xl p-8 w-full max-w-md relative"> | |
| <button class="absolute top-4 right-4 text-gray-400 hover:text-white"> | |
| <i data-feather="x" class="close-modal"></i> | |
| </button> | |
| <h2 class="text-2xl font-bold mb-6 text-center">Welcome Back!</h2> | |
| <form id="loginForm" class="space-y-4"> | |
| <div> | |
| <label class="block text-gray-300 mb-2">Email</label> | |
| <input type="email" required class="w-full px-4 py-3 bg-gray-800 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-300 mb-2">Password</label> | |
| <input type="password" required class="w-full px-4 py-3 bg-gray-800 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <button type="submit" class="w-full py-3 bg-blue-600 rounded-lg hover:bg-blue-700 transition font-medium"> | |
| Login | |
| </button> | |
| </form> | |
| <div class="text-center mt-4 text-gray-400"> | |
| Don't have an account? <button class="text-blue-400 hover:underline switch-to-signup">Sign up</button> | |
| </div> | |
| </div> | |
| </div> | |
| <div id="signupModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center hidden z-50"> | |
| <div class="auth-card rounded-xl p-8 w-full max-w-md relative"> | |
| <button class="absolute top-4 right-4 text-gray-400 hover:text-white"> | |
| <i data-feather="x" class="close-modal"></i> | |
| </button> | |
| <h2 class="text-2xl font-bold mb-6 text-center">Join QuickChat Express</h2> | |
| <form id="signupForm" class="space-y-4"> | |
| <div> | |
| <label class="block text-gray-300 mb-2">Full Name</label> | |
| <input type="text" required class="w-full px-4 py-3 bg-gray-800 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-300 mb-2">Email</label> | |
| <input type="email" required class="w-full px-4 py-3 bg-gray-800 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-300 mb-2">Password</label> | |
| <input type="password" required class="w-full px-4 py-3 bg-gray-800 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <div> | |
| <label class="block text-gray-300 mb-2">Confirm Password</label> | |
| <input type="password" required class="w-full px-4 py-3 bg-gray-800 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| </div> | |
| <button type="submit" class="w-full py-3 bg-blue-600 rounded-lg hover:bg-blue-700 transition font-medium"> | |
| Create Account | |
| </button> | |
| </form> | |
| <div class="text-center mt-4 text-gray-400"> | |
| Already have an account? <button class="text-blue-400 hover:underline switch-to-login">Login</button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| // Initialize Vanta.js background | |
| VANTA.NET({ | |
| el: "#vanta-bg", | |
| mouseControls: true, | |
| touchControls: true, | |
| gyroControls: false, | |
| minHeight: 200.00, | |
| minWidth: 200.00, | |
| scale: 1.00, | |
| scaleMobile: 1.00, | |
| color: 0x3b82f6, | |
| backgroundColor: 0x111827, | |
| points: 12.00, | |
| maxDistance: 22.00, | |
| spacing: 17.00 | |
| }); | |
| // Modal functionality | |
| const loginBtn = document.getElementById('loginBtn'); | |
| const signupBtn = document.getElementById('signupBtn'); | |
| const getStartedBtn = document.getElementById('getStartedBtn'); | |
| const loginModal = document.getElementById('loginModal'); | |
| const signupModal = document.getElementById('signupModal'); | |
| const closeModalButtons = document.querySelectorAll('.close-modal'); | |
| const switchToSignup = document.querySelector('.switch-to-signup'); | |
| const switchToLogin = document.querySelector('.switch-to-login'); | |
| // Show login modal | |
| loginBtn.addEventListener('click', () => { | |
| loginModal.classList.remove('hidden'); | |
| signupModal.classList.add('hidden'); | |
| }); | |
| // Show signup modal | |
| signupBtn.addEventListener('click', () => { | |
| signupModal.classList.remove('hidden'); | |
| loginModal.classList.add('hidden'); | |
| }); | |
| // Get started button shows signup | |
| getStartedBtn.addEventListener('click', () => { | |
| signupModal.classList.remove('hidden'); | |
| }); | |
| // Switch between modals | |
| switchToSignup.addEventListener('click', () => { | |
| loginModal.classList.add('hidden'); | |
| signupModal.classList.remove('hidden'); | |
| }); | |
| switchToLogin.addEventListener('click', () => { | |
| signupModal.classList.add('hidden'); | |
| loginModal.classList.remove('hidden'); | |
| }); | |
| // Close modals | |
| closeModalButtons.forEach(button => { | |
| button.addEventListener('click', () => { | |
| loginModal.classList.add('hidden'); | |
| signupModal.classList.add('hidden'); | |
| }); | |
| }); | |
| // Close modal when clicking outside | |
| window.addEventListener('click', (e) => { | |
| if (e.target === loginModal) { | |
| loginModal.classList.add('hidden'); | |
| } | |
| if (e.target === signupModal) { | |
| signupModal.classList.add('hidden'); | |
| } | |
| }); | |
| // Form submissions | |
| document.getElementById('loginForm').addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| // Here you would handle login logic | |
| alert('Login functionality coming soon!'); | |
| loginModal.classList.add('hidden'); | |
| // Redirect to chat.html after successful login | |
| window.location.href = 'chat.html'; | |
| }); | |
| document.getElementById('signupForm').addEventListener('submit', (e) => { | |
| e.preventDefault(); | |
| // Here you would handle signup logic | |
| alert('Account created successfully!'); | |
| signupModal.classList.add('hidden'); | |
| // Redirect to chat.html after successful signup | |
| window.location.href = 'chat.html'; | |
| }); | |
| // Initialize feather icons | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> | |