-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
309 lines (262 loc) · 10.6 KB
/
Copy pathindex.html
File metadata and controls
309 lines (262 loc) · 10.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Will You Be My Valentine?</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Arial', sans-serif;
}
body {
background: linear-gradient(135deg, #ffafbd, #ffc3a0);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.container {
background-color: rgba(255, 255, 255, 0.9);
border-radius: 20px;
padding: 40px;
text-align: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
max-width: 600px;
width: 100%;
position: relative;
overflow: hidden;
}
.heart {
color: #ff6b8b;
font-size: 60px;
margin-bottom: 20px;
animation: heartbeat 1.5s infinite;
}
h1 {
color: #ff6b8b;
margin-bottom: 20px;
font-size: 2.5em;
}
p {
font-size: 1.2em;
color: #333;
line-height: 1.6;
margin-bottom: 30px;
}
.name {
color: #ff6b8b;
font-weight: bold;
}
.buttons {
display: flex;
justify-content: center;
gap: 30px;
margin-top: 30px;
flex-wrap: wrap;
}
.btn {
padding: 15px 40px;
font-size: 1.2em;
border: none;
border-radius: 50px;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s;
font-weight: bold;
}
.yes-btn {
background-color: #ff6b8b;
color: white;
box-shadow: 0 5px 15px rgba(255, 107, 139, 0.4);
}
.no-btn {
background-color: #f1f1f1;
color: #333;
position: relative;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.yes-btn:hover {
transform: scale(1.05);
box-shadow: 0 8px 20px rgba(255, 107, 139, 0.6);
}
.no-btn:hover {
transform: scale(1.05);
}
.hidden {
display: none;
}
.celebration {
padding: 30px;
}
.celebration h2 {
color: #ff6b8b;
font-size: 2.5em;
margin-bottom: 20px;
}
.celebration p {
font-size: 1.3em;
margin-bottom: 20px;
}
.hearts-container {
font-size: 40px;
margin-top: 20px;
animation: float 3s infinite ease-in-out;
}
@keyframes heartbeat {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
100% { transform: translateY(0px); }
}
.footer {
margin-top: 40px;
color: #777;
font-size: 0.9em;
}
@media (max-width: 600px) {
.container {
padding: 30px 20px;
}
h1 {
font-size: 2em;
}
.buttons {
gap: 15px;
}
.btn {
padding: 12px 30px;
}
}
</style>
</head>
<body>
<div class="container">
<div id="question-page">
<div class="heart">❤️</div>
<h1>My Wonderful <span class="name" id="girlfriend-name">[Her Name]</span>,</h1>
<p>
You've been an amazing lover to me more times than not and from the last 8 months we've spent together, aswell as the previous 3 years of us talking, I wouldn't have asked for it to be anyone else, but to end it all off
</p>
<p>
There's one important question I'd like to ask you...
</p>
<h2>Will you be my Valentine?</h2>
<div class="buttons">
<button class="btn yes-btn" id="yesBtn">YES! Absolutely!</button>
<button class="btn no-btn" id="noBtn">Maybe...</button>
</div>
<div class="footer">
Made with ❤️ for the most amazing person
</div>
</div>
<div id="celebration-page" class="hidden celebration">
<div class="heart">💝</div>
<h2>She said yessss🥳! </h2>
<p>
You didn't have a choice i already bought ur stuff🥰🥰
In all seriousness though i really really love you, and this is just the first to the many more, and better valentine's days to come our way
</p>
<p>
Oh and also your hint for what's in the box is hello kitty
</p>
<div class="hearts-container">
❤️ 💖 💕 💗 💓 💞
</div>
<p style="margin-top: 30px;">
I want all of you, forever. You and me, everyday<br>
<span style="font-size: 1.5em;">💕 If you're a bird, I'm a bird 💕</span>
</p>
<div class="footer">
(Let's see if you recognize those)
</div>
</div>
</div>
<script>
document.getElementById('girlfriend-name').textContent = "Malia";
// Get the buttons
const yesBtn = document.getElementById('yesBtn');
const noBtn = document.getElementById('noBtn');
const questionPage = document.getElementById('question-page');
const celebrationPage = document.getElementById('celebration-page');
// Yes button click - show celebration
yesBtn.addEventListener('click', function() {
questionPage.classList.add('hidden');
celebrationPage.classList.remove('hidden');
// Play a subtle celebration animation
celebrationPage.style.animation = 'none';
setTimeout(() => {
celebrationPage.style.animation = 'float 2s ease-in-out';
}, 10);
});
// No button interaction - make it move away from cursor
noBtn.addEventListener('mouseover', function() {
// Randomly move the button to a new position
const container = document.querySelector('.container');
const containerRect = container.getBoundingClientRect();
const btnRect = noBtn.getBoundingClientRect();
// Calculate max positions
const maxX = containerRect.width - btnRect.width - 20;
const maxY = containerRect.height - btnRect.height - 20;
// Generate random position within container
const randomX = Math.floor(Math.random() * maxX);
const randomY = Math.floor(Math.random() * maxY);
// Apply new position
noBtn.style.position = 'absolute';
noBtn.style.left = `${randomX}px`;
noBtn.style.top = `${randomY}px`;
// Change the text sometimes
const messages = ["Maybe...", "Are you sure?", "Think again!", "Try clicking Yes!", "I'm shy!", "Oops!"];
const randomMsg = messages[Math.floor(Math.random() * messages.length)];
noBtn.textContent = randomMsg;
});
// Also move on click for mobile devices
noBtn.addEventListener('click', function() {
// Same movement logic as mouseover for mobile
const container = document.querySelector('.container');
const containerRect = container.getBoundingClientRect();
const btnRect = noBtn.getBoundingClientRect();
const maxX = containerRect.width - btnRect.width - 20;
const maxY = containerRect.height - btnRect.height - 20;
const randomX = Math.floor(Math.random() * maxX);
const randomY = Math.floor(Math.random() * maxY);
noBtn.style.position = 'absolute';
noBtn.style.left = `${randomX}px`;
noBtn.style.top = `${randomY}px`;
const messages = ["Maybe...", "Are you sure?", "Think again!", "Try clicking Yes!", "I'm shy!", "Oops!"];
const randomMsg = messages[Math.floor(Math.random() * messages.length)];
noBtn.textContent = randomMsg;
});
// Add some floating hearts animation for the celebration page
function createFloatingHearts() {
const heartsContainer = document.querySelector('.hearts-container');
const hearts = ['❤️', '💖', '💕', '💗', '💓', '💞', '💘', '💝'];
for (let i = 0; i < 20; i++) {
setTimeout(() => {
const heart = document.createElement('span');
heart.textContent = hearts[Math.floor(Math.random() * hearts.length)];
heart.style.position = 'absolute';
heart.style.fontSize = Math.random() * 20 + 20 + 'px';
heart.style.left = Math.random() * 100 + 'vw';
heart.style.top = '100vh';
heart.style.opacity = '0.7';
heart.style.animation = `float ${Math.random() * 3 + 3}s linear forwards`;
document.body.appendChild(heart);
// Remove heart after animation completes
setTimeout(() => {
heart.remove();
}, 5000);
}, i * 200);
}
}
// Start floating hearts when celebration page is shown
yesBtn.addEventListener('click', createFloatingHearts);
</script>
</body>
</html>