implement 404 page
This commit is contained in:
parent
dc05908114
commit
9a0354dd7f
19
404.html
Normal file
19
404.html
Normal file
@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/styles/style.css">
|
||||
<link rel="stylesheet" href="/styles/404.css">
|
||||
<link rel="shortcut icon" href="/img/favicon.ico" type="image/x-icon">
|
||||
<script src="/scripts/main.js" defer></script>
|
||||
<title>404</title>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<img src="/img/logo-light.svg" alt="Logo">
|
||||
<p>Requested resource was not found</p>
|
||||
<p><a href="/">Go back to Homepage</a></p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
@ -31,7 +31,7 @@ theme_switcher.addEventListener("click", () => {
|
||||
});
|
||||
|
||||
function changeToDarkTheme() {
|
||||
theme_switcher.setAttribute("title", "turn the light on");
|
||||
theme_switcher?.setAttribute("title", "turn the light on");
|
||||
document.documentElement.style.setProperty("--border", "var(--dark-border)");
|
||||
document.documentElement.style.setProperty("--text", "var(--dark-text)");
|
||||
document.documentElement.style.setProperty("--bg", "var(--dark-bg)");
|
||||
@ -42,7 +42,7 @@ function changeToDarkTheme() {
|
||||
}
|
||||
|
||||
function changeToLightTheme() {
|
||||
theme_switcher.setAttribute("title", "turn the light off");
|
||||
theme_switcher?.setAttribute("title", "turn the light off");
|
||||
document.documentElement.style.setProperty("--border", "var(--light-border)");
|
||||
document.documentElement.style.setProperty("--text", "var(--light-text)");
|
||||
document.documentElement.style.setProperty("--bg", "var(--light-bg)");
|
||||
|
12
styles/404.css
Normal file
12
styles/404.css
Normal file
@ -0,0 +1,12 @@
|
||||
main {
|
||||
max-width: fit-content;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
main img {
|
||||
width: min(70vw, 15rem);
|
||||
}
|
Loading…
Reference in New Issue
Block a user