-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanding.html
More file actions
598 lines (533 loc) · 25.3 KB
/
Copy pathlanding.html
File metadata and controls
598 lines (533 loc) · 25.3 KB
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
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>➰ LOOPIN ➰ - Where Reality Becomes Territory</title>
<!-- 1. Load Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- 2. Load Custom Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@700&family=Inter:wght@400;700&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
<!-- 3. Define the LOOPIN Design System via Tailwind Config & Custom CSS -->
<style>
/* Custom CSS variables for easier use */
:root {
--glitch-green: #C7F441;
--deep-grid: #1A1A1A;
--ghosted: #EAEAEA;
--grid-white: #FFFFFF;
--alert-blue: #007BFF;
--error-red: #FF4136;
}
/* Apply base font and text color */
body {
font-family: 'Inter', sans-serif;
color: var(--deep-grid);
background-color: var(--grid-white);
overflow-x: hidden; /* Prevent horizontal scroll */
}
/* Style headings as per the design language */
h1, h2, h3 {
font-family: 'Chakra Petch', sans-serif;
font-weight: 700;
text-transform: uppercase;
}
/* The Grid Overlay */
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
z-index: -1;
pointer-events: none;
background-image:
linear-gradient(to right, var(--ghosted) 1px, transparent 1px),
linear-gradient(to bottom, var(--ghosted) 1px, transparent 1px);
background-size: 40px 40px;
opacity: 0.2; /* Subtle grid */
}
/* The dynamic canvas background */
#hero-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.6;
}
/* Glitch hover effect for the main H1 */
.glitch-hover {
position: relative;
display: inline-block;
}
.glitch-hover::before,
.glitch-hover::after {
content: attr(data-text);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--grid-white);
overflow: hidden;
opacity: 0;
}
.glitch-hover::before {
left: 2px;
text-shadow: -2px 0 var(--glitch-green);
animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch-hover::after {
left: -2px;
text-shadow: -2px 0 var(--alert-blue), 2px 2px var(--error-red);
animation: glitch-anim-2 2s infinite linear alternate-reverse;
}
.glitch-hover:hover::before,
.glitch-hover:hover::after {
opacity: 1;
}
@keyframes glitch-anim-1 {
0% { clip-path: inset(10% 0 80% 0); }
20% { clip-path: inset(50% 0 30% 0); }
40% { clip-path: inset(20% 0 10% 0); }
60% { clip-path: inset(70% 0 5% 0); }
80% { clip-path: inset(40% 0 45% 0); }
100% { clip-path: inset(85% 0 5% 0); }
}
@keyframes glitch-anim-2 {
0% { clip-path: inset(75% 0 10% 0); }
20% { clip-path: inset(15% 0 70% 0); }
40% { clip-path: inset(90% 0 5% 0); }
60% { clip-path: inset(30% 0 50% 0); }
80% { clip-path: inset(60% 0 20% 0); }
100% { clip-path: inset(5% 0 80% 0); }
}
/* Vertical Timeline Styles */
.timeline {
position: relative;
max-width: 1200px;
margin: 0 auto;
}
.timeline::after {
content: '';
position: absolute;
width: 6px;
background-color: var(--deep-grid);
top: 0;
bottom: 0;
left: 50%;
margin-left: -3px;
}
.timeline-container {
padding: 10px 40px;
position: relative;
background-color: inherit;
width: 50%;
}
.timeline-container.left {
left: 0;
}
.timeline-container.right {
left: 50%;
}
.timeline-container::after {
content: '';
position: absolute;
width: 25px;
height: 25px;
right: -17px;
background-color: var(--grid-white);
border: 4px solid var(--glitch-green);
top: 15px;
border-radius: 50%;
z-index: 1;
}
.timeline-container.right::after {
left: -16px;
}
.timeline-content {
padding: 20px 30px;
background-color: var(--grid-white);
position: relative;
border-radius: 6px;
border: 2px solid var(--deep-grid);
}
</style>
<!-- 4. Tailwind Configuration -->
<script>
tailwind.config = {
theme: {
extend: {
colors: {
'glitch-green': '#C7F441',
'deep-grid': '#1A1A1A',
'ghosted': '#EAEAEA',
'grid-white': '#FFFFFF',
'alert-blue': '#007BFF',
'error-red': '#FF4136',
},
fontFamily: {
heading: ['Chakra Petch', 'sans-serif'],
body: ['Inter', 'sans-serif'],
mono: ['"JetBrains Mono"', 'monospace'],
},
borderRadius: {
'chunky': '12px',
},
boxShadow: {
'glow-green': '0 0 15px 5px rgba(199, 244, 65, 0.5)',
'glow-green-sm': '0 0 8px 2px rgba(199, 244, 65, 0.4)',
}
},
},
};
</script>
</head>
<body class="bg-grid-white text-deep-grid font-body antialiased">
<!-- Canvas for Dynamic Background -->
<canvas id="hero-canvas"></canvas>
<!-- Header -->
<header class="absolute top-0 left-0 right-0 z-10">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<nav class="flex h-20 items-center justify-between">
<a href="#" class="text-2xl font-heading font-bold">LOOPIN</a>
<div class="flex items-center gap-4">
<a href="https://www.loopin.fit/demo" class="btn-secondary">DEMO</a>
<a href="https://github.com/chandan989/Loopin" class="btn-secondary">SOURCE</a>
<a href="#join" class="btn-primary">
JOIN THE GRID
</a>
</div>
</nav>
</div>
</header>
<main>
<!-- Hero Section -->
<section class="relative min-h-screen flex items-center justify-center overflow-hidden py-32 px-4 sm:px-6 lg:px-8">
<div class="relative z-10 max-w-3xl text-center">
<div class="inline-block bg-transparent border-2 border-glitch-green rounded-chunky px-4 py-2 mb-8 shadow-glow-green-sm">
<span class="text-glitch-green font-mono font-bold">BETA LIVE</span>
</div>
<h1 class="glitch-hover text-5xl sm:text-7xl md:text-8xl" data-text="REALITY AMPLIFIED.">
REALITY AMPLIFIED.
</h1>
<p class="mt-8 text-lg md:text-xl max-w-2xl mx-auto">
The membrane between digital and physical reality has shattered. You are a Grid Runner. Your movement creates power. Your territory translates to victory.
</p>
<div class="mt-12 flex flex-col sm:flex-row justify-center gap-4">
<a href="https://www.loopin.fit/demo" class="btn-primary">
VIEW DEMO
</a>
<a href="#protocol" class="btn-secondary">
READ THE PROTOCOL
</a>
</div>
</div>
</section>
<!-- Protocol Section -->
<section id="protocol" class="py-24 relative z-10">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="text-4xl md:text-5xl">THE PROTOCOL</h2>
<p class="mt-4 text-lg max-w-xl mx-auto">
The game is session-based. Players pay an entry fee in STX to join, which contributes to a prize pool. The winner at the end of the session takes the prize.
</p>
</div>
<!-- Feature Cards -->
<div class="mt-16 grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Card 1 -->
<div class="card">
<div class="p-8">
<h3 class="mt-6 text-2xl">PHASE ONE: TRAIL EMISSION</h3>
<p class="mt-4 text-base opacity-90">
Your physical presence bleeds data. As you move, your neural interface generates a Quantum Trail—a cryptographically signed path visible to all Grid Runners.
</p>
</div>
</div>
<!-- Card 2 -->
<div class="card">
<div class="p-8">
<h3 class="mt-6 text-2xl">PHASE TWO: TERRITORIAL CAPTURE</h3>
<p class="mt-4 text-base opacity-90">
Complete the circuit. Return to any point on your own trail to close the loop, initiating a Territory Capture Protocol. The enclosed area becomes yours.
</p>
</div>
</div>
<!-- Card 3 -->
<div class="card">
<div class="p-8">
<h3 class="mt-6 text-2xl">PHASE THREE: INTERFERENCE WARFARE</h3>
<p class="mt-4 text-base opacity-90">
You're not alone. Intersect an opponent's active trail to cut it, collapsing their loop potential. Territory capture is zero-sum.
</p>
</div>
</div>
</div>
</div>
</section>
<!-- System Architecture Section -->
<section class="py-24 relative z-10">
<div class="mx-auto max-w-4xl px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="text-4xl md:text-5xl">SYSTEM ARCHITECTURE</h2>
<p class="mt-4 text-lg max-w-xl mx-auto">
Built on a modern, decentralized stack for a seamless and secure experience.
</p>
</div>
<div class="mt-12 p-8 bg-deep-grid text-grid-white rounded-chunky font-mono text-sm md:text-base">
<p>> INTERFACE: <span class="text-glitch-green">React + Vite + TypeScript</span></p>
<p>> CORE LOGIC: <span class="text-glitch-green">FastAPI (Python)</span></p>
<p>> IDENTITY: <span class="text-glitch-green">Supabase Auth</span></p>
<p>> WEB3 LAYER: <span class="text-glitch-green">Stacks Blockchain</span></p>
<p>> STATE ARCHIVE: <span class="text-glitch-green">PostgreSQL (PostGIS)</span></p>
<p>> COMMUNICATION: <span class="text-glitch-green">WebSocket</span></p>
</div>
</div>
</section>
<!-- Operator's Manual Section -->
<section class="py-24 relative z-10">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="text-center">
<h2 class="text-4xl md:text-5xl">OPERATOR'S MANUAL</h2>
</div>
<div class="mt-16 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
<div class="text-center">
<h3 class="text-2xl">1. CONNECT WALLET</h3>
<p class="mt-2">Connect your Hiro Wallet to establish your Grid Runner identity.</p>
</div>
<div class="text-center">
<h3 class="text-2xl">2. PAY ENTRY FEE</h3>
<p class="mt-2">Pay an entry fee in STX to join a game session and contribute to the prize pool.</p>
</div>
<div class="text-center">
<h3 class="text-2xl">3. GENERATE TRAIL</h3>
<p class="mt-2">Begin moving to emit your quantum trail, visible to other runners.</p>
</div>
<div class="text-center">
<h3 class="text-2xl">4. CAPTURE TERRITORY</h3>
<p class="mt-2">Return to any point on your trail to form a loop and capture the enclosed area.</p>
</div>
</div>
</div>
</section>
<!-- Evolution Timeline Section -->
<section class="py-24 relative z-10">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl">EVOLUTION TIMELINE</h2>
</div>
<div class="timeline">
<div class="timeline-container left">
<div class="timeline-content">
<h3 class="text-2xl">PHASE ALPHA ✅</h3>
<p class="mt-2">Core gameplay loop. Stacks integration for payments. GPS trail mechanics.</p>
</div>
</div>
<div class="timeline-container right">
<div class="timeline-content">
<h3 class="text-2xl">PHASE BETA 🔄</h3>
<p class="mt-2">Real-time PvP Combat, Squad Formation, Global Leaderboards.</p>
</div>
</div>
<div class="timeline-container left">
<div class="timeline-content">
<h3 class="text-2xl">PHASE GAMMA 🔮</h3>
<p class="mt-2">Bitcoin Lightning Integration, Advanced Game Modes, Mobile Native Apps.</p>
</div>
</div>
<div class="timeline-container right">
<div class="timeline-content">
<h3 class="text-2xl">PHASE OMEGA 🌟</h3>
<p class="mt-2">Mainnet Deployment, Global Grid Network, Player Governance.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Form/CTA Section -->
<section id="join" class="py-24 relative z-10">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-2 gap-12 items-center">
<!-- Left Column: Form -->
<div>
<h2 class="text-4xl md:text-5xl">GET ON THE LIST</h2>
<p class="mt-4 text-lg">
The grid is expanding. Be the first to know when new nodes go live.
No spam, just signals.
</p>
<form class="mt-10 space-y-6">
<div>
<label for="email" class="block text-sm font-bold uppercase tracking-wider">Email Address</label>
<input type="email" name="email" id="email" class="input-field" placeholder="you@thegrid.com">
</div>
<button type="submit" class="btn-primary w-full">
SECURE MY SPOT
</button>
</form>
</div>
<!-- Right Column: Live Feed -->
<div class="space-y-6">
<h3 class="text-2xl">LIVE GRID FEED</h3>
<!-- Feed Item 1: Info -->
<div class="flex items-start p-4 bg-blue-50 border-l-4 border-alert-blue rounded-r-lg">
<svg class="h-6 w-6 text-alert-blue mr-3 flex-shrink-0" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line></svg>
<div>
<p class="font-bold">SYSTEM INFO</p>
<p class="text-sm">New node <span class="text-alert-blue font-mono">0x4F...A2</span> just went live in Sector 8B.</p>
</div>
</div>
<!-- Feed Item 2: Error -->
<div class="flex items-start p-4 bg-red-50 border-l-4 border-error-red rounded-r-lg">
<svg class="h-6 w-6 text-error-red mr-3 flex-shrink-0" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>
<div>
<p class="font-bold">GRID ALERT</p>
<p class="text-sm">User <span class="text-error-red font-mono">//V0ID_RUNNER//</span> just severed your trail at [4G.1.88].</p>
</div>
</div>
<!-- Feed Item 3: Success (Glitch Green) -->
<div class="flex items-start p-4 bg-green-50 border-l-4 border-glitch-green rounded-r-lg">
<svg class="h-6 w-6 text-glitch-green mr-3 flex-shrink-0" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>
<div>
<p class="font-bold">TRAIL CAPTURED</p>
<p class="text-sm">You successfully looped <span class="text-deep-grid font-mono">1.4 STX</span> from Sector 2A.</p>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="py-12 text-deep-grid relative z-10">
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 text-center">
<p class="text-2xl font-heading">LOOPIN</p>
<div class="flex justify-center gap-4 mt-4">
<a href="https://www.loopin.fit" class="text-sm opacity-70 hover:opacity-100">COMMAND CENTER</a>
<a href="https://github.com/chandan989/Loopin" class="text-sm opacity-70 hover:opacity-100">SOURCE VAULT</a>
</div>
<p class="mt-4 text-sm opacity-70">
© 2025 LOOPIN PROTOCOL. ALL RIGHTS RESERVED.
</p>
</div>
</footer>
<!-- 5. Global Styles & UI Element Definitions -->
<style>
/* Define UI Elements using Tailwind's @apply */
.btn-primary {
@apply inline-block px-8 py-4 bg-glitch-green text-deep-grid font-bold font-body rounded-chunky uppercase tracking-wider
transform transition-transform duration-200 ease-in-out
hover:scale-105 hover:shadow-glow-green-sm active:scale-100;
}
.btn-secondary {
@apply inline-block px-8 py-3.5 bg-transparent border-2 border-deep-grid text-deep-grid font-bold font-body rounded-chunky uppercase tracking-wider
transform transition-all duration-200 ease-in-out
hover:scale-105 hover:bg-deep-grid hover:text-grid-white hover:shadow-glow-green-sm active:scale-100;
}
.input-field {
@apply w-full px-5 py-4 bg-transparent border-2 border-ghosted rounded-chunky text-deep-grid font-body
placeholder:text-deep-grid placeholder:opacity-40
transition-all duration-200 ease-in-out
focus:outline-none focus:border-glitch-green focus:ring-4 focus:ring-glitch-green focus:ring-opacity-30 focus:shadow-glow-green-sm;
}
.card {
@apply relative bg-transparent border border-ghosted rounded-lg transition-transform duration-300 ease-out hover:-translate-y-2;
/* The 4px Glitch Green left border */
box-shadow: -4px 0 0 0 var(--glitch-green) inset;
}
</style>
<!-- 6. JavaScript for Dynamic Elements -->
<script>
document.addEventListener('DOMContentLoaded', () => {
// --- Button "Pop" on Click ---
const buttons = document.querySelectorAll('.btn-primary, .btn-secondary');
buttons.forEach(button => {
button.addEventListener('mousedown', () => {
if (!button.disabled) {
button.classList.add('scale-95'); // Add "pop"
}
});
button.addEventListener('mouseup', () => {
button.classList.remove('scale-95'); // Remove "pop"
});
button.addEventListener('mouseleave', () => {
button.classList.remove('scale-95'); // Ensure it resets if mouse leaves while pressed
});
});
// --- Hero Canvas Animation (Glitchy Trails) ---
const canvas = document.getElementById('hero-canvas');
const ctx = canvas.getContext('2d');
let width, height, trails;
const trailCount = 50;
const trailLength = 20;
function initCanvas() {
width = canvas.width = window.innerWidth;
height = canvas.height = window.innerHeight;
trails = [];
for (let i = 0; i < trailCount; i++) {
trails.push(new Trail());
}
}
class Trail {
constructor() {
this.reset();
}
reset() {
this.x = Math.random() * width;
this.y = Math.random() * height;
this.speed = Math.random() * 2 + 1;
this.angle = Math.random() * Math.PI * 2;
this.vx = Math.cos(this.angle) * this.speed;
this.vy = Math.sin(this.angle) * this.speed;
this.life = Math.random() * 100 + 50;
this.history = [];
}
update() {
this.life--;
if (this.life <= 0) {
this.reset();
}
this.x += this.vx;
this.y += this.vy;
// Wall bounce
if (this.x < 0 || this.x > width) this.vx *= -1;
if (this.y < 0 || this.y > height) this.vy *= -1;
// Add to history
this.history.push({ x: this.x, y: this.y });
if (this.history.length > trailLength) {
this.history.shift();
}
}
draw() {
ctx.beginPath();
for (let i = 0; i < this.history.length; i++) {
const point = this.history[i];
const alpha = (i / this.history.length) * 0.5; // Fade out
ctx.fillStyle = \`rgba(199, 244, 65, \${alpha})\`;
ctx.fillRect(point.x, point.y, 2, 2); // Use squares for a "digital" feel
}
ctx.closePath();
}
}
function animate() {
ctx.clearRect(0, 0, width, height); // Clear canvas
trails.forEach(trail => {
trail.update();
trail.draw();
});
requestAnimationFrame(animate);
}
// Initialize and resize
initCanvas();
animate();
window.addEventListener('resize', initCanvas);
});
</script>
</body>
</html>