-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
539 lines (473 loc) Β· 18.8 KB
/
Copy pathindex.html
File metadata and controls
539 lines (473 loc) Β· 18.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>For My Love β€οΈ</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Great+Vibes&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Playfair Display', serif;
/* Smoother, more elegant gradient */
background: linear-gradient(160deg, #ffe6ea 0%, #ffcad4 50%, #ffaec4 100%);
min-height: 100vh;
overflow-x: hidden;
position: relative;
color: #4a4a4a; /* Slightly softer black for text */
}
.hearts-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.heart {
position: absolute;
font-size: 20px;
color: rgba(255, 255, 255, 0.8); /* Whiter hearts for better contrast */
animation: float linear infinite;
will-change: transform, opacity;
}
@keyframes float {
0% {
transform: translateY(110vh) rotate(0deg) scale(0.8);
opacity: 0;
}
10% {
opacity: 0.9;
}
90% {
opacity: 0.9;
}
100% {
transform: translateY(-10vh) rotate(360deg) scale(1.1);
opacity: 0;
}
}
.container {
position: relative;
z-index: 2;
max-width: 900px;
margin: 0 auto;
padding: 50px 20px;
}
.header {
text-align: center;
margin-bottom: 60px;
animation: fadeIn 1.2s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-30px); }
to { opacity: 1; transform: translateY(0); }
}
h1 {
/* Responsive font size using clamp */
font-size: clamp(2.5rem, 6vw, 4.5em);
color: #d63384; /* Slightly darker pink for readability */
text-shadow: 2px 4px 8px rgba(255, 105, 180, 0.2), 0 0 20px rgba(255,255,255,0.5);
margin-bottom: 10px;
font-family: 'Great Vibes', cursive;
line-height: 1.1;
}
.subtitle {
font-size: clamp(1.1rem, 3vw, 1.5em);
color: #c2185b;
font-style: italic;
font-family: 'Dancing Script', cursive;
opacity: 0.9;
}
/* Common Card Style for consistency */
.glass-panel {
background: rgba(255, 255, 255, 0.85); /* Slight transparency for depth */
border-radius: 24px;
padding: 45px;
/* More elegant, diffused shadow with pink tint */
box-shadow: 0 15px 40px rgba(255, 105, 180, 0.15), 0 5px 15px rgba(0,0,0,0.05);
border: 1px solid rgba(255, 255, 255, 0.9);
backdrop-filter: blur(5px); /* Subtle blur for modern feel */
}
.love-letter {
margin-bottom: 40px;
animation: slideIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s backwards;
}
@keyframes slideIn {
from { opacity: 0; transform: translateX(-40px); }
to { opacity: 1; transform: translateX(0); }
}
.love-letter p {
font-size: 1.25em;
line-height: 1.9;
color: #5a5a5a;
margin-bottom: 20px;
font-family: 'Playfair Display', serif;
}
.reasons-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 25px;
margin-bottom: 40px;
}
.reason-card {
background: rgba(255, 255, 255, 0.7);
border-radius: 20px;
padding: 30px;
box-shadow: 0 8px 25px rgba(255, 105, 180, 0.1);
transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
cursor: pointer;
animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
border: 1px solid rgba(255,255,255,0.6);
}
.reason-card:nth-child(1) { animation-delay: 0.5s; }
.reason-card:nth-child(2) { animation-delay: 0.7s; }
.reason-card:nth-child(3) { animation-delay: 0.9s; }
.reason-card:nth-child(4) { animation-delay: 1.1s; }
@keyframes popIn {
from { opacity: 0; transform: scale(0.9) translateY(20px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.reason-card:hover {
transform: translateY(-8px) scale(1.02);
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 15px 35px rgba(255, 105, 180, 0.25);
}
.reason-card h3 {
color: #d63384;
font-size: 1.6em;
margin-bottom: 12px;
font-family: 'Dancing Script', cursive;
}
.reason-card p {
color: #666;
font-size: 1.05em;
line-height: 1.6;
}
.surprise-btn {
display: block;
margin: 50px auto;
padding: 18px 55px;
background: linear-gradient(135deg, #ff4081, #ff80ab);
color: white;
border: none;
border-radius: 50px;
font-size: 1.35em;
font-weight: bold;
cursor: pointer;
box-shadow: 0 10px 25px rgba(255, 64, 129, 0.4);
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
animation: pulse 2.5s infinite ease-in-out;
letter-spacing: 0.5px;
}
@keyframes pulse {
0%, 100% { transform: scale(1); box-shadow: 0 10px 25px rgba(255, 64, 129, 0.4); }
50% { transform: scale(1.05); box-shadow: 0 15px 35px rgba(255, 64, 129, 0.6); }
}
.surprise-btn:hover {
transform: scale(1.08);
box-shadow: 0 15px 40px rgba(255, 64, 129, 0.6);
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
z-index: 1000;
justify-content: center;
align-items: center;
padding: 20px;
}
.modal-content {
background: linear-gradient(135deg, #fff5f8, #fff);
padding: 50px;
border-radius: 24px;
text-align: center;
max-width: 500px;
width: 100%;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255,255,255,0.5) inset;
animation: modalPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalPop {
from { transform: scale(0.8); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.modal-content h2 {
color: #d63384;
font-size: 2.5em;
margin-bottom: 20px;
font-family: 'Great Vibes', cursive;
}
.modal-content p {
font-size: 1.3em;
color: #555;
margin-bottom: 30px;
line-height: 1.6;
}
.close-btn {
background: #ff80ab;
color: white;
border: none;
padding: 14px 35px;
border-radius: 30px;
font-size: 1.1em;
cursor: pointer;
transition: all 0.3s;
box-shadow: 0 5px 15px rgba(255, 128, 171, 0.4);
}
.close-btn:hover {
background: #f50057;
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(245, 0, 87, 0.4);
}
.yes-btn, .no-btn {
border: none;
padding: 15px 45px;
border-radius: 30px;
font-size: 1.2em;
font-weight: bold;
cursor: pointer;
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
position: relative;
}
.yes-btn {
background: linear-gradient(135deg, #f50057, #ff80ab);
color: white;
box-shadow: 0 5px 20px rgba(245, 0, 87, 0.3);
z-index: 10;
}
.yes-btn:hover {
transform: scale(1.1);
box-shadow: 0 8px 25px rgba(245, 0, 87, 0.5);
}
.no-btn {
background: #eceff1;
color: #78909c;
z-index: 1;
}
.no-btn:hover {
background: #cfd8dc;
transform: scale(0.95);
}
.footer {
text-align: center;
padding: 40px;
color: #fff;
font-size: 1.1em;
text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.15);
}
.love-counter {
background: rgba(255, 255, 255, 0.6);
border-radius: 20px;
padding: 35px;
text-align: center;
margin-bottom: 40px;
box-shadow: 0 8px 25px rgba(255, 105, 180, 0.15);
border: 1px solid rgba(255,255,255,0.7);
}
.love-counter h2 {
color: #d63384;
font-size: 1.8em;
margin-bottom: 15px;
font-family: 'Dancing Script', cursive;
}
.counter-number {
font-size: 3.5em;
background: linear-gradient(45deg, #ff4081, #ff80ab);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-weight: 700;
text-shadow: 2px 2px 4px rgba(255, 64, 129, 0.1);
}
/* Mobile Optimization */
@media (max-width: 600px) {
.container { padding: 30px 15px; }
.modal-content { padding: 35px 20px; width: 90%; }
.modal-content h2 { font-size: 2em; }
.modal-content p { font-size: 1.1em; }
.yes-btn, .no-btn { padding: 14px 30px; font-size: 1.1em; width: 100%; margin: 8px 0; }
.btn-group { flex-direction: column; }
.glass-panel { padding: 30px 20px; }
}
</style>
</head>
<body>
<div class="hearts-bg" id="heartsContainer"></div>
<div class="container">
<div class="header">
<h1>To My Sweet Rasamalai π</h1>
<p class="subtitle">Every moment with you is a treasure</p>
</div>
<div class="glass-panel love-letter">
<p>Dear Love,</p>
<p>There aren't enough words in any language to express how much you mean to me. You are the sunshine that brightens my darkest days, the laughter in my silence, and the dream I never want to wake up from.</p>
<p>Every day with you is a new adventure, and I fall more deeply in love with you with each passing moment. You make my world more colorful, my heart fuller, and my life infinitely better.</p>
<p style="text-align: right;">Forever yours,<br>Your Valentine π</p>
</div>
<div class="love-counter">
<h2>Reasons I Love You</h2>
<p class="counter-number" id="loveCounter">0</p>
</div>
<div class="reasons-grid">
<div class="reason-card">
<h3>π Your Smile</h3>
<p>Your smile lights up my entire world. It's the first thing I think about when I wake up and the last thing I want to see before I sleep.</p>
</div>
<div class="reason-card">
<h3>π Your Heart</h3>
<p>Your kindness, compassion, and the way you care for everyone around you makes me fall in love with you over and over again.</p>
</div>
<div class="reason-card">
<h3>β¨ Your Presence</h3>
<p>Just being near you makes everything better. You have this magical way of turning ordinary moments into extraordinary memories.</p>
</div>
<div class="reason-card">
<h3>πΉ Your Love</h3>
<p>The way you love me, with all your heart and soul, makes me the luckiest person alive. You complete me in every way.</p>
</div>
</div>
<button class="surprise-btn" onclick="showSurprise()">Click for a Surprise! π</button>
<div class="footer">
<p>Happy Valentine's Day, My Love! πΉππΉ</p>
<p style="font-family: 'Dancing Script', cursive; font-size: 1.4em; margin-top: 15px;">Forever yours, Rasamalai π</p>
</div>
</div>
<!-- Question Modal -->
<div class="modal" id="valentineModal" style="display: flex;">
<div class="modal-content">
<h2>π A Special Question π</h2>
<p style="font-size: 1.5em; margin: 30px 0;" id="questionText">Will you be my Valentine?</p>
<div style="display: flex; gap: 20px; justify-content: center; align-items: center;" class="btn-group">
<button class="yes-btn" id="yesBtn" onclick="sayYes()">Yes! π</button>
<button class="no-btn" id="noBtn" onclick="sayNo()">No</button>
</div>
</div>
</div>
<!-- Success Modal -->
<div class="modal" id="successModal">
<div class="modal-content">
<h2>π Yay! π</h2>
<p style="font-size: 1.4em;">I knew you'd say yes! You just made me the happiest person alive! β€οΈ</p>
<button class="close-btn" onclick="closeSuccess()">Continue to your surprise π</button>
</div>
</div>
<!-- Surprise Modal -->
<div class="modal" id="surpriseModal">
<div class="modal-content">
<h2>π Surprise! π</h2>
<p id="surpriseMessage"></p>
<button class="close-btn" onclick="closeSurprise()">Aww! π</button>
</div>
</div>
<script>
// Create floating hearts (Optimized)
function createHeart() {
const heart = document.createElement('div');
heart.className = 'heart';
heart.innerHTML = Math.random() > 0.6 ? 'π' : (Math.random() > 0.5 ? 'πΈ' : 'π');
heart.style.left = Math.random() * 100 + '%';
// More varied duration for natural feel
heart.style.animationDuration = (Math.random() * 6 + 8) + 's';
heart.style.fontSize = (Math.random() * 25 + 15) + 'px';
// Random opacity for depth
heart.style.opacity = Math.random() * 0.5 + 0.3;
document.getElementById('heartsContainer').appendChild(heart);
setTimeout(() => heart.remove(), 15000);
}
setInterval(createHeart, 600); // Slightly faster creation for fuller look
// Surprise messages
const surprises = [
"I promise to always make you laugh, even when you don't want to smile! π",
"You're not just my love, you're my best friend and my soulmate! π",
"Remember: You + Me = Forever π",
"Fun fact: My heart beats faster every time I see you! π",
"You make every day feel like Valentine's Day! πΉ",
"I love you more than pizza... and that's saying A LOT! ππ",
"You're the reason I believe in magic! β¨",
"Thanks for putting up with my weirdness and loving me anyway! π€ͺπ",
"You're prettier than all the flowers in the world! πΊπΈπΌ"
];
function showSurprise() {
const modal = document.getElementById('surpriseModal');
const message = document.getElementById('surpriseMessage');
message.textContent = surprises[Math.floor(Math.random() * surprises.length)];
modal.style.display = 'flex';
}
function closeSurprise() {
document.getElementById('surpriseModal').style.display = 'none';
}
// Valentine question logic (Preserved)
let noClickCount = 0;
const noMessages = [
"Are you sure? π₯Ί",
"Please? Just think about it... π",
"But... but... I got you flowers! πΉ",
"Come on, you know you want to! π",
"Pretty please with sugar on top? π°",
"My heart is breaking... π",
"I'll be the best Valentine ever! β¨",
"Just one chance? π",
"You're making this hard... π’",
"Fine, but the 'Yes' button is growing! π"
];
function sayNo() {
const yesBtn = document.getElementById('yesBtn');
const noBtn = document.getElementById('noBtn');
const modalContent = document.getElementById('questionText');
noClickCount++;
// Make Yes button grow FASTER
const currentSize = 1 + (noClickCount * 0.4);
yesBtn.style.transform = `scale(${currentSize})`;
// Change the question text
if (noClickCount <= noMessages.length) {
modalContent.textContent = noMessages[noClickCount - 1];
}
// Make No button shrink EARLIER and FASTER
if (noClickCount >= 2) {
const shrinkScale = 1 - ((noClickCount - 1) * 0.25);
if (shrinkScale > 0.1) {
noBtn.style.transform = `scale(${shrinkScale})`;
noBtn.style.opacity = shrinkScale; // Fade out as it shrinks
} else {
noBtn.style.display = 'none';
modalContent.textContent = "Okay, I guess there's only one option left! ππ";
}
}
}
function sayYes() {
document.getElementById('valentineModal').style.display = 'none';
const successModal = document.getElementById('successModal');
if (successModal) {
successModal.style.display = 'flex';
}
}
function closeSuccess() {
const successModal = document.getElementById('successModal');
if (successModal) {
successModal.style.display = 'none';
showSurprise();
}
}
// Animated love counter (Preserved)
let count = 0;
setInterval(() => {
count++;
if (count < 1000000) {
document.getElementById('loveCounter').textContent = count.toLocaleString();
} else {
document.getElementById('loveCounter').textContent = 'β';
}
}, 50);
</script>
</body>
</html>