Updated header and added not found page

This commit is contained in:
2025-09-02 23:57:35 +02:00
parent 32d34a0ff5
commit 573492ba14
5 changed files with 44 additions and 23 deletions

17
src/components/header.tsx Normal file
View File

@@ -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 (
<header className="fixed w-screen bg-background/50 backdrop-blur-sm">
<nav className="flex justify-between items-center px-6 border-b h-header">
<Link href="/">
<span className="text-lg font-semibold">Hypixel Stats</span>
</Link>
{searchBar && <SearchBar navbar />}
<ThemeSwitcher />
</nav>
</header>
)
}