-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
291 lines (256 loc) · 8.66 KB
/
index.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
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="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weihnachtsgruß</title>
<style>
body {
margin: 0;
overflow: hidden;
font-family: Arial, sans-serif;
}
.page {
display: flex;
justify-content: center;
align-items: center;
height: 90vh;
width: 100vw;
position: relative;
background: linear-gradient(to bottom, #bb0202, #942929);
}
.page1 {
color: white;
text-align: center;
}
.page2 {
color: white;
text-align: center;
flex-direction: column;
}
.page3 {
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.snowflake {
position: absolute;
color: white;
font-size: 1em;
top: -10%;
animation: fall linear infinite;
}
@keyframes fall {
to {
transform: translateY(120vh);
}
}
.button-container {
position: absolute;
bottom: 20px;
display: flex;
gap: 60px;
}
button {
padding: 10px 20px;
font-size: 18px;
background: #007BFF;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background: #0056b3;
}
.opera-image {
width: 80%;
height: auto;
border-radius: 10px;
}
.tickets {
text-align: center;
font-size: 20px;
}
.ticket {
border: 2px dashed black;
padding: 20px;
margin: 10px;
width: 80%;
text-align: center;
background: white;
}
.riddle {
margin: 20px 0;
font-size: 24px;
}
</style>
</head>
<body>
<div class="page page1">
<div>
<h1>Frohe Weihnachten, Goldie!</h1>
<p>Ich habe noch eine Überraschung für dich! Ich bin gespannt, ob Du es errätst.</p>
</div>
<div class="button-container">
<button onclick="previousPage()">Zurück</button>
<button onclick="nextPage()">Weiter</button>
</div>
<audio autoplay loop>
<source src="christmas-spirit-265741.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
<div id="snowflakes"></div>
</div>
<div class="page page2" style="display: none;">
<div>
<p class="riddle">Rätsel:</p>
<p class="riddle">"Ich fließe durch viele Städte, mein Wasser ist klar. Ich bin einer der längsten Flüsse
Europas. Wie heiße ich?"
</p>
</div>
<div class="button-container">
<button onclick="previousPage()">Zurück</button>
<button onclick="nextPage()">Weiter</button>
</div>
<div id="snowflakes"></div>
</div>
<div class="page page2" style="display: none;">
<div>
<p class="riddle">Rätsel:</p>
<p class="riddle"> "Ich fließe durch viele Städte, mein Wasser ist klar. Ich bin einer der längsten Flüsse
Europas. Wie heiße ich?"
</p>
<p class="riddle">Lösung: Rhein</p>
</div>
<div class="button-container">
<button onclick="previousPage()">Zurück</button>
<button onclick="nextPage()">Weiter</button>
</div>
<div id="snowflakes"></div>
</div>
<div class="page page2" style="display: none;">
<div>
<img src="RichardWagner.jpg" alt="Opera House" class="opera-image">
<p class="riddle">Wer bin ich?</p>
</div>
<div class="button-container">
<button onclick="previousPage()">Zurück</button>
<button onclick="nextPage()">Weiter</button>
</div>
<div id="snowflakes"></div>
</div>
<div class="page page2" style="display: none;">
<div>
<img src="RichardWagner.jpg" alt="Opera House" class="opera-image">
<p class="riddle">Richard Wagner</p>
</div>
<div class="button-container">
<button onclick="previousPage()">Zurück</button>
<button onclick="nextPage()">Weiter</button>
</div>
<div id="snowflakes"></div>
</div>
<div class="page page2" style="display: none;">
<div>
<p class="riddle">Rätsel: </p>
<p class="riddle">"Es ist wertvoll, doch in falschen Händen bringt es Macht und Verderben. Ich werde
geschmiedet, doch nie zerbrechen. Was bin ich?"
</p>
</div>
<div class="button-container">
<button onclick="previousPage()">Zurück</button>
<button onclick="nextPage()">Weiter</button>
</div>
<div id="snowflakes"></div>
</div>
<div class="page page2" style="display: none;">
<div>
<p class="riddle">Rätsel: </p>
<p class="riddle">"Es ist wertvoll, doch in falschen Händen bringt es Macht und Verderben. Ich werde
geschmiedet, doch nie zerbrechen. Was bin ich?"
</p>
<p class="riddle">Lösung: Gold</p>
</div>
<div class="button-container">
<button onclick="previousPage()">Zurück</button>
<button onclick="nextPage()">Weiter</button>
</div>
<div id="snowflakes"></div>
</div>
<div class="page page2" style="display: none;">
<div>
<img src="oper_leipzig_opernhaus_foto_kirsten_nijhof.jpg" height="80vh" alt="Opera House" class="opera-image">
<p class="riddle">Was findet hier statt?</p>
</div>
<div class="button-container">
<button onclick="previousPage()">Zurück</button>
<button onclick="nextPage()">Weiter</button>
</div>
<div id="snowflakes"></div>
</div>
<div class="page page2" style="display: none;">
<div>
<img src="PXL_20241223_232845989.jpg" alt="Opera House" class="opera-image">
</div>
<div class="button-container">
<button onclick="previousPage()">Zurück</button>
</div>
<div id="snowflakes"></div>
</div>
<!-- <div class="page page2" style="display: none;">
<div>
<img src="das-rheingold-oper-erzaehlt-als-hoerspiel-mit-musik-cd.webp" alt="Opera House"
class="opera-image">
</div>
<div class="button-container">
<button onclick="previousPage()">Zurück</button>
<button onclick="nextPage()">Weiter</button>
</div>
<div id="snowflakes"></div>
</div> -->
<!-- <div class="page page3" style="display: none;">
<div class="tickets">
<h2>Wir gehen gemeinsam in die Oper: DAS RHEINGOLD</h2>
<p> am Freitag, 07.02.2025 18:00 Uhr</p>
</div>
<div class="button-container">
<button onclick="previousPage()">Zurück</button>
</div>
<div id="snowflakes"></div>
</div> -->
<script>
let currentPage = 0;
const pages = document.querySelectorAll('.page');
function nextPage() {
if (currentPage < pages.length - 1) {
pages[currentPage].style.display = 'none';
currentPage++;
pages[currentPage].style.display = 'flex';
}
}
function previousPage() {
if (currentPage > 0) {
pages[currentPage].style.display = 'none';
currentPage--;
pages[currentPage].style.display = 'flex';
}
}
function createSnowflake() {
const snowflake = document.createElement('div');
snowflake.className = 'snowflake';
snowflake.textContent = '❄';
snowflake.style.left = Math.random() * 100 + 'vw';
snowflake.style.animationDuration = Math.random() * 3 + 2 + 's';
snowflake.style.fontSize = Math.random() * 1.5 + 0.5 + 'em';
document.getElementById('snowflakes').appendChild(snowflake);
setTimeout(() => {
snowflake.remove();
}, 5000);
}
setInterval(createSnowflake, 100);
</script>
</body>
</html>