Skip to content

Commit 4f5cde0

Browse files
committed
Implement 404 page
1 parent d495af7 commit 4f5cde0

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

src/app/not-found.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { Container, Link, Stack, Typography } from "@mui/material";
2+
import NextLink from "next/link";
3+
4+
import { Toskamopo } from "@/components/Toskamopo";
5+
6+
const NotFound = () => {
7+
return (
8+
<Container maxWidth="md">
9+
<Stack gap={2} sx={{ alignItems: "center", py: 4 }}>
10+
<Toskamopo />
11+
<Typography variant="h2">404</Typography>
12+
<Typography variant="body1">Sivua ei löytynyt</Typography>
13+
<Link component={NextLink} href="/">
14+
Takaisin etusivulle
15+
</Link>
16+
</Stack>
17+
</Container>
18+
);
19+
};
20+
21+
export default NotFound;

src/components/AboutUs/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { MarkdownContainer } from "@/components/MarkdownContainer";
44
import { Stack } from "@mui/material";
55

6-
import { Toskamopo } from "./Toskamopo";
6+
import { Toskamopo } from "@/components/Toskamopo";
77

88
export const AboutUs = async ({ introText }: { introText: string }) => {
99
return (
File renamed without changes.

0 commit comments

Comments
 (0)