-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitoria.html
255 lines (219 loc) · 6.31 KB
/
vitoria.html
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Página de aniversário da Vitória - 19 anos"
/>
<link rel="icon" href="./assets/img/cake.png" />
<meta name="author" content="Guilherme" />
<meta property="og:title" content="Feliz Aniversário, Vitória!" />
<meta
property="og:description"
content="Parabéns pelos 19 anos, Vitória!"
/>
<meta property="og:image" content="./assets/img/cake.png" />
<meta property="og:url" content="https://vitoria.com" />
<meta name="twitter:card" content="summary_large_image" />
<title>Feliz Aniversário, Vitória!</title>
<style>
body {
font-family: "Arial", sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}
.container {
text-align: center;
background: white;
padding: 40px;
margin: 0px 20px;
border-radius: 10px;
box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
max-width: 400px;
}
h1 {
font-size: 2.5rem;
margin: 0;
color: #ff6f61;
}
h2 {
font-size: 1.5rem;
color: #555;
}
p {
font-size: 1rem;
color: #666;
line-height: 1.6;
}
.confetti {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("./assets/img/cft.gif");
background-size: cover;
pointer-events: none;
z-index: 1;
display: none; /* Oculta o confetti inicialmente */
}
.cake {
width: 50vw;
max-width: 200px;
aspect-ratio: 1;
background-image: url("./assets/img/cake.png");
background-size: cover;
top: 0px;
}
.flork {
width: 100px;
position: fixed;
right: 10px;
bottom: 0px;
}
@keyframes dance {
0%,
100% {
transform: translateX(0) rotate(0);
}
25% {
transform: translateX(-10px) rotate(-10deg);
}
50% {
transform: translateX(10px) rotate(10deg);
}
75% {
transform: translateX(-10px) rotate(-10deg);
}
}
.flork.dance {
animation: dance 0.5s infinite;
}
@keyframes jump {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-20px);
}
}
@keyframes wave {
0% {
transform: rotate(0);
}
50% {
transform: rotate(15deg);
}
100% {
transform: rotate(0);
}
}
.flork:hover {
animation: jump 0.6s ease;
cursor: pointer;
}
.flork.wave {
animation: wave 0.5s ease infinite;
}
.btn {
display: inline-block;
padding: 10px 20px;
background-color: #ff6f61;
color: white;
border-radius: 50px;
text-decoration: none;
font-weight: bold;
transition: background-color 0.3s ease;
}
.btn:hover {
background-color: #e55c51;
}
</style>
</head>
<body>
<div class="confetti"></div>
<div class="cake"></div>
<div class="container">
<img class="flork" src="./assets/img/flork.png" alt="Vitória" />
<h1>Feliz Aniversário, Vitória!</h1>
<h2>Hoje você completa 19 anos!</h2>
<p>
Que seu dia seja cheio de alegria, amor e momentos inesquecíveis,
Vitória! Que você continue brilhando e realizando todos os seus sonhos.
Aproveite cada segundo deste novo ano da sua vida!
</p>
<a href="#" class="btn" id="celebrate-btn">Comemorar Agora</a>
</div>
<script>
let isPlaying = false;
const celebrateButton = document.getElementById("celebrate-btn");
const confetti = document.querySelector(".confetti");
const flork = document.querySelector(".flork");
const audio = new Audio("./assets/music/happy.mp4");
// Faz o Flork acenar quando a página carrega
window.addEventListener("load", () => {
flork.classList.add("wave");
// Remove o aceno após 3 segundos
setTimeout(() => {
flork.classList.remove("wave");
}, 3000);
});
// Flork pula no hover
flork.addEventListener("mouseover", () => {
flork.style.animation = "jump 0.6s ease";
setTimeout(() => {
flork.style.animation = "none";
}, 600);
});
celebrateButton.addEventListener("click", function (e) {
e.preventDefault();
if (isPlaying) {
celebrateButton.innerText = "Comemorar Agora";
confetti.style.display = "none";
audio.pause();
audio.currentTime = 0;
flork.classList.remove("dance");
isPlaying = false;
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document.webkitExitFullscreen) {
document.webkitExitFullscreen();
}
return;
}
isPlaying = true;
celebrateButton.innerText = "Parar a festa";
confetti.style.display = "block";
audio.play();
if (document.documentElement.requestFullscreen) {
document.documentElement.requestFullscreen();
} else if (document.documentElement.webkitRequestFullscreen) {
document.documentElement.webkitRequestFullscreen();
}
flork.classList.remove("jump");
flork.classList.remove("wave");
flork.classList.add("dance");
audio.addEventListener("ended", () => {
celebrateButton.innerText = "Comemorar Agora";
confetti.style.display = "none";
flork.classList.remove("dance");
isPlaying = false;
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document.webkitExitFullscreen) {
document.webkitExitFullscreen();
}
});
});
</script>
</body>
</html>