-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
291 lines (251 loc) · 8.4 KB
/
index.html
File metadata and controls
291 lines (251 loc) · 8.4 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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>¡Feliz Cumpleaños Dina!</title>
<style>
body {
margin: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #ff9a9e, #fad0c4);
color: #ffffff;
text-align: center;
overflow-x: hidden;
}
header {
padding: 70px 20px;
background: rgba(0, 0, 0, 0.25);
}
header h1 {
font-size: 4.2em;
/* MÁS GRANDE */
margin-bottom: 14px;
letter-spacing: 2px;
}
header p {
font-size: 1.6em;
/* MÁS GRANDE */
max-width: 900px;
margin: auto;
line-height: 1.6;
}
section {
padding: 55px 20px;
}
.card {
background: rgba(255, 255, 255, 0.15);
border-radius: 22px;
padding: 45px;
max-width: 980px;
margin: auto;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.card h2 {
font-size: 2.8em;
/* MÁS GRANDE */
margin-bottom: 20px;
}
.card p {
font-size: 1.5em;
/* MÁS GRANDE */
line-height: 1.8;
}
.preview-img {
width: 280px;
/* MÁS GRANDE */
margin-top: 25px;
border-radius: 15px;
cursor: pointer;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
transition: transform 0.3s;
}
.preview-img:hover {
transform: scale(1.05);
}
/* Modal imagen */
.modal {
display: none;
position: fixed;
z-index: 999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
}
.modal img {
max-width: 92%;
max-height: 92%;
margin-top: 4%;
border-radius: 15px;
}
footer {
padding: 30px 20px;
background: rgba(0, 0, 0, 0.35);
font-size: 1.2em;
/* MÁS GRANDE */
}
.balloon {
position: fixed;
bottom: -150px;
width: 60px;
height: 80px;
background-color: red;
border-radius: 50%;
animation: floatUp 10s linear infinite;
opacity: 0.7;
}
.balloon::after {
content: '';
position: absolute;
width: 2px;
height: 40px;
background: white;
bottom: -40px;
left: 50%;
}
@keyframes floatUp {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-120vh);
}
}
/* Botón música */
.music-btn {
position: fixed;
right: 18px;
bottom: 18px;
z-index: 1000;
border: none;
padding: 12px 16px;
border-radius: 14px;
background: rgba(0, 0, 0, 0.35);
color: white;
font-size: 1.1em;
cursor: pointer;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
backdrop-filter: blur(6px);
}
.music-hint {
margin-top: 14px;
font-size: 1.05em;
opacity: 0.9;
}
</style>
</head>
<body>
<!-- Música de fondo -->
<!-- 1) Pon tu archivo mp3 en la misma carpeta y llámalo: musica.mp3 -->
<audio id="bgMusic" src="musica.mp3" preload="auto" loop></audio>
<!-- Botón Play/Pausa -->
<button class="music-btn" onclick="toggleMusic()" id="musicBtn">🔊 Música: ON</button>
<!-- Encabezado -->
<header>
<h1>🎉 ¡Feliz Cumpleaños, Dina! 🎂</h1>
<p>Hoy celebramos tu día en que naciste, tu alegría y todo lo bonito que transmites a quienes te rodean.</p>
<div class="music-hint">Si no suena la música, toca el botón 🔊 o toca la pantalla una vez.</div>
</header>
<!-- Mensaje principal -->
<section>
<div class="card">
<h2>Un mensaje especial para ti </h2>
<p>
Dina, que este nuevo año de vida llegue cargado de metas, sueños cumplidos,
momentos inolvidables y mucha felicidad. Gracias por tu amistad, por tu energía
positiva y por ser una gran persona.
<br><br>
Que nunca te falten motivos para sonreír ni personas que te quieran de verdad.
¡Disfruta tu día al máximo porque te lo mereces! 🎁✨
</p>
<!-- Imagen con vista previa -->
<img src="dina.jpg" alt="Foto de Dina" class="preview-img" onclick="openModal()">
<p style="font-size:1.1em; opacity:0.9;">Haz clic en la imagen para verla en grande 📸</p>
</div>
</section>
<!-- Dedicatoria -->
<section>
<div class="card">
<h2>🎈 Hoy es tu día 🎈</h2>
<p>
Este pequeño detalle es solo una forma de decirte:
<strong>¡Feliz cumpleaños!</strong>
</p>
</div>
</section>
<!-- Pie de página -->
<footer>
— Un detalle hecho especialmente para ti
</footer>
<!-- Modal -->
<div id="imgModal" class="modal" onclick="closeModal()">
<img src="dina.jpg" alt="Foto de Dina ampliada">
</div>
<!-- Scripts -->
<script>
// Globos animados
const colors = ['#ff4d4d', '#ffd93d', '#6bcfef', '#a29bfe', '#55efc4'];
for (let i = 0; i < 15; i++) {
const balloon = document.createElement('div');
balloon.className = 'balloon';
balloon.style.left = Math.random() * 100 + 'vw';
balloon.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
balloon.style.animationDuration = (6 + Math.random() * 6) + 's';
document.body.appendChild(balloon);
}
// Modal
function openModal() {
document.getElementById('imgModal').style.display = 'block';
}
function closeModal() {
document.getElementById('imgModal').style.display = 'none';
}
// Música
const music = document.getElementById('bgMusic');
const musicBtn = document.getElementById('musicBtn');
let musicOn = true;
// volumen suave
music.volume = 0.25;
// intentar autoplay al cargar
window.addEventListener('load', async () => {
try {
await music.play();
musicOn = true;
musicBtn.textContent = "🔊 Música: ON";
} catch (e) {
// si el navegador bloquea, se activará con un clic/tap
musicOn = false;
musicBtn.textContent = "🔇 Música: OFF";
}
});
// activar música con el primer clic en la página (por restricciones de móvil)
document.addEventListener('click', async () => {
if (!musicOn) {
try {
await music.play();
musicOn = true;
musicBtn.textContent = "🔊 Música: ON";
} catch (e) { }
}
}, { once: false });
async function toggleMusic() {
if (music.paused) {
try {
await music.play();
musicOn = true;
musicBtn.textContent = "🔊 Música: ON";
} catch (e) {
musicOn = false;
musicBtn.textContent = "🔇 Música: OFF";
}
} else {
music.pause();
musicOn = false;
musicBtn.textContent = "🔇 Música: OFF";
}
}
</script>
</body>
</html>