-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalentin_day.html
167 lines (164 loc) · 6.08 KB
/
valentin_day.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>San Valentín 💘</title>
<style>
body {
background-image: url('fondo.jpg'); /* Imagen de fondo fija */
background-size: cover;
background-position: center;
text-align: center;
font-family: 'Comic Sans MS', cursive;
color: white;
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
.container {
width: 90%;
max-width: 400px;
backdrop-filter: blur(5px);
padding: 20px;
border-radius: 10px;
}
h1 {
background-color: red;
padding: 10px;
border-radius: 10px;
font-size: 1.5em;
}
.image-container {
width: 200px;
height: 200px;
display: flex;
justify-content: center;
align-items: center;
margin: 20px auto;
}
.image-container img {
max-width: 100%;
max-height: 100%;
border-radius: 10px;
}
.buttons {
margin-top: 20px;
display: flex;
flex-direction: column;
gap: 10px;
}
button {
font-size: 16px;
padding: 10px;
border: none;
cursor: pointer;
border-radius: 5px;
width: 100%;
}
.btn-si {
background-color: #ff4d4d;
color: white;
}
.btn-no {
background-color: #333333;
color: white;
}
</style>
</head>
<body>
<div class="container">
<h1>¿Quieres ser mi San Valentín? 💖</h1>
<div class="image-container">
<img id="gifImage" src="fondo.gif" alt="Imagen central"> <!-- Ahora es un GIF -->
</div>
<div class="buttons">
<button class="btn-si" onclick="mensajeSi()">Sí 💕</button>
<button class="btn-no" onclick="cambiarNo(this)">No 💔</button>
</div>
</div>
<script>
function mensajeSi() {
let nuevaVentana = window.open("", "", "width=400,height=600");
nuevaVentana.document.write(`
<html>
<head>
<title>¡Te Quiero! 💖</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<style>
body {
background-image: url('amor.jpg'); /* Imagen de fondo */
background-size: cover;
background-position: center;
text-align: center;
font-family: 'Comic Sans MS', cursive;
color: white;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
flex-direction: column;
}
.mensaje {
background-color: rgba(255, 0, 0, 0.7);
padding: 20px;
border-radius: 15px;
max-width: 90%;
}
.image-container {
width: 200px;
height: 200px;
display: flex;
justify-content: center;
align-items: center;
margin: 20px auto;
}
.image-container img {
max-width: 100%;
max-height: 100%;
border-radius: 10px;
}
.background-gif {
width: 100%;
height: 100vh;
background-size: cover;
background-position: center;
position: absolute;
bottom: 0;
z-index: -1;
}
</style>
</head>
<body>
<div class="mensaje">
<h1>💕 ¡Yuju! 💕</h1>
<p>Sabía que dirías que sí. ¡Te Quiero muchísimo! 💖🥰 Estoy feliz de compartir este momento contigo.</p>
</div>
<div class="image-container">
<img src="fondo1.gif" alt="Gif central en la segunda pestaña"> <!-- GIF central -->
</div>
<div class="background-gif"></div> <!-- Fondo GIF debajo del texto -->
</body>
</html>
`);
}
let noCounter = 0;
let noMessages = ["No 💔", "¿Estás segura? 😢", "¿De verdad? 🥺", "Piénsalo bien... 😭","Estas bien?","Hice algo?", "Última oportunidad 💕"];
let gifImages = ["fondo.gif", "gif1.gif", "gif2.gif", "gif3.gif", "gif4.gif","gif5.gif","gif6.gif"];
function cambiarNo(btn) {
if (noCounter < noMessages.length - 1) {
noCounter++;
btn.textContent = noMessages[noCounter];
document.getElementById("gifImage").src = gifImages[noCounter];
} else {
btn.textContent = "Está bien... 😞";
}
}
</script>
</body>
</html>