Skip to content

Commit 580008a

Browse files
Merge pull request #14 from edum0/main
404 page
2 parents d1df7f3 + 4ba3de6 commit 580008a

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed

app/globals.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
src: url("/fonts/BrunoAce-Regular.ttf") format("truetype");
1212
}
1313

14+
@font-face {
15+
font-family: "Ballega";
16+
src: url("/fonts/Ballega.otf") format("opentype");
17+
}
18+
1419
@custom-variant dark (&:is(.dark *));
1520

1621
@theme inline {

app/not-found.tsx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
"use client";
2+
3+
import React from "react";
4+
import Image from "next/image";
5+
import { useRouter } from "next/navigation";
6+
import Button from "@/components/ui/Button";
7+
8+
export default function NotFound() {
9+
const router = useRouter();
10+
11+
return (
12+
<div className="min-h-screen flex items-center justify-center bg-gradient-to-b from-gray-900 to-green-900 text-white">
13+
<div className="flex flex-col items-center text-center">
14+
{/* 404 Section */}
15+
<div className="flex flex-col items-center mb-6">
16+
<Image
17+
src="/404.svg"
18+
alt="close"
19+
width={550}
20+
height={550}
21+
draggable={false}
22+
unselectable="on"
23+
priority
24+
/>
25+
</div>
26+
27+
{/* Home Button*/}
28+
<Button
29+
className="mt-12 text-xl px-8 py-6 font-[Ballega] font-extralight"
30+
onClick={() => router.push("/")}
31+
variant="green"
32+
size="lg"
33+
>
34+
Home
35+
</Button>
36+
</div>
37+
</div>
38+
);
39+
}

public/404.svg

Lines changed: 20 additions & 0 deletions
Loading

public/fonts/Ballega.otf

69.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)