Skip to content

Commit 3f86bc6

Browse files
committed
added new 404 error page
1 parent 3907eb4 commit 3f86bc6

File tree

5 files changed

+41
-12
lines changed

5 files changed

+41
-12
lines changed

assets/images/error/404-error.jpg

223 KB
Loading

errors/404.html error/404.html

+19-10
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@
2020
<div id="navigation-bar">
2121
<ul>
2222
<li>
23-
<a href="home.html">
23+
<a href="/home.html">
2424
<i class="fa-solid fa-house"></i>
2525
<span>Home</span>
2626
</a>
2727
</li>
2828
<li>
29-
<a href="games.html">
29+
<a href="/games.html">
3030
<i class="fa-solid fa-chess-knight"></i>
3131
<span>Spielen</span>
3232
</a>
3333
</li>
3434
<li>
35-
<a href="infos.html">
35+
<a href="/infos.html">
3636
<i class="fa-solid fa-circle-info"></i>
3737
<span>Infos</span>
3838
</a>
@@ -43,15 +43,24 @@
4343
</nav>
4444

4545
<main class="header">
46-
<h1 class="page-title"><strong>Home</strong></h1>
4746

48-
<section class="wrapper card-wrapper">
49-
<h1 class="header-title">Wer wir sind</h1>
50-
<p class="content-text content-hightlight">Wir sind die Schülerinnen und Schüler des<br>
51-
P-Seminars Musik! Wir wollen mit euch einen besonderen Spieletag veranstalten, bei dem ihr alles rund um
52-
die Musik spielerisch entdecken und kennenlernen könnt.</p>
47+
<section class="wrapper">
48+
<img src="/assets/images/error/404-error.jpg" alt="error" class="error-image" draggable="false"
49+
style="border-radius: 10px;">
50+
<h1 class="header bold" style="color: #e74c3c;">
51+
<i class="fa-solid fa-triangle-exclamation" style="color: #e74c3c;"></i> Ein Fehler ist aufgetreten!
52+
</h1>
53+
<p class="content-text content-hightlight">Leider können wir deine gewünschte Seite nicht finden. Wenn du
54+
nicht weißt, wie oder warum du hierher gekommen bist, kommst du unten ganz einfach zurück zur
55+
Startseite.<br><br>
56+
Fehlercode: 404
57+
</p>
58+
<a href="/games/quizz/">
59+
<button type="button" class="game-button button-top">
60+
<i class="fa-solid fa-play"></i><span class="button-with-adjust"></span> Zurück zur Startseite
61+
</button>
62+
</a>
5363
</section>
54-
5564
</main>
5665

5766
<footer>

games.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ <h1 class="header-title">Zuordnen</h1>
119119
</p>
120120

121121
<a href="/games/instruments/"><button type="button" class="game-button">
122-
<i class="fa-solid fa-play"></i><span class="button-with-adjust"></span>
122+
<i class="fa-solid fa-play"></i><span class="button-with-adjust"></span>
123123
Jetzt Spielen</button></a>
124124
</div>
125125
</div>

netlify.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[[redirects]]
22
from = "/*"
3-
to = "/errors/404.html"
3+
to = "/error/404.html"
44
status = 404

style.css

+20
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,26 @@ button {
251251
margin-bottom: 15px;
252252
}
253253

254+
.error-image {
255+
max-width: 330px;
256+
margin: 5px 0px 5px 0px;
257+
}
258+
259+
hr {
260+
margin: 5px 0px 5px;
261+
border: 2px solid #242424;
262+
border-radius: 2px;
263+
}
264+
265+
.bold {
266+
font-weight: 100 !important;
267+
margin-bottom: 5px;
268+
}
269+
270+
.button-top {
271+
margin-top: 10px !important;
272+
}
273+
254274
/*****************************************/
255275
/* FOOTER */
256276
/*****************************************/

0 commit comments

Comments
 (0)