Skip to content

Commit 57d255e

Browse files
committed
add: 404 page
1 parent f61c2af commit 57d255e

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

src/pages/404.astro

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
import ExternalLink from "../components/common/ExternalLink.astro";
3+
import Icon from "../components/common/Icon.astro";
4+
import Layout from "../layouts/Main.astro";
5+
---
6+
7+
<Layout title="404">
8+
<main>
9+
<h1>You hate to see it...</h1>
10+
<h2>404</h2>
11+
12+
<p>The page you are looking for doesn't seem to exist.</p>
13+
14+
<p>
15+
If you think this is an error, please, <ExternalLink
16+
url="https://github.com/LuaLS/LuaLS.github.io/issues"
17+
>let us know</ExternalLink
18+
>.
19+
</p>
20+
21+
<button id="back"><Icon group="solid" name="arrow-left" /> Go Back</button>
22+
</main>
23+
</Layout>
24+
25+
<script>
26+
const btn = document.querySelector("button#back");
27+
btn?.addEventListener("click", (e) => {
28+
history.back();
29+
});
30+
</script>
31+
32+
<style lang="scss">
33+
main {
34+
max-width: 1300px;
35+
margin-left: auto;
36+
margin-right: auto;
37+
38+
button#back {
39+
display: block;
40+
margin: 2em auto 0px auto;
41+
background: transparent;
42+
border: none;
43+
font-size: 1.5em;
44+
color: white;
45+
}
46+
}
47+
</style>

0 commit comments

Comments
 (0)