-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
281 lines (274 loc) · 10.8 KB
/
Copy pathindex.html
File metadata and controls
281 lines (274 loc) · 10.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Love Message for Linna</title>
<style>
body {
background: linear-gradient(45deg, #ff9a9e, #fad0c4);
display: flex;
justify-content: center;
align-items: flex-start;
height: 100vh;
font-family: 'Arial', sans-serif;
color: #fff;
text-align: center;
margin: 0;
padding: 20px;
overflow: auto;
}
.container {
background: rgba(0, 0, 0, 0.7);
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
width: 100%;
max-width: 600px;
animation: fadeIn 2s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
h1 {
font-size: 2.5em;
margin-bottom: 20px;
text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}
p {
font-size: 1.2em;
margin-bottom: 20px;
}
.puzzle, .form-section {
display: none;
}
.puzzle input {
width: 100px;
padding: 5px;
font-size: 1em;
border-radius: 5px;
border: none;
}
.form-section input, .form-section textarea {
width: 100%;
padding: 10px;
margin: 10px 0;
font-size: 1em;
border-radius: 5px;
border: none;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}
.form-section button {
padding: 10px 20px;
background: #ff6f61;
border: none;
border-radius: 5px;
color: #fff;
font-size: 1.2em;
cursor: pointer;
transition: background 0.3s;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.form-section button:hover {
background: #ff4a3d;
}
.image-container {
position: relative;
margin-bottom: 20px;
}
.image-container img {
width: 50%;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
.emoji {
position: absolute;
font-size: 3em;
animation: float 3s infinite ease-in-out;
}
@keyframes float {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}
.emoji1 { top: 10%; left: 10%; }
.emoji2 { top: 20%; right: 15%; }
.emoji3 { bottom: 20%; left: 20%; }
.emoji4 { bottom: 10%; right: 10%; }
.gift-container {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
margin: 20px 0;
}
.gift-box {
display: inline-block;
width: 80px;
height: 80px;
margin: 10px;
background-image: url('gift box.png');
background-size: cover;
border: none;
cursor: pointer;
transition: transform 0.3s, box-shadow 0.3s;
position: relative;
}
.gift-box:hover {
transform: scale(1.1);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.gift-box.selected {
animation: shake 0.5s;
transform: scale(1.2);
box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}
@keyframes shake {
0%, 100% { transform: translateX(0); }
25%, 75% { transform: translateX(-10px); }
50% { transform: translateX(10px); }
}
.gift-result {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 1.5em;
color: #ffffff;
text-shadow: 0 0 5px rgba(107, 11, 11, 0.8), /* gold shadow */
0 0 10px rgb(114, 4, 4), /* slightly larger gold shadow */
0 0 15px rgba(179, 16, 7, 0.802); /* even larger gold shadow */
display: none;
font-weight: bold;
}
.gift-box.opened .gift-result {
display: block;
}
@media (max-width: 600px) {
h1 {
font-size: 2em;
}
p {
font-size: 1em;
}
.form-section button {
font-size: 1em;
}
}
</style>
</head>
<body>
<div class="container">
<h1>To My Beautiful Linna</h1>
<p>Someless loves you so much. Your presence in my life brings endless joy and happiness. You are my sunshine and my world. With you, every moment is a treasure, and every day is a blessing.</p>
<div class="image-container">
<img src="linna new.jpg" alt="Linna">
<div class="emoji emoji1">❤️</div>
<div class="emoji emoji2">😍</div>
<div class="emoji emoji3">💖</div>
<div class="emoji emoji4">🥰</div>
</div>
<p>Click the button below to solve a simple puzzle and continue:</p>
<button onclick="startPuzzle()">Start Puzzle</button>
<div class="puzzle">
<p>Enter the answer to proceed: What is 12 + 15?</p>
<input type="text" id="puzzle-answer">
<button onclick="checkPuzzle()">Submit</button>
</div>
<div class="form-section">
<h2>Why Do You Love Me?</h2>
<form id="love-form" action="https://formspree.io/f/xanwwwnl" method="POST">
<textarea name="question1" placeholder="1. Linna what would you do if you lose me?" required></textarea>
<textarea name="question2" placeholder="2. How do I make your life better?" required></textarea>
<textarea name="question3" placeholder="3. What is the most romantic thing I have done for you?" required></textarea>
<textarea name="question4" placeholder="4. How do you envision our future together?" required></textarea>
<textarea name="question5" placeholder="5. Are you ready to sexy with me at any time , and why?" required></textarea>
<textarea name="question6" placeholder="6. What is your happiest memory with me?" required></textarea>
<textarea name="question7" placeholder="7. How do I support your dreams and goals?" required></textarea>
<textarea name="question8" placeholder="8. What qualities do you admire most in me?" required></textarea>
<textarea name="question9" placeholder="9. How do you express your love for me?" required></textarea>
<textarea name="question10" placeholder="10. What is one thing you want to promise me?" required></textarea>
<div>
<p>11. Select a gift box:</p>
<div class="gift-container">
<div class="gift-box" onclick="selectGiftBox(this, 'TZS 1,000')">
<div class="gift-result">TZS 1,000</div>
</div>
<div class="gift-box" onclick="selectGiftBox(this, 'TZS 500')">
<div class="gift-result">TZS 500</div>
</div>
<div class="gift-box" onclick="selectGiftBox(this, 'TZS 3,000')">
<div class="gift-result">TZS 3,000</div>
</div>
<div class="gift-box" onclick="selectGiftBox(this, 'TZS 5,000')">
<div class="gift-result">TZS 5,000</div>
</div>
<div class="gift-box" onclick="selectGiftBox(this, 'TZS 10,000')">
<div class="gift-result">TZS 10,000</div>
</div>
<div class="gift-box" onclick="selectGiftBox(this, 'TZS 300')">
<div class="gift-result">TZS 300</div>
</div>
</div>
</div>
<input type="hidden" name="selectedGift" id="selected-gift">
<button type="submit">Send</button>
</form>
</div>
</div>
<script>
function startPuzzle() {
document.querySelector('.puzzle').style.display = 'block';
}
function checkPuzzle() {
const answer = document.getElementById('puzzle-answer').value;
if (answer == '27') {
document.querySelector('.puzzle').style.display = 'none';
document.querySelector('.form-section').style.display = 'block';
} else {
alert('Incorrect answer. Please try again.');
}
}
function selectGiftBox(box, value) {
if (!document.getElementById('selected-gift').value) {
document.querySelectorAll('.gift-box').forEach(b => {
b.classList.remove('selected');
b.classList.add('opened');
});
box.classList.add('selected');
document.getElementById('selected-gift').value = value;
document.querySelectorAll('.gift-box').forEach(b => b.removeAttribute('onclick'));
}
}
document.getElementById('love-form').addEventListener('submit', function(event) {
event.preventDefault();
const form = event.target;
fetch(form.action, {
method: form.method,
body: new FormData(form),
headers: {
'Accept': 'application/json'
}
}).then(response => {
if (response.ok) {
alert('Your responses have been submitted. The site will now close.');
window.close();
} else {
response.json().then(data => {
if (Object.hasOwn(data, 'errors')) {
alert(data["errors"].map(error => error["message"]).join(", "));
} else {
alert('There was an error submitting your responses. Please try again.');
}
});
}
}).catch(error => {
alert('There was an error submitting your responses. Please try again.');
});
});
</script>
</body>
</html>