-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.html
More file actions
297 lines (287 loc) · 10.2 KB
/
Copy pathstart.html
File metadata and controls
297 lines (287 loc) · 10.2 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
292
293
294
295
296
297
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home</title>
<style>
html, body {
height: 100%;
margin: 0;
display: flex;
flex-direction: column;
overflow: auto;
font-family: Verdana, sans-serif;
}
.background-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
}
.background-container img {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 1.5s ease-in-out;
}
header {
background-color: rgba(211, 211, 211, 0.8);
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
font-family: Verdana, sans-serif;
position: relative;
z-index: 2;
transition: opacity 1s ease-in-out; /* Animation für Ausblenden */
}
header.hidden {
opacity: 0;
pointer-events: none;
}
header img {
position: absolute;
left: 20px;
top: 50%;
transform: translateY(-50%);
height: 100px;
border-radius: 15px;
}
.menu-icon {
position: absolute;
top: 50%;
right: 40px;
transform: translateY(-50%);
cursor: pointer;
z-index: 3;
}
.menu-icon div {
width: 30px;
height: 4px;
background-color: black;
margin: 6px 0;
}
.menu {
display: none;
position: absolute;
top: 60px;
right: 20px;
background-color: white;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
z-index: 3;
}
.menu a {
display: block;
padding: 10px 20px;
text-decoration: none;
color: black;
font-family: Verdana, sans-serif;
border-bottom: 1px solid #ddd;
}
.menu a:last-child {
border-bottom: none;
}
.menu a:hover {
background-color: #f0f0f0;
}
.content {
margin-top: 100vh; /* Platz für den Scrollbereich */
padding: 20px;
text-align: center;
font-family: Verdana, sans-serif;
color: rgb(211, 234, 7);
margin-bottom: 48px; /* Mehr Abstand zu den Kacheln */
}
.tiles-container {
display: grid;
grid-template-columns: 1fr;
gap: 32px;
margin: 40px auto;
max-width: 1200px;
padding: 0 16px;
}
@media (min-width: 600px) {
.tiles-container {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 1100px) {
.tiles-container {
grid-template-columns: repeat(4, 1fr);
}
}
.tile {
background: rgba(255,255,255,0.85);
border-radius: 16px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
padding: 20px;
display: flex;
flex-direction: column;
align-items: flex-start;
text-decoration: none;
transition: box-shadow 0.2s;
cursor: pointer;
}
.tile:hover {
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.tile-header {
display: flex;
align-items: center;
width: 100%;
gap: 16px;
}
.tile-title {
font-size: 1.2em;
font-weight: bold;
flex: 1;
color: #222;
}
.tile-logo {
width: 48px;
height: 48px;
border-radius: 8px;
object-fit: cover;
}
.tile-desc {
margin-top: 12px;
color: #444;
font-size: 1em;
width: 100%;
word-break: break-word;
}
/* Responsive: 4 Kacheln ab 900px Breite */
@media (min-width: 900px) {
.tiles-container {
grid-template-columns: repeat(4, 1fr);
}
}
</style>
</head>
<body onclick="showElements()">
<div class="background-container">
<img src="lamacraft/bg1.png" alt="Background 1">
<img src="lamacraft/bg2.png" alt="Background 2">
<img src="lamacraft/bg3.png" alt="Background 3">
<img src="lamacraft/bg4.png" alt="Background 4">
<img src="lamacraft/bg5.png" alt="Background 5">
<img src="lamacraft/bg6.png" alt="Background 6">
<img src="lamacraft/bg7.png" alt="Background 7">
<img src="lamacraft/bg8.png" alt="Background 8">
<img src="lamacraft/bg9.png" alt="Background 9">
<img src="lamacraft/bg10.png" alt="Background 10">
<img src="lamacraft/bg11.png" alt="Background 11">
<img src="lamacraft/bg12.png" alt="Background 12">
<img src="lamacraft/bg13.png" alt="Background 13">
<img src="lamacraft/bg14.png" alt="Background 14">
<img src="lamacraft/bg15.png" alt="Background 15">
<img src="lamacraft/bg16.png" alt="Background 16">
<img src="lamacraft/bg17.png" alt="Background 17">
<img src="lamacraft/bg18.png" alt="Background 18">
<img src="lamacraft/bg19.png" alt="Background 19">
<img src="lamacraft/bg20.png" alt="Background 20">
<img src="lamacraft/bg21.png" alt="Background 21">
<img src="lamacraft/bg22.png" alt="Background 22">
<img src="lamacraft/bg23.png" alt="Background 23">
</div>
<header id="header">
<img src="lamacraft/logo.jpg" alt="Logo">
<h1>Home</h1>
<div class="menu-icon" onclick="toggleMenu(event)">
<div></div>
<div></div>
<div></div>
</div>
<div class="menu" id="menu">
<a href="lamacraft/index.html">Go to Lamacraft</a>
<a href="https://discord.com/invite/WbDGbAGYcH">Discord</a>
<a href="lamacraft/mods.html">Mods</a>
<a href="https://github.com/Togibu" target="_blank">Visit me on GitHub</a>
<a href="https://scratch.mit.edu/users/Lexi_re/" target="_blank">Visit me on Scratch</a>
</div>
</header>
<!-- Platz für zusätzlichen Text -->
<div class="content">
<h2>Willkommen auf meiner Website!</h2>
<p>Hier findest du aktuell nur die Website für meinen Minecraft Server.</p>
<p>In der Nächsten Zeit kommt hoffentlich aber noch mehr!</p>
<p>Drücke einfach auf die drei Striche oben rechts und dann auf Lamacraft</p>
<p>Besuche uns auf Discord für weitere Informationen und Updates.</p>
</div>
<div class="tiles-container">
<a class="tile" href="lamacraft/index.html">
<div class="tile-header">
<span class="tile-title">Lamacraft</span>
<img src="lamacraft/logo.jpg" alt="Logo" class="tile-logo">
</div>
<div class="tile-desc">
Minecraft-Server in der Version 1.21.5. Informationen, Downloads und Neuigkeiten rund um Lamacraft findest du hier.
</div>
</a>
<a class="tile" href="https://github.com/Togibu/car-game">
<div class="tile-header">
<span class="tile-title">Car Game</span>
<img src="logos/police.png" alt="Logo" class="tile-logo">
</div>
<div class="tile-desc">
Ein kleines Rennspiel, das ich mit Justus in Unity gebaut habe. Teste es gerne aus – Namensvorschläge sind willkommen!
</div>
</a>
<a class="tile" href="https://leo.redeker.org">
<div class="tile-header">
<span class="tile-title">Birdwatcher</span>
<img src="logos/birdylogo.png" alt="Logo" class="tile-logo">
</div>
<div class="tile-desc">
Ein Python-Tool, das automatisch Fotos aus dem Nistkasten macht und in der Nextcloud speichert.
</div>
</a>
<a class="tile" href="https://leo.redeker.org">
<div class="tile-header">
<span class="tile-title">Website</span>
<img src="logos/platine.png" alt="Logo" class="tile-logo">
</div>
<div class="tile-desc">
Übersicht über verschiedene Projekte, Tools und Informationen. Entdecke die Inhalte über das Menü oder die Kacheln.
</div>
</a>
</div>
<script>
const images = document.querySelectorAll('.background-container img');
let index = 0;
let hideTimeout;
// Hintergrundbilder wechseln
function changeBackground() {
images.forEach(img => img.style.opacity = '0');
images[index].style.opacity = '1';
index = (index + 1) % images.length;
}
setInterval(changeBackground, 4500);
changeBackground();
// Header und Menü ausblenden
function hideElements() {
document.getElementById('header').classList.add('hidden');
document.getElementById('menu').style.display = 'none';
}
// Header anzeigen und Timer zurücksetzen
function showElements() {
document.getElementById('header').classList.remove('hidden');
clearTimeout(hideTimeout);
hideTimeout = setTimeout(hideElements, 20000); // Nach 20 Sekunden ausblenden
}
// Menü umschalten
function toggleMenu(event) {
event.stopPropagation(); // Verhindert, dass der Body-Klick ausgelöst wird
const menu = document.getElementById('menu');
menu.style.display = menu.style.display === 'block' ? 'none' : 'block';
}
// Initiales Ausblenden nach 20 Sekunden
hideTimeout = setTimeout(hideElements, 20000);
</script>
</body>
</html>