diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx
index f0f2147..6b571bd 100644
--- a/src/app/(main)/layout.tsx
+++ b/src/app/(main)/layout.tsx
@@ -1,18 +1,10 @@
-import { ThemeSwitcher } from "@/components/theme-switcher"
-import Link from "next/link"
+import Header from "@/components/header"
import { ReactNode } from "react"
export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) {
return (
<>
-
-
-
+
{children}
diff --git a/src/app/(stats)/layout.tsx b/src/app/(stats)/layout.tsx
index 51b4190..3fe39c4 100644
--- a/src/app/(stats)/layout.tsx
+++ b/src/app/(stats)/layout.tsx
@@ -1,20 +1,10 @@
-import { SearchBar } from "@/components/search-bar"
-import { ThemeSwitcher } from "@/components/theme-switcher"
-import Link from "next/link"
+import Header from "@/components/header"
import { ReactNode } from "react"
export default function StatsLayout({ children }: Readonly<{ children: ReactNode }>) {
return (
<>
-
-
-
+
{children}
diff --git a/src/app/(stats)/player/[ign]/page.tsx b/src/app/(stats)/player/[ign]/page.tsx
index afbda88..2cb3c2f 100644
--- a/src/app/(stats)/player/[ign]/page.tsx
+++ b/src/app/(stats)/player/[ign]/page.tsx
@@ -52,7 +52,7 @@ async function SuspendedPage({ ign: pign }: { ign: string }) {
if (!player) {
return (
-
Player not found
+ Player hasn't joined hypixel
)
}
diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx
new file mode 100644
index 0000000..3978b50
--- /dev/null
+++ b/src/app/not-found.tsx
@@ -0,0 +1,22 @@
+import Header from "@/components/header"
+import { Button } from "@/components/ui/button"
+import { ArrowLeftIcon } from "lucide-react"
+import Link from "next/link"
+
+export default function NotFound() {
+ return (
+
+
+
+
+ 404
+ Page not found
+
+
+ )
+}
diff --git a/src/components/header.tsx b/src/components/header.tsx
new file mode 100644
index 0000000..7b8d395
--- /dev/null
+++ b/src/components/header.tsx
@@ -0,0 +1,17 @@
+import Link from "next/link"
+import { SearchBar } from "./search-bar"
+import { ThemeSwitcher } from "./theme-switcher"
+
+export default function Header({ searchBar = false }: { searchBar?: boolean }) {
+ return (
+
+
+
+ )
+}