File size: 10,157 Bytes
4a1c18b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2f1d62a
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
<!DOCTYPE html>
<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>