-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
329 lines (328 loc) · 10.3 KB
/
index.html
File metadata and controls
329 lines (328 loc) · 10.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>🎉HINA BIRTHDAY🎉</title>
<style>
body {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #4B2245;
overflow-x: hidden;
text-align: center;
background: linear-gradient(135deg, #fceef3, #fadadd);
}
.container {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
position: relative;
z-index: 2;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
transition: background 0.5s ease;
}
#page1 h1,
#page1 p {
color: #fff;
text-shadow: 2px 2px 8px #0008, 0 2px 16px #0006;
}
.hidden {
display: none;
}
h1, h2 {
margin-bottom: 0.3em;
font-weight: 700;
text-shadow: 1px 1px 2px #fcb8d3;
}
p {
font-size: 1.4em;
max-width: 600px;
line-height: 1.5;
margin: 0.5em auto 1em;
font-style: italic;
color: #7a3b65;
text-shadow: 1px 1px 1px #f2c2d7;
}
button {
font-size: 1.3em;
padding: 0.7em 2.2em;
border-radius: 2em;
border: none;
margin: 1.2em 0.5em 0 0.5em;
background: linear-gradient(90deg, #f5576c 30%, #c44060 100%);
color: white;
font-weight: 700;
cursor: pointer;
box-shadow: 0 4px 12px #c24b70cc;
transition: background 0.3s;
z-index: 5;
position: relative;
}
button:hover {
background: linear-gradient(90deg, #ffa4c4 30%, #ff6d9d 100%);
}
img.greeting-img {
max-width: 350px;
width: 100%;
border-radius: 20px;
box-shadow: 0 12px 30px #f8a1c622;
margin: 1em 0;
animation: fadeInEase 1.3s ease forwards;
position: relative;
z-index: 5;
}
img.cover-img {
max-width: 400px;
width: 95%;
border-radius: 18px;
box-shadow: 0 6px 18px #dab7de;
margin-bottom: 1em;
animation: fadeInEase 1.3s ease forwards;
position: relative;
z-index: 11;
}
@keyframes fadeInEase {
from {opacity:0; transform: translateY(20px);}
to {opacity:1; transform: translateY(0);}
}
.heart {
position: fixed;
width: 20px;
height: 20px;
background-color: #f75a8e;
transform: rotate(-45deg);
animation: floatUpLinear 8s linear infinite;
opacity: 0.7;
pointer-events: none;
z-index: 3;
}
.heart::before,
.heart::after {
content: "";
position: absolute;
width: 20px;
height: 20px;
background-color: #f75a8e;
border-radius: 50%;
}
.heart::before {
top: 0;
left: 10px;
}
.heart::after {
top: -10px;
left: 0;
}
.heart:nth-child(1) { left: 15%; animation-delay: 0s;}
.heart:nth-child(2) { left: 40%; animation-delay: 2s;}
.heart:nth-child(3) { left: 75%; animation-delay: 4s;}
.heart:nth-child(4) { left: 60%; animation-delay: 6s;}
@keyframes floatUpLinear {
0% {transform: translateY(100vh) scale(1) rotate(-45deg);}
100% {transform: translateY(-10vh) scale(1.3) rotate(-45deg);}
}
#bgVideo {
position: fixed;
top: 0; left: 0;
width: 100vw;
height: 100vh;
object-fit: cover;
z-index: 1;
opacity: 0.25;
pointer-events: none;
display: none;
}
#page6 {
background-color: #2c1a29;
color: #f8e1ef;
}
#page6 p {
font-size: 1.5em;
font-style: italic;
max-width: 600px;
margin: auto;
}
#confetti {
position: fixed;
top: 0; left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
z-index: 10;
}
</style>
</head>
<body>
<audio id="bgm" src="darling.mp3" loop></audio>
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
<div class="heart"></div>
<canvas id="confetti"></canvas>
<video id="bgVideo" autoplay loop muted playsinline>
<source src="hina.mp4" type="video/mp4" />
</video>
<section id="page0" class="container" style="background: #fff;">
<img src="9.jpg" alt="Birthday Cover" class="cover-img" />
<button onclick="nextPage(1)" style="margin-top:2em;"> ❤️❤️❤️</button>
</section>
<section id="page1" class="container hidden" style="background-image: url('3.jpg');">
<h1>Happy Birthday, Hina! 🎉</h1>
<img src="4.jpg" alt="Hina smiling" class="greeting-img" />
<p>
Happy Birthday to my favorite person—someone I have never met in person,
yet feel a special connection with deep in my heart.
There is a beautiful mystery in us waiting to be discovered,
and on your special day, I wish for us to explore this bond,
to find the joy and magic that only we can share together.
<br/><br/>
May your birthday be filled with gentle smiles, quiet hopes,
and the promise of new beginnings in the journey we may take side by side.
You are cherished beyond distance, held dearly in my thoughts today and always.
</p>
<button onclick="nextPage(2)">❤️❤️❤️</button>
</section>
<section id="page2" class="container hidden">
<h2>For My Favorite Person</h2>
<img src="2.jpg" alt="Hina with flowers" class="greeting-img" />
<p>
Though distance separates us, your kindness lights up every darkened space,
Your warmth and gentle spirit reach me from across the miles, leaving a lasting trace.
With every shared moment and memory, you bring comfort and cheer,
Your smile is a beacon of hope, ever bright and sincere.
No matter how far apart, your friendship is a treasure I hold near.
</p>
<button onclick="nextPage(3)">❤️❤️❤️</button>
</section>
<section id="page3" class="container hidden">
<h2>"Perfect. Loved. Forever."</h2>
<img src="1.jpg" alt="Hina in garden" class="greeting-img" />
<p>
If perfection had a face, it would be yours—flawless in every smile, every glance.
If love had a name, it would be the feeling that grows in my heart for you every day.
You are the light that brightens my darkest hours and the calm that soothes my restless soul.
Your beauty, both inside and out, is a rare treasure that inspires me endlessly.
With you, love is not just a word but a living, breathing dream coming true
</p>
<button onclick="nextPage(4)">❤️❤️❤️</button>
</section>
<section id="page4" class="container hidden">
<h2>A Wish for a Beautiful Soul</h2>
<img src="5.jpg" alt="Calm nature" class="greeting-img" />
<p>
May your days be filled with sunshine and your nights with peaceful dreams.<br/>
You deserve all the happiness and love that life can offer.<br/>
Keep shining with your gentle spirit and warm heart.
</p>
<button onclick="nextPage(5)">❤️❤️❤️</button>
</section>
<section id="page5" class="container hidden">
<h2>Forever Cherished</h2>
<img src="6.jpg" alt="Beautiful sunset" class="greeting-img" />
<p>
May every birthday remind you how deeply you are loved and treasured.<br/>
Here’s to many more wonderful years filled with laughter and joy.<br/>
Happy Birthday Dear Hina, always and forever.
</p>
<button onclick="nextPage(6)">❤️❤️❤️</button>
</section>
<section id="page6" class="container hidden">
<p>
A BIG THANKS FOR COMING INTO MY LIFE AND GIVING ME MEMORIES. NOW IT'S TIME TO SAY GOODBYE FOREVER. I HOPE YOU WILL BE HAPPY AS ALWAYS. THANK YOU HINA 😊
</p>
</section>
<script>
const bgVideo = document.getElementById('bgVideo');
const totalPages = 6;
function nextPage(pageNum) {
for (let i = 0; i <= totalPages; i++) {
const page = document.getElementById('page' + i);
if (page) page.classList.add('hidden');
}
document.getElementById('page' + pageNum).classList.remove('hidden');
if (pageNum === 1 || pageNum === 0) {
bgVideo.style.display = 'none';
} else {
bgVideo.style.display = 'block';
}
if (pageNum !== 0) {
stopConfetti();
}
}
const canvas = document.getElementById('confetti');
const ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
let particles = [];
function createParticle() {
const shapes = ['circle', 'rectangle', 'heart'];
const shape = shapes[Math.floor(Math.random() * shapes.length)];
return {
x: Math.random() * canvas.width,
y: -20,
size: 10 + Math.random() * 16,
speed: 1 + Math.random() * 2,
color: ['#ff6f91', '#f7f48b', '#6fffb0', '#8bc6ff', '#fcb9b2', '#ae7bff', '#f97b7b'][Math.floor(Math.random() * 7)],
shape: shape,
angle: Math.random() * Math.PI * 2,
rotateSpeed: 0.01 + Math.random() * 0.03
};
}
function drawParticle(p) {
ctx.save();
ctx.translate(p.x, p.y);
ctx.rotate(p.angle);
ctx.fillStyle = p.color;
if (p.shape === 'circle') {
ctx.beginPath();
ctx.arc(0,0,p.size,0,2*Math.PI);
ctx.fill();
} else if (p.shape === 'rectangle') {
ctx.fillRect(-p.size/2, -p.size/2, p.size, p.size*0.7);
} else if (p.shape === 'heart') {
ctx.beginPath();
ctx.moveTo(0,0);
ctx.bezierCurveTo(-p.size/2,-p.size/2, -p.size,p.size/3, 0,p.size);
ctx.bezierCurveTo(p.size,p.size/3, p.size/2,-p.size/2,0,0);
ctx.fill();
}
ctx.restore();
}
function animateConfetti() {
ctx.clearRect(0,0,canvas.width,canvas.height);
if (document.getElementById('page0') && !document.getElementById('page0').classList.contains('hidden')) {
if (particles.length < 120) {
particles.push(createParticle());
}
particles.forEach((p, i) => {
p.y += p.speed;
p.angle += p.rotateSpeed;
drawParticle(p);
if (p.y > canvas.height + 40) particles.splice(i,1);
});
requestAnimationFrame(animateConfetti);
}
}
function stopConfetti() {
ctx.clearRect(0,0,canvas.width,canvas.height);
particles = [];
}
window.addEventListener('resize', () => {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
// Audio autoplay on user click workaround
document.body.addEventListener('click', function() {
const audio = document.getElementById('bgm');
if (audio.paused) audio.play();
}, { once: true });
nextPage(0);
animateConfetti();
</script>
</body>
</html>