-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
179 lines (147 loc) · 4.01 KB
/
index.html
File metadata and controls
179 lines (147 loc) · 4.01 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Valentine</title>
<style>
body{
margin:0;
height:100vh;
display:flex;
justify-content:center;
align-items:center;
background:linear-gradient(135deg,#ff9a9e,#fad0c4);
font-family:Arial;
overflow:hidden;
}
.card{
background:white;
width:350px;
height:450px;
border-radius:20px;
text-align:center;
padding:20px;
box-shadow:0 20px 40px rgba(0,0,0,.2);
}
button{
padding:12px 25px;
border:none;
border-radius:30px;
cursor:pointer;
font-size:16px;
}
#yesBtn{background:#ff4d6d;color:white;}
#noBtn{background:#ddd;margin-left:20px;}
.celebrate{
position:fixed;
inset:0;
background:#ff9a9e;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
color:white;
font-size:32px;
}
.hidden{display:none;}
#continueBtn{
margin-top:15px;
background:white;
color:#ff4d6d;
font-weight:bold;
}
#hearts{
position:fixed;
inset:0;
pointer-events:none;
z-index:999;
}
.heart{
position:absolute;
font-size:25px;
animation:fall 3s linear forwards;
}
.loveText {
font-size: 12px;
max-width: 350px;
text-align: center;
line-height: 1.4;
margin-top: 0px;
}
@keyframes fall{
from{transform:translateY(-10vh);opacity:1;}
to{transform:translateY(110vh);opacity:0;}
}
</style>
</head>
<body>
<div id="hearts"></div>
<div class="card">
<img src="monkey.png" width="250"><br><br>
<h2>Will you be my Valentine?</h2>
<button id="yesBtn">Yes 💖</button>
<button id="noBtn">No 😢</button>
</div>
<div class="celebrate hidden" id="celebrate">
<video src="yes.mp4" autoplay muted loop width="300"></video>
<h1>YAAAAAAY 🎉</h1>
<p style="font-size:24px;">Love youuu ya roooh albyy 💖</p>
<button id="continueBtn">Continue 👉</button>
</div>
<div class="celebrate hidden" id="finalPage">
<img src="final.jpg" width="300">
<p class="loveText">Happy Valentine’s Day dodooo I want u to
stay by my side forever until the day I die
you’ll always be the most precious thing in my life,
my greatest achievement, and the best addition I’ve ever made to my world
I’ll keep loving you always ya habebe
because truly my love for you grows stronger every single day💖💖💖
I’m craaaazy about you dodoo i honestly can’t live my life without you
and i don’t see my life as complete unless you’re in it
being with you made me realize that my life was missing something and you’re the one who completed it
the only problem is that you don’t see how beautiful you are in my eyes
Everything about you is beautiful your way of thinking, your mindset, your kindness,
your sense of humor, your tenderness especially your tenderness
And of course your looks, your smile, your voice, your eyes literally everything about you
i swear I’ve never seen something so perfect like this before
it doesn’t even feel real
may God keep you with me for a lifetime ya rooooh albyyy
and never take you away from me❤️❤️❤️
💖</h1>
</div>
<script>
const yesBtn=document.getElementById("yesBtn");
const noBtn=document.getElementById("noBtn");
const celebrate=document.getElementById("celebrate");
const continueBtn=document.getElementById("continueBtn");
const finalPage=document.getElementById("finalPage");
const hearts=document.getElementById("hearts");
let moveRight = true;
noBtn.onmouseenter = () => {
noBtn.style.transform = moveRight
? "translateX(80px)"
: "translateX(-80px)";
moveRight = !moveRight;
};
yesBtn.onclick=()=>{
celebrate.classList.remove("hidden");
startHearts();
};
continueBtn.onclick=()=>{
celebrate.classList.add("hidden");
finalPage.classList.remove("hidden");
startHearts(); // قلوب في الصفحة الأخيرة
};
function startHearts(){
setInterval(()=>{
const h=document.createElement("div");
h.className="heart";
h.innerHTML="💖";
h.style.left=Math.random()*100+"vw";
hearts.appendChild(h);
setTimeout(()=>h.remove(),3000);
},200);
}
</script>
</body>
</html>