-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
414 lines (399 loc) · 11.4 KB
/
index.html
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GitMod - Next Level UI</title>
<!-- Google Fonts for a modern, refined look -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Orbitron:wght@400;700&display=swap" rel="stylesheet">
<style>
/* CSS Variables */
:root {
--bg-dark: #0d0d18;
--bg-accent: #1e1e30;
--primary-light: #f5f5f5;
--accent-light: #ff073a;
--neon-blue: #00d1ff;
--card-bg: rgba(30, 30, 48, 0.85);
--modal-bg: rgba(0, 0, 0, 0.9);
}
/* Global Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
font-family: 'Inter', sans-serif;
color: var(--primary-light);
overflow-x: hidden;
background: var(--bg-dark);
}
/* Three.js Canvas */
#bg-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
/* Animated Multicolor Text */
.multicolor {
background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff);
background-size: 300%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: colorShift 5s linear infinite;
}
@keyframes colorShift {
0% { background-position: 0%; }
100% { background-position: 300%; }
}
/* Header & Navigation */
header {
padding: 1.5rem 3rem;
display: flex;
align-items: center;
justify-content: space-between;
background: rgba(0, 0, 0, 0.5);
border-bottom: 1px solid rgba(255, 7, 58, 0.3);
position: sticky;
top: 0;
z-index: 1100;
backdrop-filter: blur(8px);
}
header h1 {
font-family: 'Orbitron', sans-serif;
font-size: 2.8rem;
color: var(--neon-blue);
text-shadow: 0 4px 10px rgba(0, 209, 255, 0.6);
transition: transform 0.3s ease;
}
header h1:hover {
transform: scale(1.05);
}
nav ul {
list-style: none;
display: flex;
gap: 2rem;
}
nav a {
text-decoration: none;
font-size: 1.2rem;
color: var(--accent-light);
position: relative;
transition: color 0.3s ease;
}
nav a::after {
content: "";
position: absolute;
left: 0;
bottom: -5px;
width: 0;
height: 2px;
background: var(--accent-light);
transition: width 0.3s ease;
}
nav a:hover {
color: var(--neon-blue);
}
nav a:hover::after {
width: 100%;
}
/* Container */
.container {
width: 90%;
max-width: 1200px;
margin: 2rem auto;
padding: 1rem;
}
/* Main Content Layout */
main {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 2.5rem;
padding: 1rem 0;
}
/* Enhanced Card with 3D Depth */
.card {
background: var(--card-bg);
border-radius: 12px;
padding: 2rem;
backdrop-filter: blur(10px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
transform: perspective(600px) translateZ(0);
transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
transform: perspective(600px) translateZ(15px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}
.card h2 {
font-family: 'Orbitron', sans-serif;
font-size: 2.2rem;
margin-bottom: 1rem;
}
.card p {
font-size: 1.1rem;
margin-bottom: 1.8rem;
color: var(--primary-light);
}
/* Elevated Button Styling */
.btn {
font-family: 'Orbitron', sans-serif;
font-size: 1.1rem;
background: var(--accent-light);
border: none;
color: var(--bg-dark);
padding: 0.9rem 2rem;
border-radius: 6px;
cursor: pointer;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn:hover {
transform: translateY(-4px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
background: var(--neon-blue);
color: var(--bg-dark);
}
/* Footer Styling */
footer {
text-align: center;
padding: 2rem 0;
border-top: 1px solid rgba(255, 7, 58, 0.3);
font-size: 0.9rem;
margin-top: 3rem;
}
/* Modal for Login/Sign Up */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--modal-bg);
display: none;
align-items: center;
justify-content: center;
z-index: 1200;
}
.modal-content {
background: var(--card-bg);
border-radius: 12px;
width: 90%;
max-width: 400px;
padding: 2.5rem;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
position: relative;
transform: perspective(600px) translateZ(0);
transition: transform 0.35s ease;
}
.modal-content:hover {
transform: perspective(600px) translateZ(10px);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.5rem;
}
.modal-header h3 {
font-family: 'Orbitron', sans-serif;
color: var(--accent-light);
}
.close-btn {
background: none;
border: none;
font-size: 1.5rem;
color: var(--primary-light);
cursor: pointer;
}
.tab-buttons {
display: flex;
justify-content: space-around;
margin-bottom: 1.5rem;
}
.tab-buttons button {
background: none;
border: none;
font-size: 1rem;
padding: 0.5rem 1rem;
cursor: pointer;
color: var(--primary-light);
border-bottom: 2px solid transparent;
transition: border-color 0.3s ease;
}
.tab-buttons button.active {
border-color: var(--accent-light);
}
form {
display: none;
flex-direction: column;
gap: 1rem;
}
form.active {
display: flex;
}
input[type="text"],
input[type="email"],
input[type="password"] {
width: 100%;
padding: 0.9rem;
border: 1px solid #555;
border-radius: 6px;
background: var(--bg-accent);
color: var(--primary-light);
}
/* Responsive Adjustments */
@media (max-width: 768px) {
header, .container {
padding: 1rem;
}
nav a {
font-size: 1rem;
}
header h1 {
font-size: 2rem;
}
.card, .modal-content {
padding: 1.8rem;
}
}
</style>
</head>
<body>
<!-- Three.js Background Canvas -->
<canvas id="bg-canvas"></canvas>
<header class="container">
<h1 class="multicolor">GitMod</h1>
<nav>
<ul>
<li><a href="#">Repositories</a></li>
<li><a href="#">Games</a></li>
<li><a href="#">Modding</a></li>
<li><a href="#">Hacking</a></li>
<li><a href="#" id="loginBtn">Login / Sign Up</a></li>
</ul>
</nav>
</header>
<main class="container">
<div class="card">
<h2 class="multicolor">Welcome to GitMod</h2>
<p>
Collaborate, build, mod, and hack in an ultra-modern, enterprise‑grade environment. Experience next‑level features and design.
</p>
<button class="btn">Get Started</button>
</div>
<div class="card">
<h2 class="multicolor">Featured Repository</h2>
<p>
Discover our latest project showcasing cutting‑edge innovations and a dynamic community spirit.
</p>
<a class="btn" href="#">View Repository</a>
</div>
</main>
<footer class="container">
<p>© 2025 GitMod. All rights reserved.</p>
</footer>
<!-- Modal for Login / Sign Up -->
<div class="modal" id="auth-modal">
<div class="modal-content">
<div class="modal-header">
<h3 id="modal-title">Login</h3>
<button class="close-btn" id="closeModal">×</button>
</div>
<div class="tab-buttons">
<button id="loginTab" class="active">Login</button>
<button id="signupTab">Sign Up</button>
</div>
<!-- Login Form -->
<form id="loginForm" class="active">
<input type="email" placeholder="Email" required>
<input type="password" placeholder="Password" required>
<button class="btn" type="submit">Login</button>
</form>
<!-- Sign Up Form -->
<form id="signupForm">
<input type="text" placeholder="Username" required>
<input type="email" placeholder="Email" required>
<input type="password" placeholder="Password" required>
<button class="btn" type="submit">Sign Up</button>
</form>
</div>
</div>
<!-- Three.js Library -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script>
// Three.js Animated Background
const canvas = document.getElementById('bg-canvas');
const renderer = new THREE.WebGLRenderer({ canvas, alpha: true });
renderer.setSize(window.innerWidth, window.innerHeight);
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth/window.innerHeight, 0.1, 1000);
camera.position.z = 5;
// Create a rotating, wireframe torus knot
const geometry = new THREE.TorusKnotGeometry(1, 0.3, 100, 16);
const material = new THREE.MeshBasicMaterial({
color: 0xffffff,
wireframe: true,
opacity: 0.5,
transparent: true
});
const torusKnot = new THREE.Mesh(geometry, material);
scene.add(torusKnot);
function animate() {
requestAnimationFrame(animate);
torusKnot.rotation.x += 0.01;
torusKnot.rotation.y += 0.01;
renderer.render(scene, camera);
}
animate();
window.addEventListener('resize', () => {
const width = window.innerWidth;
const height = window.innerHeight;
renderer.setSize(width, height);
camera.aspect = width / height;
camera.updateProjectionMatrix();
});
// Modal toggling and tab switching
const loginBtn = document.getElementById('loginBtn');
const authModal = document.getElementById('auth-modal');
const closeModal = document.getElementById('closeModal');
const loginTab = document.getElementById('loginTab');
const signupTab = document.getElementById('signupTab');
const loginForm = document.getElementById('loginForm');
const signupForm = document.getElementById('signupForm');
const modalTitle = document.getElementById('modal-title');
loginBtn.addEventListener('click', (e) => {
e.preventDefault();
authModal.style.display = 'flex';
});
closeModal.addEventListener('click', () => {
authModal.style.display = 'none';
});
loginTab.addEventListener('click', () => {
loginTab.classList.add('active');
signupTab.classList.remove('active');
loginForm.classList.add('active');
signupForm.classList.remove('active');
modalTitle.textContent = 'Login';
});
signupTab.addEventListener('click', () => {
signupTab.classList.add('active');
loginTab.classList.remove('active');
signupForm.classList.add('active');
loginForm.classList.remove('active');
modalTitle.textContent = 'Sign Up';
});
window.addEventListener('click', (e) => {
if (e.target === authModal) {
authModal.style.display = 'none';
}
});
</script>
</body>
</html>