feat: premium polish with animations, glassmorphism, staggered reveals
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m58s

This commit is contained in:
openhands committed 2026-07-22 14:18:24 +02:00
1 parent 8fa59d9d19
commit e2dab9d184
3 files changed
+858 -367

No files matched your search

+485 -260
View File
@@ -27,7 +27,7 @@ async function getHotelData() {
cached("total_users", 30_000, () => prisma.user.count()).catch(() => 0), cached("total_users", 30_000, () => prisma.user.count()).catch(() => 0),
cached("total_rooms", 30_000, () => prisma.rooms.count()).catch(() => 0), cached("total_rooms", 30_000, () => prisma.rooms.count()).catch(() => 0),
prisma.websiteArticles prisma.websiteArticles
.findMany({ orderBy: { createdAt: "desc" }, take: 5 }) .findMany({ orderBy: { createdAt: "desc" }, take: 6 })
.catch(() => []), .catch(() => []),
prisma.user prisma.user
.findMany({ .findMany({
@@ -37,7 +37,7 @@ async function getHotelData() {
}) })
.catch(() => []), .catch(() => []),
prisma.cameraWeb prisma.cameraWeb
.findMany({ orderBy: { timestamp: "desc" }, take: 4 }) .findMany({ orderBy: { timestamp: "desc" }, take: 6 })
.catch(() => []), .catch(() => []),
]); ]);
@@ -65,150 +65,255 @@ export default async function Home() {
recentUsers, recentUsers,
recentPhotos, recentPhotos,
} = await getHotelData(); } = await getHotelData();
const featured = articles[0];
const featuredArticle = articles[0]; const rest = articles.slice(1, 5);
const remainingArticles = articles.slice(1, 5);
return ( return (
<div className="flex flex-col gap-8 pb-12"> <div className="flex flex-col gap-12 pb-16 stagger-children">
{/* ── Hero ── */} {/* ── 1. Cinematic Hero ── */}
<section <section className="relative overflow-hidden rounded-[1.75rem] animate-fade-in-up">
className="relative overflow-hidden rounded-2xl border" <div className="gradient-border">
style={{ <div
borderColor: className="relative overflow-hidden rounded-[1.75rem] animate-gradient"
"color-mix(in srgb, var(--color-primary) 30%, transparent)", style={{
background: `linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 18%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-primary) 5%, var(--color-background)) 100%)`, background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 22%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-primary) 10%, var(--color-background)) 30%, color-mix(in srgb, var(--color-accent) 8%, var(--color-background)) 60%, color-mix(in srgb, var(--color-primary) 14%, var(--color-background)) 100%)`,
}} }}
> >
<div
className="absolute inset-0 opacity-[0.05]"
style={{
backgroundImage:
"radial-gradient(circle at 30% 30%, var(--color-primary) 0%, transparent 60%)",
}}
/>
<div className="relative flex flex-col md:flex-row items-center gap-6 px-6 py-8 md:px-10 md:py-10">
<div className="flex-1 text-center md:text-left">
<div <div
className="inline-flex items-center gap-2 px-3.5 py-1 rounded-full text-xs font-bold uppercase tracking-wider mb-4" className="absolute inset-0 opacity-[0.04]"
style={{
backgroundImage:
"radial-gradient(circle at 20% 30%, white 0%, transparent 50%), radial-gradient(circle at 80% 70%, var(--color-primary) 0%, transparent 50%)",
}}
/>
<div
className="absolute top-0 left-0 right-0 h-px"
style={{ style={{
background: background:
"color-mix(in srgb, var(--color-primary) 14%, transparent)", "linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 40%, transparent), transparent)",
color: "var(--color-primary-readable, var(--color-primary))",
}} }}
>
<span
className="w-2 h-2 rounded-full animate-pulse"
style={{ background: "var(--color-success)" }}
/>
{online.toLocaleString()} online now
</div>
<h1
className="text-3xl md:text-4xl lg:text-5xl font-black leading-tight tracking-tight mb-3"
style={{ color: "var(--color-text-readable)" }}
>
Welcome to{" "}
<span
style={{
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
{hotelName}
</span>
</h1>
<p
className="text-sm md:text-base max-w-lg leading-relaxed mb-6"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
{t("tagline")}
</p>
<div className="flex flex-wrap gap-3 justify-center md:justify-start">
<Link
href="/register"
className="inline-flex items-center gap-2 font-extrabold text-sm px-6 py-3 rounded-xl transition-all duration-200 hover:scale-105 active:scale-95"
style={{
background:
"var(--color-primary-readable, var(--color-primary))",
color:
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
boxShadow:
"0 4px 16px color-mix(in srgb, var(--color-primary) 35%, transparent)",
}}
>
<Image
src="/assets/images/EnterHubbly.png"
alt=""
width={22}
height={22}
unoptimized
className="inline-block"
/>
Enter {hotelName}
</Link>
<Link
href="/client"
className="inline-flex items-center gap-2 font-bold text-sm px-6 py-3 rounded-xl border-2 transition-all duration-200 hover:scale-105 active:scale-95"
style={{
borderColor:
"color-mix(in srgb, var(--color-text-muted) 25%, transparent)",
color: "var(--color-text-readable)",
}}
>
Play now
</Link>
</div>
</div>
<div className="shrink-0 flex items-end gap-4">
<Image
src="/assets/images/FrankwithBag.gif"
alt="Frank"
width={120}
height={160}
className="object-contain drop-shadow-xl"
unoptimized
priority
/> />
<div className="hidden md:flex flex-col gap-2"> <div className="relative grid lg:grid-cols-5 gap-8 px-8 py-10 md:px-12 md:py-14 items-center">
{recentUsers.slice(0, 4).map((u) => ( <div className="lg:col-span-3 text-center lg:text-left">
<div key={u.username} className="flex items-center gap-1.5"> <div
<Image className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full text-[11px] font-bold uppercase tracking-[0.12em] mb-5 animate-scale-in"
src={avatarImageUrl(imager, u.look, { style={{
headOnly: true, background:
direction: 2, "color-mix(in srgb, var(--color-primary) 16%, transparent)",
size: "s", color:
})} "var(--color-primary-readable, var(--color-primary))",
alt="" border:
width={32} "1px solid color-mix(in srgb, var(--color-primary) 20%, transparent)",
height={38} }}
className="rounded-md" >
unoptimized <span className="relative flex h-2 w-2">
/> <span
<span className="animate-ping absolute inline-flex h-full w-full rounded-full"
className="text-xs font-bold truncate max-w-[80px]" style={{ background: "var(--color-success)" }}
style={{ color: "var(--color-text-readable)" }} />
> <span
{u.username} className="relative inline-flex rounded-full h-2 w-2"
style={{ background: "var(--color-success)" }}
/>
</span> </span>
{online.toLocaleString()} guests online
</div> </div>
))}
<h1
className="text-4xl md:text-5xl lg:text-6xl font-black leading-[1.04] tracking-tight mb-4"
style={{ color: "var(--color-text-readable)" }}
>
Your story starts{" "}
<span className="relative inline-block">
<span
style={{
color:
"var(--color-primary-readable, var(--color-primary))",
}}
>
here
</span>
<span
className="absolute -bottom-1 left-0 right-0 h-2 rounded-full opacity-30"
style={{ background: "var(--color-primary)" }}
/>
</span>
</h1>
<p
className="text-base md:text-lg leading-relaxed max-w-lg mb-7"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
{t("tagline")}
</p>
<div className="flex flex-wrap gap-3 justify-center lg:justify-start">
<Link
href="/register"
className="group relative inline-flex items-center gap-2.5 font-extrabold text-sm px-7 py-3.5 rounded-xl transition-all duration-300 hover:scale-105 active:scale-95 overflow-hidden animate-pulse-glow"
style={{
background:
"var(--color-primary-readable, var(--color-primary))",
color:
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
}}
>
<span
className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300"
style={{
background:
"linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%)",
}}
/>
<Image
src="/assets/images/EnterHubbly.png"
alt=""
width={20}
height={20}
unoptimized
className="relative"
/>
<span className="relative">Enter {hotelName}</span>
</Link>
<Link
href="/client"
className="relative inline-flex items-center gap-2 font-bold text-sm px-7 py-3.5 rounded-xl border-2 transition-all duration-300 hover:scale-105 active:scale-95 group"
style={{
borderColor:
"color-mix(in srgb, var(--color-text-muted) 22%, transparent)",
color: "var(--color-text-readable)",
}}
>
<span
className="absolute inset-0 rounded-xl opacity-0 group-hover:opacity-100 transition-opacity duration-300"
style={{
background:
"color-mix(in srgb, var(--color-text-muted) 5%, transparent)",
}}
/>
<span className="relative">Play now</span>
</Link>
</div>
</div>
<div className="lg:col-span-2 flex items-end justify-center lg:justify-end gap-4">
<div className="relative animate-float">
<div
className="absolute -bottom-4 -left-4 w-48 h-48 rounded-full opacity-[0.08] blur-[60px]"
style={{ background: "var(--color-primary)" }}
/>
<Image
src="/assets/images/FrankwithBag.gif"
alt="Frank"
width={160}
height={210}
className="object-contain drop-shadow-2xl relative"
unoptimized
priority
/>
<div
className="absolute -top-3 -right-3 md:-right-6 z-10 rounded-2xl px-5 py-3 shadow-2xl border max-w-[200px] animate-scale-in"
style={{
background:
"color-mix(in srgb, var(--color-surface) 80%, transparent)",
backdropFilter: "blur(16px)",
borderColor:
"color-mix(in srgb, var(--color-primary) 25%, transparent)",
}}
>
<p
className="text-sm font-black"
style={{ color: "var(--color-text-readable)" }}
>
Hey! 👋
</p>
<p
className="text-[11px] font-semibold mt-0.5 leading-relaxed"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
Ready for an adventure?
</p>
</div>
</div>
<div className="hidden xl:flex flex-col gap-2.5">
{recentUsers.slice(0, 5).map((u, i) => (
<div
key={u.username}
className="flex items-center gap-2 rounded-xl px-3 py-1.5 transition-all duration-300 hover:bg-white/5"
style={{
animation: `fade-in-up 0.4s ease-out ${0.1 + i * 0.05}s both`,
}}
>
<Image
src={avatarImageUrl(imager, u.look, {
headOnly: true,
direction: 2,
size: "s",
})}
alt=""
width={28}
height={34}
className="rounded-md ring-1 ring-white/10"
unoptimized
/>
<div className="min-w-0">
<p
className="text-xs font-bold truncate max-w-[90px]"
style={{ color: "var(--color-text-readable)" }}
>
{u.username}
</p>
<div className="flex items-center gap-1 mt-0.5">
<span
className="w-1.5 h-1.5 rounded-full"
style={{ background: "var(--color-success)" }}
/>
<span
className="text-[9px] font-semibold uppercase tracking-wider"
style={{ color: "var(--color-success)" }}
>
Online
</span>
</div>
</div>
</div>
))}
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
</section> </section>
{/* ── Stats bar ── */} {/* ── 2. Stats ── */}
<div className="grid grid-cols-3 gap-3"> <div className="grid grid-cols-3 gap-4 stagger-children">
{[ {[
{ value: online.toLocaleString(), label: "Guests online" }, {
{ value: users.toLocaleString(), label: "Total citizens" }, value: online.toLocaleString(),
{ value: rooms.toLocaleString(), label: "Rooms built" }, label: "Guests online",
sub: "Exploring right now",
icon: "🟢",
},
{
value: users.toLocaleString(),
label: "Total citizens",
sub: "And counting",
icon: "👥",
},
{
value: rooms.toLocaleString(),
label: "Rooms built",
sub: "Waiting for you",
icon: "🏠",
},
].map((s) => ( ].map((s) => (
<div <div
key={s.label} key={s.label}
className="rounded-xl border p-4 text-center transition-all duration-200 hover:-translate-y-0.5" className="relative overflow-hidden rounded-xl border transition-all duration-300 hover:-translate-y-0.5 hover:shadow-lg group cursor-default"
style={{ style={{
background: background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))", "color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
@@ -217,49 +322,88 @@ export default async function Home() {
}} }}
> >
<div <div
className="text-xl md:text-2xl font-black tracking-tight" className="absolute -top-8 -right-8 w-20 h-20 rounded-full opacity-[0.05] group-hover:opacity-[0.1] transition-opacity duration-500"
style={{ style={{ background: "var(--color-primary)" }}
color: "var(--color-primary-readable, var(--color-primary))", />
}} <div className="relative p-5 text-center">
> <div
{s.value} className="text-3xl md:text-4xl font-black tracking-tight mb-0.5"
</div> style={{
<div color: "var(--color-primary-readable, var(--color-primary))",
className="text-xs font-bold uppercase mt-0.5 tracking-wider" }}
style={{ >
color: {s.value}
"var(--color-text-muted-readable, var(--color-text-muted))", </div>
}} <div
> className="text-xs font-extrabold uppercase tracking-widest"
{s.label} style={{ color: "var(--color-text-readable)" }}
>
{s.label}
</div>
<div
className="text-[10px] font-semibold mt-0.5"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
{s.sub}
</div>
</div> </div>
</div> </div>
))} ))}
</div> </div>
{/* ── Main content: News + Sidebar ── */} {/* ── 3. News + Sidebar ── */}
<div className="grid lg:grid-cols-3 gap-6"> <div className="grid lg:grid-cols-12 gap-6 animate-fade-in-up">
{/* News feed (left, 2/3) */} {/* Main feed */}
<div className="lg:col-span-2 space-y-5"> <div className="lg:col-span-8 space-y-5">
{featuredArticle && ( <div className="flex items-end justify-between mb-1">
<div>
<h2
className="text-2xl font-black tracking-tight"
style={{ color: "var(--color-text-readable)" }}
>
Latest news
</h2>
<p
className="text-sm mt-0.5"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
Stay up to date with {hotelName}
</p>
</div>
<Link <Link
href={`/news/${featuredArticle.slug}`} href="/news"
className="group block overflow-hidden rounded-2xl border transition-all duration-300 hover:-translate-y-0.5" className="hidden sm:inline-flex items-center gap-1.5 text-sm font-extrabold hover:underline shrink-0"
style={{
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
View all
</Link>
</div>
{featured && (
<Link
href={`/news/${featured.slug}`}
className="group relative block overflow-hidden rounded-xl border transition-all duration-500 hover:-translate-y-1 hover:shadow-xl"
style={{ style={{
textDecoration: "none", textDecoration: "none",
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor: borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)", "color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
}} }}
> >
<div className="relative h-48 md:h-56 overflow-hidden"> <div className="relative h-52 md:h-64 overflow-hidden">
{featuredArticle.image ? ( {featured.image ? (
<Image <Image
src={featuredArticle.image} src={featured.image}
alt="" alt=""
fill fill
className="object-cover group-hover:scale-105 transition-transform duration-500" className="object-cover transition-transform duration-700 group-hover:scale-105"
unoptimized unoptimized
/> />
) : ( ) : (
@@ -270,44 +414,55 @@ export default async function Home() {
}} }}
/> />
)} )}
<div className="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent" /> <div className="absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent" />
<div className="absolute bottom-4 left-4 right-4"> <div className="absolute bottom-0 left-0 right-0 p-5">
<h2 <div
className="text-xl md:text-2xl font-black text-white drop-shadow-lg" className="inline-block px-2.5 py-1 rounded-md text-[10px] font-bold uppercase tracking-wider mb-2"
style={{ textShadow: "0 2px 8px rgba(0,0,0,0.5)" }} style={{
background:
"color-mix(in srgb, var(--color-primary) 80%, transparent)",
color: "#fff",
}}
> >
{featuredArticle.title} Featured
</h2> </div>
<p className="text-xs font-semibold text-white/80 mt-1"> <h3
{formatDate(featuredArticle.createdAt, "date", "")} className="text-xl md:text-2xl font-black text-white drop-shadow-lg"
style={{ textShadow: "0 2px 12px rgba(0,0,0,0.5)" }}
>
{featured.title}
</h3>
<p className="text-xs font-semibold text-white/70 mt-1">
{formatDate(featured.createdAt, "date", "")}
</p> </p>
</div> </div>
</div> </div>
</Link> </Link>
)} )}
{remainingArticles.length > 0 && ( {rest.length > 0 && (
<div className="space-y-3"> <div className="space-y-3">
{remainingArticles.map((a) => ( {rest.map((a, i) => (
<Link <Link
key={a.slug} key={a.slug}
href={`/news/${a.slug}`} href={`/news/${a.slug}`}
className="group flex gap-4 items-start rounded-xl border p-3.5 transition-all duration-200 hover:-translate-y-0.5" className="group flex gap-4 items-start rounded-xl border p-3.5 transition-all duration-300 hover:-translate-y-0.5 hover:shadow-md"
style={{ style={{
textDecoration: "none", textDecoration: "none",
background: background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))", "color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor: borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)", "color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
animation: `fade-in-up 0.4s ease-out ${0.1 + i * 0.05}s both`,
}} }}
> >
<div className="relative w-16 h-16 shrink-0 rounded-lg overflow-hidden"> <div className="relative w-14 h-14 shrink-0 rounded-xl overflow-hidden ring-1 ring-white/5">
{a.image ? ( {a.image ? (
<Image <Image
src={a.image} src={a.image}
alt="" alt=""
fill fill
className="object-cover" className="object-cover transition-transform duration-500 group-hover:scale-110"
unoptimized unoptimized
/> />
) : ( ) : (
@@ -321,13 +476,13 @@ export default async function Home() {
</div> </div>
<div className="min-w-0 flex-1"> <div className="min-w-0 flex-1">
<h3 <h3
className="text-sm font-extrabold leading-snug" className="text-sm font-extrabold leading-snug group-hover:underline"
style={{ color: "var(--color-text-readable)" }} style={{ color: "var(--color-text-readable)" }}
> >
{a.title} {a.title}
</h3> </h3>
<p <p
className="text-xs font-semibold mt-1" className="text-[11px] font-semibold mt-1"
style={{ style={{
color: color:
"var(--color-text-muted-readable, var(--color-text-muted))", "var(--color-text-muted-readable, var(--color-text-muted))",
@@ -341,39 +496,41 @@ export default async function Home() {
</div> </div>
)} )}
<Link <div className="sm:hidden text-center">
href="/news" <Link
className="inline-flex items-center gap-1.5 text-sm font-extrabold hover:underline" href="/news"
style={{ className="inline-flex items-center gap-1.5 text-sm font-extrabold"
color: "var(--color-primary-readable, var(--color-primary))", style={{
}} color: "var(--color-primary-readable, var(--color-primary))",
> }}
Browse all articles → >
</Link> View all articles →
</Link>
</div>
</div> </div>
{/* Sidebar (right, 1/3) */} {/* Sidebar */}
<aside className="space-y-4"> <aside className="lg:col-span-4 space-y-4">
{/* Quick features */} {/* Quick actions */}
<div <div
className="rounded-xl border p-4" className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
style={{ style={{
background: background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))", "color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor: borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)", "color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}} }}
> >
<h3 <h3
className="text-xs font-extrabold uppercase tracking-wider mb-3" className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3"
style={{ style={{
color: color:
"var(--color-text-muted-readable, var(--color-text-muted))", "var(--color-text-muted-readable, var(--color-text-muted))",
}} }}
> >
Quick actions Navigate
</h3> </h3>
<div className="space-y-2"> <div className="space-y-0.5">
{[ {[
{ {
icon: "/assets/images/icons/navigation/me.png", icon: "/assets/images/icons/navigation/me.png",
@@ -399,51 +556,72 @@ export default async function Home() {
<Link <Link
key={item.label} key={item.label}
href={item.href} href={item.href}
className="flex items-center gap-2.5 rounded-lg px-3 py-2 text-sm font-bold transition-colors hover:underline" className="flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-bold transition-all duration-200 hover:underline group"
style={{ style={{
color: "var(--color-text-readable)", color: "var(--color-text-readable)",
textDecoration: "none", textDecoration: "none",
}} }}
> >
<Image <span
src={item.icon} className="relative shrink-0 w-7 h-7 rounded-lg flex items-center justify-center transition-transform duration-200 group-hover:scale-110"
alt="" style={{
width={20} background:
height={20} "color-mix(in srgb, var(--color-primary) 10%, transparent)",
unoptimized }}
className="shrink-0" >
/> <Image
src={item.icon}
alt=""
width={16}
height={16}
unoptimized
/>
</span>
{item.label} {item.label}
</Link> </Link>
))} ))}
</div> </div>
</div> </div>
{/* Recent users */} {/* Online grid */}
{recentUsers.length > 0 && ( {recentUsers.length > 0 && (
<div <div
className="rounded-xl border p-4" className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
style={{ style={{
background: background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))", "color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor: borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)", "color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}} }}
> >
<h3 <h3
className="text-xs font-extrabold uppercase tracking-wider mb-3" className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3 flex items-center gap-2"
style={{ style={{
color: color:
"var(--color-text-muted-readable, var(--color-text-muted))", "var(--color-text-muted-readable, var(--color-text-muted))",
}} }}
> >
<span className="relative flex h-2 w-2">
<span
className="animate-ping absolute inline-flex h-full w-full rounded-full"
style={{ background: "var(--color-success)" }}
/>
<span
className="relative inline-flex rounded-full h-2 w-2"
style={{ background: "var(--color-success)" }}
/>
</span>
Online now Online now
</h3> </h3>
<div className="grid grid-cols-3 gap-2"> <div className="grid grid-cols-3 gap-2.5">
{recentUsers.slice(0, 9).map((u) => ( {recentUsers.slice(0, 9).map((u) => (
<div <div
key={u.username} key={u.username}
className="flex flex-col items-center gap-0.5" className="flex flex-col items-center gap-1 rounded-lg p-2 transition-all duration-200 hover:scale-105 cursor-default"
style={{
background:
"color-mix(in srgb, var(--color-primary) 4%, transparent)",
}}
> >
<Image <Image
src={avatarImageUrl(imager, u.look, { src={avatarImageUrl(imager, u.look, {
@@ -452,40 +630,36 @@ export default async function Home() {
size: "s", size: "s",
})} })}
alt="" alt=""
width={36} width={32}
height={42} height={38}
className="rounded-md" className="rounded-md"
unoptimized unoptimized
/> />
<span <span
className="text-[10px] font-bold truncate w-full text-center leading-tight" className="text-[9px] font-bold truncate w-full text-center leading-tight"
style={{ color: "var(--color-text-readable)" }} style={{ color: "var(--color-text-readable)" }}
> >
{u.username} {u.username}
</span> </span>
<span
className="w-1.5 h-1.5 rounded-full"
style={{ background: "var(--color-success)" }}
/>
</div> </div>
))} ))}
</div> </div>
</div> </div>
)} )}
{/* Recent photos */} {/* Photos */}
{recentPhotos.length > 0 && ( {recentPhotos.length > 0 && (
<div <div
className="rounded-xl border p-4" className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
style={{ style={{
background: background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))", "color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor: borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)", "color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}} }}
> >
<h3 <h3
className="text-xs font-extrabold uppercase tracking-wider mb-3" className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3"
style={{ style={{
color: color:
"var(--color-text-muted-readable, var(--color-text-muted))", "var(--color-text-muted-readable, var(--color-text-muted))",
@@ -493,12 +667,12 @@ export default async function Home() {
> >
Recent photos Recent photos
</h3> </h3>
<div className="grid grid-cols-2 gap-2"> <div className="grid grid-cols-3 gap-2">
{recentPhotos.map((p) => ( {recentPhotos.map((p) => (
<Link <Link
key={p.id} key={p.id}
href="/photos" href="/photos"
className="block rounded-lg overflow-hidden aspect-square" className="block rounded-lg overflow-hidden aspect-square group"
style={{ textDecoration: "none" }} style={{ textDecoration: "none" }}
> >
<div className="relative w-full h-full"> <div className="relative w-full h-full">
@@ -506,63 +680,114 @@ export default async function Home() {
src={p.url} src={p.url}
alt="" alt=""
fill fill
className="object-cover hover:scale-105 transition-transform duration-300" className="object-cover transition-all duration-500 group-hover:scale-110 group-hover:brightness-110"
unoptimized unoptimized
/> />
<div
className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300"
style={{
background:
"linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%)",
}}
/>
</div> </div>
</Link> </Link>
))} ))}
</div> </div>
</div> </div>
)} )}
{/* Fun fact */}
<div
className="rounded-xl border p-4 text-center"
style={{
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)), color-mix(in srgb, var(--color-primary) 4%, var(--color-background)))`,
borderColor:
"color-mix(in srgb, var(--color-primary) 18%, transparent)",
}}
>
<Image
src="/assets/images/FrankwithBag.gif"
alt="Frank"
width={60}
height={80}
className="object-contain mx-auto mb-2 opacity-60"
unoptimized
/>
<p
className="text-xs font-bold leading-relaxed"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
"See you in the lobby!"
</p>
</div>
</aside> </aside>
</div> </div>
{/* ── CTA ── */} {/* ── 4. CTA ── */}
<section <section className="gradient-border">
className="rounded-2xl border text-center px-6 py-8" <div
style={{ className="relative overflow-hidden rounded-[1.75rem] px-8 py-12 md:py-14 text-center"
borderColor:
"color-mix(in srgb, var(--color-primary) 25%, transparent)",
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)), color-mix(in srgb, var(--color-primary) 4%, var(--color-background)))`,
}}
>
<h2
className="text-2xl font-black tracking-tight mb-2"
style={{ color: "var(--color-text-readable)" }}
>
See you inside!
</h2>
<p
className="text-sm mb-5 max-w-md mx-auto"
style={{ style={{
color: "var(--color-text-muted-readable, var(--color-text-muted))", background: `linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 16%, var(--color-surface)) 0%, var(--color-surface) 60%)`,
}} }}
> >
{hotelName} is free, forever. Create your account and start your <div
adventure today. className="absolute inset-0 opacity-[0.05]"
</p> style={{
<Link backgroundImage:
href="/register" "radial-gradient(circle at 50% 50%, var(--color-primary) 0%, transparent 60%)",
className="inline-flex items-center gap-2 font-extrabold text-sm px-7 py-3 rounded-xl transition-all duration-200 hover:scale-105 active:scale-95" }}
style={{
background: "var(--color-primary-readable, var(--color-primary))",
color:
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
boxShadow:
"0 4px 16px color-mix(in srgb, var(--color-primary) 35%, transparent)",
}}
>
<Image
src="/assets/images/EnterHubbly.png"
alt=""
width={22}
height={22}
unoptimized
className="inline-block"
/> />
Join for free <div className="relative max-w-lg mx-auto">
</Link> <h2
className="text-3xl md:text-4xl font-black tracking-tight mb-3"
style={{ color: "var(--color-text-readable)" }}
>
The doors are open
</h2>
<p
className="text-sm md:text-base leading-relaxed mb-7 max-w-sm mx-auto"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
{hotelName} is free, forever. Your first room is waiting — come
join us!
</p>
<Link
href="/register"
className="group relative inline-flex items-center gap-2.5 font-extrabold text-sm px-8 py-3.5 rounded-xl transition-all duration-300 hover:scale-105 active:scale-95 overflow-hidden animate-pulse-glow"
style={{
background:
"var(--color-primary-readable, var(--color-primary))",
color:
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
}}
>
<span
className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300"
style={{
background:
"linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%)",
}}
/>
<Image
src="/assets/images/EnterHubbly.png"
alt=""
width={20}
height={20}
unoptimized
className="relative"
/>
<span className="relative">Claim your room</span>
</Link>
</div>
</div>
</section> </section>
</div> </div>
); );
+85 -58
View File
@@ -36,84 +36,111 @@ export default async function RegisterPage() {
]); ]);
return ( return (
<div className="flex flex-col lg:flex-row gap-8"> <div className="flex flex-col lg:flex-row gap-8 min-h-[600px] animate-fade-in-up">
{/* ── Left panel: Frank + avatars ── */} {/* ── Left: Reception ── */}
<div className="lg:w-80 shrink-0 space-y-4"> <div className="lg:w-80 shrink-0 space-y-4">
<div <div className="gradient-border">
className="rounded-2xl border p-6 text-center" <div
style={{ className="relative overflow-hidden rounded-[1.75rem] p-6 text-center animate-gradient"
borderColor:
"color-mix(in srgb, var(--color-primary) 25%, transparent)",
background: `linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 16%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-primary) 5%, var(--color-background)) 100%)`,
}}
>
<Image
src="/assets/images/FrankwithBag.gif"
alt="Frank"
width={140}
height={180}
className="object-contain mx-auto drop-shadow-xl"
unoptimized
priority
/>
<h1
className="text-xl font-black mt-3"
style={{ color: "var(--color-text-readable)" }}
>
Join{" "}
<span
style={{
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
{hotelName}
</span>
</h1>
<p
className="text-xs mt-1 max-w-[200px] mx-auto leading-relaxed"
style={{ style={{
color: background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 20%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-primary) 6%, var(--color-background)) 100%)`,
"var(--color-text-muted-readable, var(--color-text-muted))",
}} }}
> >
{t("tagline")} <div
</p> className="absolute inset-0 opacity-[0.04]"
<div style={{
className="inline-flex items-center gap-1.5 mt-3 text-xs font-bold" backgroundImage:
style={{ color: "var(--color-success)" }} "radial-gradient(circle at 50% 30%, white 0%, transparent 60%)",
> }}
<span
className="w-2 h-2 rounded-full animate-pulse"
style={{ background: "var(--color-success)" }}
/> />
{online.toLocaleString()} online now <div
className="absolute top-0 left-0 right-0 h-px"
style={{
background:
"linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 30%, transparent), transparent)",
}}
/>
<div className="relative">
<Image
src="/assets/images/FrankwithBag.gif"
alt="Frank"
width={130}
height={170}
className="object-contain mx-auto drop-shadow-2xl animate-float"
unoptimized
priority
/>
<div
className="inline-flex items-center gap-2 px-3.5 py-1 rounded-full text-[10px] font-bold uppercase tracking-[0.12em] mt-4 mb-3"
style={{
background:
"color-mix(in srgb, var(--color-primary) 16%, transparent)",
color: "var(--color-primary-readable, var(--color-primary))",
border:
"1px solid color-mix(in srgb, var(--color-primary) 18%, transparent)",
}}
>
<span
className="w-1.5 h-1.5 rounded-full animate-pulse"
style={{ background: "var(--color-success)" }}
/>
{online.toLocaleString()} online
</div>
<h1
className="text-xl font-black"
style={{ color: "var(--color-text-readable)" }}
>
Join{" "}
<span
style={{
color:
"var(--color-primary-readable, var(--color-primary))",
}}
>
{hotelName}
</span>
</h1>
<p
className="text-xs mt-1 max-w-[200px] mx-auto leading-relaxed"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
{t("tagline")}
</p>
</div>
</div> </div>
</div> </div>
{recentUsers.length > 0 && ( {recentUsers.length > 0 && (
<div <div
className="rounded-xl border p-4" className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
style={{ style={{
background: background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))", "color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor: borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)", "color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}} }}
> >
<h3 <h3
className="text-xs font-extrabold uppercase tracking-wider mb-2.5" className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-2.5"
style={{ style={{
color: color:
"var(--color-text-muted-readable, var(--color-text-muted))", "var(--color-text-muted-readable, var(--color-text-muted))",
}} }}
> >
Who's online Who&apos;s online
</h3> </h3>
<div className="grid grid-cols-4 gap-1.5"> <div className="grid grid-cols-4 gap-1.5">
{recentUsers.map((u) => ( {recentUsers.map((u) => (
<div <div
key={u.username} key={u.username}
className="flex flex-col items-center gap-0.5" className="flex flex-col items-center gap-0.5 rounded-lg p-1.5 transition-all duration-200 hover:scale-105 cursor-default"
style={{
background:
"color-mix(in srgb, var(--color-primary) 4%, transparent)",
}}
> >
<Image <Image
src={avatarImageUrl(imager, u.look, { src={avatarImageUrl(imager, u.look, {
@@ -122,13 +149,13 @@ export default async function RegisterPage() {
size: "s", size: "s",
})} })}
alt="" alt=""
width={30} width={28}
height={36} height={34}
className="rounded-md" className="rounded-md"
unoptimized unoptimized
/> />
<span <span
className="text-[9px] font-bold truncate w-full text-center leading-tight" className="text-[8px] font-bold truncate w-full text-center leading-tight"
style={{ color: "var(--color-text-readable)" }} style={{ color: "var(--color-text-readable)" }}
> >
{u.username} {u.username}
@@ -158,11 +185,11 @@ export default async function RegisterPage() {
</p> </p>
</div> </div>
{/* ── Right: Registration form ── */} {/* ── Right: Registration ── */}
<div className="flex-1"> <div className="flex-1">
<div className="mb-5"> <div className="mb-6 text-center lg:text-left">
<h2 <h2
className="text-xl font-black tracking-tight" className="text-2xl font-black tracking-tight"
style={{ color: "var(--color-text-readable)" }} style={{ color: "var(--color-text-readable)" }}
> >
Create your account Create your account
@@ -174,7 +201,7 @@ export default async function RegisterPage() {
"var(--color-text-muted-readable, var(--color-text-muted))", "var(--color-text-muted-readable, var(--color-text-muted))",
}} }}
> >
Free and takes less than a minute Free and takes less than a minute — no email required
</p> </p>
</div> </div>
<RegisterForm <RegisterForm
+288 -49
View File
@@ -5,17 +5,20 @@
@custom-variant dark (&:where(.dark, .dark *)); @custom-variant dark (&:where(.dark, .dark *));
@theme { @theme {
--font-sans: var(--font-nunito), "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --font-sans:
--breakpoint-sm: 40rem; var(--font-nunito), "Nunito", ui-sans-serif, system-ui, -apple-system,
--breakpoint-md: 48rem; "Segoe UI", sans-serif;
--breakpoint-lg: 64rem; --breakpoint-sm: 40rem;
--breakpoint-xl: 80rem; --breakpoint-md: 48rem;
--breakpoint-2xl: 96rem; --breakpoint-lg: 64rem;
--radius-sm: 8px; --breakpoint-xl: 80rem;
--radius-md: 12px; --breakpoint-2xl: 96rem;
--radius-lg: 16px; --radius-sm: 8px;
--shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04); --radius-md: 12px;
--shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06); --radius-lg: 16px;
--shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
--shadow-card-hover:
0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
} }
/* Default theme variables. ThemeVars may override these at runtime. */ /* Default theme variables. ThemeVars may override these at runtime. */
@@ -259,15 +262,14 @@ summary,
/* ── Site background: Habbo sky ── */ /* ── Site background: Habbo sky ── */
.site-bg { .site-bg {
background: background: linear-gradient(
linear-gradient( 180deg,
180deg, color-mix(in srgb, var(--color-primary) 4%, #b3d9f7) 0%,
color-mix(in srgb, var(--color-primary) 4%, #b3d9f7) 0%, color-mix(in srgb, var(--color-primary) 6%, #d4e8fa) 25%,
color-mix(in srgb, var(--color-primary) 6%, #d4e8fa) 25%, color-mix(in srgb, var(--color-primary) 8%, #e8f0f8) 50%,
color-mix(in srgb, var(--color-primary) 8%, #e8f0f8) 50%, color-mix(in srgb, var(--color-primary) 10%, #f0e8d8) 75%,
color-mix(in srgb, var(--color-primary) 10%, #f0e8d8) 75%, color-mix(in srgb, var(--color-primary) 14%, var(--color-background)) 100%
color-mix(in srgb, var(--color-primary) 14%, var(--color-background)) 100% );
);
background-attachment: fixed; background-attachment: fixed;
position: relative; position: relative;
} }
@@ -279,13 +281,41 @@ summary,
pointer-events: none; pointer-events: none;
z-index: 0; z-index: 0;
background: background:
radial-gradient(ellipse 240px 60px at 15% 8%, rgba(255,255,255,0.5) 0%, transparent 100%), radial-gradient(
radial-gradient(ellipse 320px 70px at 35% 12%, rgba(255,255,255,0.4) 0%, transparent 100%), ellipse 240px 60px at 15% 8%,
radial-gradient(ellipse 200px 50px at 55% 6%, rgba(255,255,255,0.45) 0%, transparent 100%), rgba(255, 255, 255, 0.5) 0%,
radial-gradient(ellipse 280px 65px at 75% 10%, rgba(255,255,255,0.5) 0%, transparent 100%), transparent 100%
radial-gradient(ellipse 180px 45px at 90% 5%, rgba(255,255,255,0.35) 0%, transparent 100%), ),
radial-gradient(ellipse 260px 55px at 50% 18%, rgba(255,255,255,0.25) 0%, transparent 100%), radial-gradient(
radial-gradient(ellipse 200px 40px at 20% 22%, rgba(255,255,255,0.2) 0%, transparent 100%); ellipse 320px 70px at 35% 12%,
rgba(255, 255, 255, 0.4) 0%,
transparent 100%
),
radial-gradient(
ellipse 200px 50px at 55% 6%,
rgba(255, 255, 255, 0.45) 0%,
transparent 100%
),
radial-gradient(
ellipse 280px 65px at 75% 10%,
rgba(255, 255, 255, 0.5) 0%,
transparent 100%
),
radial-gradient(
ellipse 180px 45px at 90% 5%,
rgba(255, 255, 255, 0.35) 0%,
transparent 100%
),
radial-gradient(
ellipse 260px 55px at 50% 18%,
rgba(255, 255, 255, 0.25) 0%,
transparent 100%
),
radial-gradient(
ellipse 200px 40px at 20% 22%,
rgba(255, 255, 255, 0.2) 0%,
transparent 100%
);
} }
/* Subtle primary glow */ /* Subtle primary glow */
.site-bg::after { .site-bg::after {
@@ -295,8 +325,16 @@ summary,
pointer-events: none; pointer-events: none;
z-index: 0; z-index: 0;
background: background:
radial-gradient(ellipse 600px 400px at 20% 0%, color-mix(in srgb, var(--color-primary) 10%, transparent) 0%, transparent 100%), radial-gradient(
radial-gradient(ellipse 500px 300px at 80% 0%, color-mix(in srgb, var(--color-primary) 6%, transparent) 0%, transparent 100%); ellipse 600px 400px at 20% 0%,
color-mix(in srgb, var(--color-primary) 10%, transparent) 0%,
transparent 100%
),
radial-gradient(
ellipse 500px 300px at 80% 0%,
color-mix(in srgb, var(--color-primary) 6%, transparent) 0%,
transparent 100%
);
} }
/* Ensure all content sits above the cloud/glow layers */ /* Ensure all content sits above the cloud/glow layers */
.site-bg > * { .site-bg > * {
@@ -305,31 +343,66 @@ summary,
} }
html.dark .site-bg { html.dark .site-bg {
background: background: linear-gradient(
linear-gradient( 180deg,
180deg, color-mix(in srgb, var(--color-primary) 6%, #0a0e1a) 0%,
color-mix(in srgb, var(--color-primary) 6%, #0a0e1a) 0%, color-mix(in srgb, var(--color-primary) 8%, #10152a) 30%,
color-mix(in srgb, var(--color-primary) 8%, #10152a) 30%, color-mix(in srgb, var(--color-primary) 10%, #161c30) 60%,
color-mix(in srgb, var(--color-primary) 10%, #161c30) 60%, color-mix(in srgb, var(--color-primary) 12%, #0f141f) 100%
color-mix(in srgb, var(--color-primary) 12%, #0f141f) 100% );
);
background-attachment: fixed; background-attachment: fixed;
} }
html.dark .site-bg::before { html.dark .site-bg::before {
opacity: 0.08; opacity: 0.08;
background: background:
radial-gradient(ellipse 240px 60px at 15% 8%, rgba(200,210,255,0.5) 0%, transparent 100%), radial-gradient(
radial-gradient(ellipse 320px 70px at 35% 12%, rgba(200,210,255,0.4) 0%, transparent 100%), ellipse 240px 60px at 15% 8%,
radial-gradient(ellipse 200px 50px at 55% 6%, rgba(200,210,255,0.45) 0%, transparent 100%), rgba(200, 210, 255, 0.5) 0%,
radial-gradient(ellipse 280px 65px at 75% 10%, rgba(200,210,255,0.5) 0%, transparent 100%), transparent 100%
radial-gradient(ellipse 180px 45px at 90% 5%, rgba(200,210,255,0.35) 0%, transparent 100%), ),
radial-gradient(ellipse 260px 55px at 50% 18%, rgba(200,210,255,0.25) 0%, transparent 100%), radial-gradient(
radial-gradient(ellipse 200px 40px at 20% 22%, rgba(200,210,255,0.2) 0%, transparent 100%); ellipse 320px 70px at 35% 12%,
rgba(200, 210, 255, 0.4) 0%,
transparent 100%
),
radial-gradient(
ellipse 200px 50px at 55% 6%,
rgba(200, 210, 255, 0.45) 0%,
transparent 100%
),
radial-gradient(
ellipse 280px 65px at 75% 10%,
rgba(200, 210, 255, 0.5) 0%,
transparent 100%
),
radial-gradient(
ellipse 180px 45px at 90% 5%,
rgba(200, 210, 255, 0.35) 0%,
transparent 100%
),
radial-gradient(
ellipse 260px 55px at 50% 18%,
rgba(200, 210, 255, 0.25) 0%,
transparent 100%
),
radial-gradient(
ellipse 200px 40px at 20% 22%,
rgba(200, 210, 255, 0.2) 0%,
transparent 100%
);
} }
html.dark .site-bg::after { html.dark .site-bg::after {
background: background:
radial-gradient(ellipse 600px 400px at 20% 0%, color-mix(in srgb, var(--color-primary) 14%, transparent) 0%, transparent 100%), radial-gradient(
radial-gradient(ellipse 500px 300px at 80% 0%, color-mix(in srgb, var(--color-primary) 8%, transparent) 0%, transparent 100%); ellipse 600px 400px at 20% 0%,
color-mix(in srgb, var(--color-primary) 14%, transparent) 0%,
transparent 100%
),
radial-gradient(
ellipse 500px 300px at 80% 0%,
color-mix(in srgb, var(--color-primary) 8%, transparent) 0%,
transparent 100%
);
} }
/* Admin must not inherit the public wallpaper — solid HK canvas only. */ /* Admin must not inherit the public wallpaper — solid HK canvas only. */
@@ -1346,7 +1419,8 @@ body:has([data-admin]) .btn-outline:hover {
color: var(--admin-text); color: var(--admin-text);
} }
/* Override public html.dark input hardcodes inside admin. */ /* Override public html.dark input hardcodes inside admin. */
html.dark body:has([data-admin]) html.dark
body:has([data-admin])
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not( input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
[type="file"] [type="file"]
):not([type="color"]), ):not([type="color"]),
@@ -1455,7 +1529,8 @@ details[open] > summary .details-open\:rotate-180 {
text-align: center; text-align: center;
padding: 2.25rem 1.75rem 2rem; padding: 2.25rem 1.75rem 2rem;
border-radius: 1.25rem; border-radius: 1.25rem;
border: 1px solid color-mix(in srgb, var(--color-primary) 28%, var(--border-subtle)); border: 1px solid
color-mix(in srgb, var(--color-primary) 28%, var(--border-subtle));
background: linear-gradient( background: linear-gradient(
165deg, 165deg,
color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)), color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)),
@@ -1475,7 +1550,8 @@ details[open] > summary .details-open\:rotate-180 {
letter-spacing: 0.06em; letter-spacing: 0.06em;
line-height: 1; line-height: 1;
color: var(--color-primary-readable, var(--color-primary)); color: var(--color-primary-readable, var(--color-primary));
text-shadow: 0 0 36px color-mix(in srgb, var(--color-primary) 45%, transparent); text-shadow: 0 0 36px
color-mix(in srgb, var(--color-primary) 45%, transparent);
} }
.error-screen-title { .error-screen-title {
@@ -1537,3 +1613,166 @@ details[open] > summary .details-open\:rotate-180 {
animation: none; animation: none;
} }
} }
/* ── Premium effects ── */
@keyframes float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-8px);
}
}
@keyframes shimmer-glow {
0% {
opacity: 0.4;
}
50% {
opacity: 1;
}
100% {
opacity: 0.4;
}
}
@keyframes gradient-shift {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
@keyframes fade-in-up {
from {
opacity: 0;
transform: translateY(16px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes scale-in {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes pulse-glow {
0%,
100% {
box-shadow: 0 0 8px
color-mix(in srgb, var(--color-primary) 25%, transparent);
}
50% {
box-shadow: 0 0 24px
color-mix(in srgb, var(--color-primary) 45%, transparent);
}
}
.animate-float {
animation: float 4s ease-in-out infinite;
}
.animate-shimmer {
animation: shimmer-glow 2.5s ease-in-out infinite;
}
.animate-gradient {
background-size: 200% 200%;
animation: gradient-shift 8s ease infinite;
}
.animate-fade-in-up {
animation: fade-in-up 0.6s ease-out both;
}
.animate-scale-in {
animation: scale-in 0.4s ease-out both;
}
.animate-pulse-glow {
animation: pulse-glow 2s ease-in-out infinite;
}
/* Glass morphism */
.glass {
background: color-mix(in srgb, var(--color-surface) 70%, transparent);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid color-mix(in srgb, var(--color-text-muted) 10%, transparent);
}
.glass-strong {
background: color-mix(in srgb, var(--color-surface) 85%, transparent);
backdrop-filter: blur(32px);
-webkit-backdrop-filter: blur(32px);
border: 1px solid color-mix(in srgb, var(--color-text-muted) 12%, transparent);
}
/* Premium card with depth */
.card-premium {
background: var(--color-surface);
border: 1px solid color-mix(in srgb, var(--color-text-muted) 10%, transparent);
border-radius: var(--radius-lg);
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.04),
0 4px 12px rgba(0, 0, 0, 0.04),
0 12px 32px rgba(0, 0, 0, 0.04);
transition:
transform 0.25s ease,
box-shadow 0.25s ease;
}
.card-premium:hover {
transform: translateY(-3px);
box-shadow:
0 1px 3px rgba(0, 0, 0, 0.04),
0 6px 16px rgba(0, 0, 0, 0.06),
0 16px 40px rgba(0, 0, 0, 0.08);
}
/* Gradient border wrapper */
.gradient-border {
position: relative;
border-radius: var(--radius-lg);
background: linear-gradient(
135deg,
var(--color-primary),
color-mix(in srgb, var(--color-primary) 50%, var(--color-accent))
);
padding: 1px;
}
.gradient-border > * {
border-radius: calc(var(--radius-lg) - 1px);
}
/* Staggered children animation */
.stagger-children > * {
animation: fade-in-up 0.5s ease-out both;
}
.stagger-children > *:nth-child(1) {
animation-delay: 0.05s;
}
.stagger-children > *:nth-child(2) {
animation-delay: 0.1s;
}
.stagger-children > *:nth-child(3) {
animation-delay: 0.15s;
}
.stagger-children > *:nth-child(4) {
animation-delay: 0.2s;
}
.stagger-children > *:nth-child(5) {
animation-delay: 0.25s;
}
.stagger-children > *:nth-child(6) {
animation-delay: 0.3s;
}
.stagger-children > *:nth-child(7) {
animation-delay: 0.35s;
}
.stagger-children > *:nth-child(8) {
animation-delay: 0.4s;
}