Reapply "Add missing admin action files and navigation links"

This reverts commit 4d515bc400.
This commit is contained in:
Simo committed 2026-07-11 20:52:56 +02:00
1 parent 96ed768f14
commit 5b4228261a
338 files changed
+28143 -5948

No files matched your search

+34 -14
View File
@@ -17,14 +17,13 @@ export async function SiteHeader() {
let online: number;
try {
online = await cached("online_count", 10_000, () =>
prisma.user.count({ where: { online: "1" } }),
);
online = await cached("online_count", 10_000, () => prisma.user.count({ where: { online: "1" } }));
} catch {
online = 0;
}
const bannerUrl = header && header !== "/assets/images/background.png" ? header : "/assets/images/banner.png";
const bannerUrl =
header && header !== "/assets/images/background.png" ? header : "/assets/images/banner.png";
return (
<div className="site-header relative w-full overflow-hidden" style={{ minHeight: "18rem" }}>
@@ -32,25 +31,46 @@ export async function SiteHeader() {
<div className="absolute inset-0" style={{ background: `url(${bannerUrl}) center/cover no-repeat` }} />
{/* Gradient overlays */}
<div className="absolute inset-0" style={{
background: "linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 75%, rgba(0,0,0,0.7) 100%)",
}} />
<div
className="absolute inset-0"
style={{
background:
"linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.4) 75%, rgba(0,0,0,0.7) 100%)",
}}
/>
{/* Subtle dot pattern */}
<div className="absolute inset-0 opacity-[0.04]" style={{
backgroundImage: "radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px)",
backgroundSize: "20px 20px",
}} />
<div
className="absolute inset-0 opacity-[0.04]"
style={{
backgroundImage: "radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px)",
backgroundSize: "20px 20px",
}}
/>
{/* Decorative glows */}
<div className="absolute -top-24 -right-24 w-96 h-96 rounded-full opacity-[0.12] blur-[120px]" style={{ background: "var(--color-primary)" }} />
<div className="absolute -bottom-24 -left-24 w-72 h-72 rounded-full opacity-[0.08] blur-[100px]" style={{ background: "var(--color-primary)" }} />
<div
className="absolute -top-24 -right-24 w-96 h-96 rounded-full opacity-[0.12] blur-[120px]"
style={{ background: "var(--color-primary)" }}
/>
<div
className="absolute -bottom-24 -left-24 w-72 h-72 rounded-full opacity-[0.08] blur-[100px]"
style={{ background: "var(--color-primary)" }}
/>
{/* Content */}
<div className="relative flex flex-col items-center justify-center px-4 py-12 min-h-[18rem]">
<Link href="/" className="transition-transform duration-300 hover:scale-105 mb-8">
{logo ? (
<Image className="drop-shadow-2xl block" src={logo} alt={hotelName ?? "Hotel"} width={200} height={120} style={{ maxHeight: 120, width: "auto", height: "auto" }} unoptimized />
<Image
className="drop-shadow-2xl block"
src={logo}
alt={hotelName ?? "Hotel"}
width={200}
height={120}
style={{ maxHeight: 120, width: "auto", height: "auto" }}
unoptimized
/>
) : (
<h1
className="text-center font-extrabold tracking-tight leading-none text-white"