-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
447 lines (387 loc) Β· 19.9 KB
/
index.html
File metadata and controls
447 lines (387 loc) Β· 19.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, viewport-fit=cover">
<meta name="theme-color" content="#000000">
<meta name="description" content="A special question for a special person. β€οΈ">
<!-- Open Graph / Social Sharing Tags -->
<meta property="og:title" content="A Surprise For You π">
<meta property="og:description" content="I have a question to ask you...">
<meta property="og:image"
content="https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExcDdtZ2JiZDR0a3lvMDF4OG43bnk2b3NxanF4YnZ4N3k1eXJ3bnIxZyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/MDJ9IbxxvDUQM/giphy.gif">
<meta property="og:url" content="https://mysoulmate.love">
<meta property="og:type" content="website">
<title>My Heart Beats For You π</title>
<!-- Favicon -->
<link rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>π</text></svg>">
<!-- Core Libraries -->
<script crossorigin src="https://unpkg.com/react@18.2.0/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18.2.0/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@babel/standalone@7.23.6/babel.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
<!-- Fonts -->
<link
href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500;1,700&family=Dancing+Script:wght@600;700&family=Outfit:wght@300;400;500&display=swap"
rel="stylesheet">
<!-- Vercel Web Analytics -->
<script>
window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
</script>
<script defer src="/_vercel/insights/script.js"></script>
<style>
/* Base Reset */
body,
html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: #020202;
color: white;
font-family: 'Outfit', sans-serif;
overflow-x: hidden;
overflow-y: auto;
}
#bg-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
pointer-events: none;
}
.font-main-title {
font-family: 'Dancing Script', cursive;
letter-spacing: 0.02em;
}
.font-elegant {
font-family: 'Playfair Display', serif;
font-style: italic;
}
.glass-card {
background: rgba(20, 10, 10, 0.45);
backdrop-filter: blur(40px) saturate(180%);
-webkit-backdrop-filter: blur(40px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.08);
border-top: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(255, 20, 80, 0.05);
}
.text-glow {
text-shadow: 0 0 20px rgba(255, 105, 180, 0.5), 0 0 40px rgba(255, 20, 147, 0.3);
}
.btn-shine {
position: relative;
overflow: hidden;
transform: translateZ(0);
}
.btn-shine::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 50%;
height: 100%;
background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
transform: skewX(-25deg);
animation: shine 3s infinite;
}
@keyframes shine {
0% {
left: -100%;
}
20% {
left: 200%;
}
100% {
left: 200%;
}
}
.app-container {
min-height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
}
.tape-strip {
position: absolute;
top: -12px;
left: 50%;
transform: translateX(-50%) rotate(-1.5deg);
width: 100px;
height: 30px;
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(5px);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
z-index: 10;
}
.floating-emoji {
position: fixed;
pointer-events: none;
z-index: 1;
animation: floatUp 15s linear infinite;
opacity: 0.6;
filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.5));
}
@keyframes floatUp {
0% {
transform: translateY(110vh) rotate(0deg) scale(0.8);
opacity: 0;
}
10% {
opacity: 0.6;
}
90% {
opacity: 0.6;
}
100% {
transform: translateY(-10vh) rotate(360deg) scale(1.2);
opacity: 0;
}
}
.kiss-mark {
position: fixed;
font-size: 40px;
animation: kissFloat 8s ease-in-out infinite;
z-index: 1;
opacity: 0.4;
pointer-events: none;
}
@keyframes kissFloat {
0%,
100% {
transform: translate(0, 0) rotate(0deg);
opacity: 0;
}
50% {
transform: translate(30px, -50px) rotate(20deg);
opacity: 0.6;
}
}
/* Initial Loading Spinner */
#img-preloader {
display: none;
}
.loading-overlay {
position: fixed;
inset: 0;
background: #000;
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
transition: opacity 0.5s;
pointer-events: none;
}
.spinner {
width: 50px;
height: 50px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: #ff0060;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<!-- Initial Loading Screen -->
<div id="loader" class="loading-overlay">
<div class="spinner"></div>
</div>
<div id="bg-canvas"></div>
<div id="root"></div>
<!-- Hidden Preloader for Images -->
<div id="img-preloader"></div>
<audio id="loveSong" loop preload="auto">
<source src="Perfect-(Mr-Jat.in).mp3" type="audio/mpeg">
</audio>
<script type="text/babel">
// --- ASSETS ---
const ASSETS = {
music: "Perfect-(Mr-Jat.in).mp3",
mainGif: "momo-the-cat-momo.gif",
successGif: "cat-kiss.webp",
rejectionGifs: ["sad-cat.webp", "pleas-please.webp", "200w.webp", "dracriona-ezio.webp", "cat-gun.webp"]
};
const MESSAGES = [
{ t: "Will You Be My Forever?", s: "In a universe of billions, my heart chose you. You are my clarity in chaos. Will you walk this life with me?" },
{ t: "Wait... Really? π₯Ί", s: "Is this real? My heart skipped a beat when you hesitated. Please don't close the book on us." },
{ t: "Don't Break My Heart π", s: "I promise laughter, strength, and a love that never fades. Please, give us a chance to shine." },
{ t: "I'm Pleading With You π", s: "I will cross oceans just to see you smile. You are the only one I want, today and always." },
{ t: "Please... Don't Do This π", s: "This silence is deafening. We are two halves of the same whole. Tell me you feel it too!" },
{ t: "LAST CHANCE! πΉ", s: "Destiny brought us here. I am fighting for us because we are rare and magical. Say YES! π" }
];
const { useState, useEffect, useRef } = React;
const HighResBackground = () => {
useEffect(() => {
const cvs = document.getElementById('bg-canvas');
if (!cvs) return;
const scene = new THREE.Scene();
scene.fog = new THREE.FogExp2(0x0a0005, 0.001);
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({ alpha: true, antialias: true, powerPreference: "high-performance" });
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setPixelRatio(window.devicePixelRatio);
cvs.appendChild(renderer.domElement);
const count = 7000;
const geometry = new THREE.BufferGeometry();
const pos = new Float32Array(count * 3);
const tPos = new Float32Array(count * 3);
const col = new Float32Array(count * 3);
const c1 = new THREE.Color(0xff0040), c2 = new THREE.Color(0xffb7c5);
for (let i = 0; i < count; i++) {
pos[i * 3] = (Math.random() - 0.5) * 150; pos[i * 3 + 1] = (Math.random() - 0.5) * 150; pos[i * 3 + 2] = (Math.random() - 0.5) * 150;
const t = Math.random() * Math.PI * 2;
let hx = 16 * Math.pow(Math.sin(t), 3), hy = 13 * Math.cos(t) - 5 * Math.cos(2 * t) - 2 * Math.cos(3 * t) - Math.cos(4 * t), hz = (Math.random() - 0.5) * 6;
const r = 1 + Math.pow(Math.random(), 3) * 0.8, scale = 0.65;
tPos[i * 3] = hx * r * scale; tPos[i * 3 + 1] = hy * r * scale; tPos[i * 3 + 2] = hz * r * scale;
const mix = c1.clone().lerp(c2, Math.random());
col[i * 3] = mix.r; col[i * 3 + 1] = mix.g; col[i * 3 + 2] = mix.b;
}
geometry.setAttribute('position', new THREE.BufferAttribute(pos, 3));
geometry.setAttribute('color', new THREE.BufferAttribute(col, 3));
const mat = new THREE.PointsMaterial({ size: 0.2, vertexColors: true, blending: THREE.AdditiveBlending, depthWrite: false, transparent: true, opacity: 0.85 });
const parts = new THREE.Points(geometry, mat);
scene.add(parts);
camera.position.z = 35;
const anim = { t: 0 }; gsap.to(anim, { t: 1, duration: 4.5, ease: "slow(0.7, 0.7, false)" });
const sPos = new Float32Array(pos);
let time = 0;
const animate = () => {
requestAnimationFrame(animate); time += 0.005;
if (anim.t < 1) {
const K = anim.t, pa = geometry.attributes.position.array;
for (let i = 0; i < count * 3; i++) pa[i] = sPos[i] + (tPos[i] - sPos[i]) * K;
geometry.attributes.position.needsUpdate = true;
} else {
const p = 1 + Math.sin(time * 5) * 0.03;
parts.scale.set(p, p, p); parts.rotation.y = Math.sin(time) * 0.1;
}
renderer.render(scene, camera);
};
animate();
const onResize = () => { camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix(); renderer.setSize(window.innerWidth, window.innerHeight); };
window.addEventListener('resize', onResize);
return () => {
window.removeEventListener('resize', onResize);
if (cvs.contains(renderer.domElement)) cvs.removeChild(renderer.domElement);
geometry.dispose(); mat.dispose(); renderer.dispose();
}
}, []);
return null;
};
const FloatingDecor = () => {
const items = ['π', 'π', 'π', 'π', 'π', 'π', 'β¨', 'πΉ'];
const [els, setEls] = useState([]);
useEffect(() => {
setEls(Array.from({ length: 20 }).map((_, i) => ({
id: i, char: items[Math.floor(Math.random() * items.length)],
left: Math.random() * 100, delay: Math.random() * 15, duration: 10 + Math.random() * 10, size: 20 + Math.random() * 20
})));
}, []);
return (
<>
{els.map(el => (<div key={el.id} className="floating-emoji" style={{ left: `${el.left}vw`, animationDelay: `-${el.delay}s`, animationDuration: `${el.duration}s`, fontSize: `${el.size}px` }}> {el.char} </div>))}
</>
);
};
const Typer = ({ text }) => {
const [d, sD] = useState("");
useEffect(() => { sD(""); let i = 0; const t = setInterval(() => { if (i < text.length) { sD(p => p + text.charAt(i)); i++; } else clearInterval(t); }, 30); return () => clearInterval(t); }, [text]);
return <span>{d}</span>;
};
const App = () => {
const [started, setStarted] = useState(false);
const [status, setStatus] = useState('INIT');
const [idx, setIdx] = useState(0);
const audioRef = useRef(null);
useEffect(() => {
const loader = document.getElementById('loader');
if (loader) { loader.style.opacity = '0'; setTimeout(() => loader.remove(), 500); }
const preloader = document.getElementById('img-preloader');
if (preloader) {
[ASSETS.mainGif, ASSETS.successGif, ...ASSETS.rejectionGifs].forEach(src => {
const img = new Image(); img.src = src; preloader.appendChild(img);
});
}
audioRef.current = document.getElementById('loveSong');
if (localStorage.getItem('my_love_ultimate') === 'true') { setStarted(true); setStatus('SUCCESS'); setTimeout(() => audioRef.current?.play().catch(() => { }), 1000); }
}, []);
const start = () => { setStarted(true); setStatus('ASKING'); audioRef.current?.play().catch(console.error); };
const yes = () => {
localStorage.setItem('my_love_ultimate', 'true'); setStatus('SUCCESS');
for (let i = 0; i < 100; i++) {
const d = document.createElement('div');
d.style.cssText = `position:fixed;left:50%;top:50%;width:8px;height:8px;background:${Math.random() > 0.5 ? '#f06' : '#fff'};border-radius:50%;z-index:99;pointer-events:none;`;
document.body.appendChild(d);
const angle = Math.random() * Math.PI * 2, dist = 150 + Math.random() * 400;
gsap.to(d, { x: Math.cos(angle) * dist, y: Math.sin(angle) * dist, opacity: 0, duration: 1.5, ease: "power2.out", onComplete: () => d.remove() });
}
};
const no = () => setIdx(Math.min(idx + 1, MESSAGES.length - 1));
const reset = () => { localStorage.removeItem('my_love_ultimate'); window.location.reload(); };
const handleNoHover = (e) => { if (idx >= 5) { const b = e.target; gsap.to(b, { x: (Math.random() - 0.5) * 350, y: (Math.random() - 0.5) * 350, duration: 0.3 }); } };
const msg = MESSAGES[Math.min(idx, MESSAGES.length - 1)];
const img = idx === 0 ? ASSETS.mainGif : ASSETS.rejectionGifs[Math.min(idx - 1, ASSETS.rejectionGifs.length - 1)];
if (!started && status !== 'SUCCESS') return (
<div onClick={start} className="app-container cursor-pointer z-10">
<HighResBackground /> <FloatingDecor />
<div className="text-center animate-pulse px-4 relative z-20">
<h1 className="font-main-title text-6xl md:text-9xl text-pink-500 text-glow leading-tight">Love Awaits</h1>
<p className="font-elegant text-white/60 tracking-[0.4em] text-sm mt-6 uppercase">Tap to Begin Our Story</p>
</div>
</div>
);
if (status === 'SUCCESS') return (
<div className="app-container z-10">
<HighResBackground /> <FloatingDecor />
<div className="glass-card p-8 md:p-14 rounded-[3rem] text-center max-w-4xl w-full border-white/20 relative z-20">
<h1 className="font-main-title text-5xl md:text-8xl text-pink-400 mb-8 text-glow leading-tight">Forever & Always</h1>
<div className="relative w-full max-w-xs mx-auto mb-10 bg-white/5 p-2 rotate-2 hover:rotate-0 transition-transform duration-500 shadow-xl border border-white/10">
<div className="tape-strip"></div>
<img src={ASSETS.successGif} className="w-full h-auto object-cover aspect-square" />
</div>
<p className="font-elegant text-xl md:text-2xl text-pink-100 mb-8">"You are my today and all of my tomorrows."</p>
<button onClick={reset} className="px-8 py-3 rounded-full border border-pink-500/30 text-pink-300 hover:text-white hover:bg-pink-500/20 uppercase tracking-widest text-xs transition-all">βΊ Replay Memory</button>
</div>
</div>
);
return (
<div className="app-container overflow-y-auto overflow-x-hidden z-10">
<HighResBackground /> <FloatingDecor />
<div className="glass-card max-w-3xl w-full p-8 md:p-14 rounded-[2.5rem] flex flex-col items-center border-white/10 shadow-2xl my-auto relative z-20">
<div className="w-full flex items-center justify-center mb-4">
<h1 className="font-main-title text-5xl md:text-7xl text-pink-400 text-center text-glow leading-tight py-2 px-2">{msg.t}</h1>
</div>
<div className="w-full mb-8 flex items-center justify-center px-2 min-h-[4rem]">
<p className="font-elegant text-lg md:text-xl text-center text-pink-50/90 leading-relaxed max-w-lg"><Typer key={msg.s} text={msg.s} /></p>
</div>
<div className="relative w-64 h-64 md:w-80 md:h-80 mb-10 bg-black/40 p-2 shadow-lg transform -rotate-1 hover:rotate-0 transition-all duration-500 group border border-white/10">
<div className="tape-strip"></div>
<img src={img} className="w-full h-full object-contain group-hover:scale-105 transition-transform duration-700" />
</div>
<div className="flex flex-col md:flex-row gap-5 w-full justify-center items-center">
<button onClick={yes} className="w-full md:w-auto px-10 md:px-14 py-4 md:py-5 bg-gradient-to-r from-pink-600 to-rose-500 text-white font-bold text-lg md:text-xl uppercase tracking-widest rounded-sm shadow-xl hover:-translate-y-1 hover:shadow-pink-500/50 transition-all btn-shine">Yes, Forever</button>
<button onClick={no} onMouseEnter={handleNoHover} onTouchStart={handleNoHover} className="w-full md:w-auto px-10 md:px-12 py-4 md:py-5 border border-white/20 text-white/60 font-elegant hover:text-white hover:border-white hover:bg-white/5 transition-all rounded-sm italic">No</button>
</div>
</div>
</div>
);
};
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<App />);
</script>
</body>
</html>