Updated header and added not found page
This commit is contained in:
@@ -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 (
|
||||
<>
|
||||
<header className="fixed w-screen z-1000 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 navbar />
|
||||
<ThemeSwitcher />
|
||||
</nav>
|
||||
</header>
|
||||
<Header searchBar />
|
||||
<div className="pb-5 pt-header min-h-content">
|
||||
{children}
|
||||
</div>
|
||||
|
||||
@@ -52,7 +52,7 @@ async function SuspendedPage({ ign: pign }: { ign: string }) {
|
||||
if (!player) {
|
||||
return (
|
||||
<div className="flex flex-col items-center min-h-screen">
|
||||
<h1 className="mt-25">Player not found</h1>
|
||||
<h1 className="mt-25">Player hasn't joined hypixel</h1>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user