Skip to content

Commit 4046b1b

Browse files
committed
feat: add 404 page
1 parent c051aa1 commit 4046b1b

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

src/components/Footer.astro

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { Container } from "styled-system/jsx";
44
---
55

66
<footer>
7-
<Container>
8-
<HStack borderTopWidth="normal" py="4" justify="space-between">
7+
<Container borderTopWidth="normal">
8+
<HStack height="12" justify="space-between">
99
<span class="caret-blink">TheComputerM</span>
1010
{new Date().getFullYear()}
1111
</HStack>

src/pages/404.astro

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
import { Center } from "styled-system/jsx";
3+
import BaseLayout from "~/layouts/BaseLayout.astro";
4+
---
5+
6+
<BaseLayout title="404 | Not Found">
7+
<Center position="relative" style={{ height: "calc(100svh - 7rem)" }}>
8+
<h1>404</h1>
9+
</Center>
10+
</BaseLayout>

src/pages/index.astro

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ const { Content } = await render(entry);
3232
color: #9d00ff;
3333
text-shadow:
3434
4px 0 6px #ff0000,
35-
-4px 0 6px #0000ff;
35+
-4px 0 6px #0000ff,
36+
0 0 2rem currentColor;
3637
}
3738

3839
.banner {
@@ -46,7 +47,7 @@ const { Content } = await render(entry);
4647
inset: 0;
4748
z-index: 2;
4849
pointer-events: none;
49-
50+
mix-blend-mode: color-burn;
5051
background: linear-gradient(
5152
rgba(18, 16, 16, 0) 50%,
5253
rgba(0, 0, 0, 0.25) 50%
@@ -57,6 +58,7 @@ const { Content } = await render(entry);
5758
rgba(0, 255, 0, 0.02),
5859
rgba(0, 0, 255, 0.06)
5960
);
61+
6062
background-size:
6163
100% 2px,
6264
3px 100%;

0 commit comments

Comments
 (0)