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_rooms", 30_000, () => prisma.rooms.count()).catch(() => 0),
prisma.websiteArticles
.findMany({ orderBy: { createdAt: "desc" }, take: 5 })
.findMany({ orderBy: { createdAt: "desc" }, take: 6 })
.catch(() => []),
prisma.user
.findMany({
@@ -37,7 +37,7 @@ async function getHotelData() {
})
.catch(() => []),
prisma.cameraWeb
.findMany({ orderBy: { timestamp: "desc" }, take: 4 })
.findMany({ orderBy: { timestamp: "desc" }, take: 6 })
.catch(() => []),
]);
@@ -65,150 +65,255 @@ export default async function Home() {
recentUsers,
recentPhotos,
} = await getHotelData();
const featuredArticle = articles[0];
const remainingArticles = articles.slice(1, 5);
const featured = articles[0];
const rest = articles.slice(1, 5);
return (
<div className="flex flex-col gap-8 pb-12">
{/* ── Hero ── */}
<section
className="relative overflow-hidden rounded-2xl border"
style={{
borderColor:
"color-mix(in srgb, var(--color-primary) 30%, transparent)",
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%)`,
}}
>
<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 className="flex flex-col gap-12 pb-16 stagger-children">
{/* ── 1. Cinematic Hero ── */}
<section className="relative overflow-hidden rounded-[1.75rem] animate-fade-in-up">
<div className="gradient-border">
<div
className="relative overflow-hidden rounded-[1.75rem] animate-gradient"
style={{
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="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={{
background:
"color-mix(in srgb, var(--color-primary) 14%, transparent)",
color: "var(--color-primary-readable, var(--color-primary))",
"linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 40%, transparent), transparent)",
}}
>
<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">
{recentUsers.slice(0, 4).map((u) => (
<div key={u.username} className="flex items-center gap-1.5">
<Image
src={avatarImageUrl(imager, u.look, {
headOnly: true,
direction: 2,
size: "s",
})}
alt=""
width={32}
height={38}
className="rounded-md"
unoptimized
/>
<span
className="text-xs font-bold truncate max-w-[80px]"
style={{ color: "var(--color-text-readable)" }}
>
{u.username}
<div className="relative grid lg:grid-cols-5 gap-8 px-8 py-10 md:px-12 md:py-14 items-center">
<div className="lg:col-span-3 text-center lg:text-left">
<div
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"
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) 20%, transparent)",
}}
>
<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.toLocaleString()} guests online
</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>
</section>
{/* ── Stats bar ── */}
<div className="grid grid-cols-3 gap-3">
{/* ── 2. Stats ── */}
<div className="grid grid-cols-3 gap-4 stagger-children">
{[
{ value: online.toLocaleString(), label: "Guests online" },
{ value: users.toLocaleString(), label: "Total citizens" },
{ value: rooms.toLocaleString(), label: "Rooms built" },
{
value: online.toLocaleString(),
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) => (
<div
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={{
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
@@ -217,49 +322,88 @@ export default async function Home() {
}}
>
<div
className="text-xl md:text-2xl font-black tracking-tight"
style={{
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
{s.value}
</div>
<div
className="text-xs font-bold uppercase mt-0.5 tracking-wider"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
{s.label}
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={{ background: "var(--color-primary)" }}
/>
<div className="relative p-5 text-center">
<div
className="text-3xl md:text-4xl font-black tracking-tight mb-0.5"
style={{
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
{s.value}
</div>
<div
className="text-xs font-extrabold uppercase tracking-widest"
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>
{/* ── Main content: News + Sidebar ── */}
<div className="grid lg:grid-cols-3 gap-6">
{/* News feed (left, 2/3) */}
<div className="lg:col-span-2 space-y-5">
{featuredArticle && (
{/* ── 3. News + Sidebar ── */}
<div className="grid lg:grid-cols-12 gap-6 animate-fade-in-up">
{/* Main feed */}
<div className="lg:col-span-8 space-y-5">
<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
href={`/news/${featuredArticle.slug}`}
className="group block overflow-hidden rounded-2xl border transition-all duration-300 hover:-translate-y-0.5"
href="/news"
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={{
textDecoration: "none",
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
}}
>
<div className="relative h-48 md:h-56 overflow-hidden">
{featuredArticle.image ? (
<div className="relative h-52 md:h-64 overflow-hidden">
{featured.image ? (
<Image
src={featuredArticle.image}
src={featured.image}
alt=""
fill
className="object-cover group-hover:scale-105 transition-transform duration-500"
className="object-cover transition-transform duration-700 group-hover:scale-105"
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 bottom-4 left-4 right-4">
<h2
className="text-xl md:text-2xl font-black text-white drop-shadow-lg"
style={{ textShadow: "0 2px 8px rgba(0,0,0,0.5)" }}
<div className="absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent" />
<div className="absolute bottom-0 left-0 right-0 p-5">
<div
className="inline-block px-2.5 py-1 rounded-md text-[10px] font-bold uppercase tracking-wider mb-2"
style={{
background:
"color-mix(in srgb, var(--color-primary) 80%, transparent)",
color: "#fff",
}}
>
{featuredArticle.title}
</h2>
<p className="text-xs font-semibold text-white/80 mt-1">
{formatDate(featuredArticle.createdAt, "date", "")}
Featured
</div>
<h3
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>
</div>
</div>
</Link>
)}
{remainingArticles.length > 0 && (
{rest.length > 0 && (
<div className="space-y-3">
{remainingArticles.map((a) => (
{rest.map((a, i) => (
<Link
key={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={{
textDecoration: "none",
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
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 ? (
<Image
src={a.image}
alt=""
fill
className="object-cover"
className="object-cover transition-transform duration-500 group-hover:scale-110"
unoptimized
/>
) : (
@@ -321,13 +476,13 @@ export default async function Home() {
</div>
<div className="min-w-0 flex-1">
<h3
className="text-sm font-extrabold leading-snug"
className="text-sm font-extrabold leading-snug group-hover:underline"
style={{ color: "var(--color-text-readable)" }}
>
{a.title}
</h3>
<p
className="text-xs font-semibold mt-1"
className="text-[11px] font-semibold mt-1"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
@@ -341,39 +496,41 @@ export default async function Home() {
</div>
)}
<Link
href="/news"
className="inline-flex items-center gap-1.5 text-sm font-extrabold hover:underline"
style={{
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
Browse all articles →
</Link>
<div className="sm:hidden text-center">
<Link
href="/news"
className="inline-flex items-center gap-1.5 text-sm font-extrabold"
style={{
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
View all articles →
</Link>
</div>
</div>
{/* Sidebar (right, 1/3) */}
<aside className="space-y-4">
{/* Quick features */}
{/* Sidebar */}
<aside className="lg:col-span-4 space-y-4">
{/* Quick actions */}
<div
className="rounded-xl border p-4"
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
style={{
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}}
>
<h3
className="text-xs font-extrabold uppercase tracking-wider mb-3"
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
Quick actions
Navigate
</h3>
<div className="space-y-2">
<div className="space-y-0.5">
{[
{
icon: "/assets/images/icons/navigation/me.png",
@@ -399,51 +556,72 @@ export default async function Home() {
<Link
key={item.label}
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={{
color: "var(--color-text-readable)",
textDecoration: "none",
}}
>
<Image
src={item.icon}
alt=""
width={20}
height={20}
unoptimized
className="shrink-0"
/>
<span
className="relative shrink-0 w-7 h-7 rounded-lg flex items-center justify-center transition-transform duration-200 group-hover:scale-110"
style={{
background:
"color-mix(in srgb, var(--color-primary) 10%, transparent)",
}}
>
<Image
src={item.icon}
alt=""
width={16}
height={16}
unoptimized
/>
</span>
{item.label}
</Link>
))}
</div>
</div>
{/* Recent users */}
{/* Online grid */}
{recentUsers.length > 0 && (
<div
className="rounded-xl border p-4"
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
style={{
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}}
>
<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={{
color:
"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
</h3>
<div className="grid grid-cols-3 gap-2">
<div className="grid grid-cols-3 gap-2.5">
{recentUsers.slice(0, 9).map((u) => (
<div
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
src={avatarImageUrl(imager, u.look, {
@@ -452,40 +630,36 @@ export default async function Home() {
size: "s",
})}
alt=""
width={36}
height={42}
width={32}
height={38}
className="rounded-md"
unoptimized
/>
<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)" }}
>
{u.username}
</span>
<span
className="w-1.5 h-1.5 rounded-full"
style={{ background: "var(--color-success)" }}
/>
</div>
))}
</div>
</div>
)}
{/* Recent photos */}
{/* Photos */}
{recentPhotos.length > 0 && (
<div
className="rounded-xl border p-4"
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
style={{
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}}
>
<h3
className="text-xs font-extrabold uppercase tracking-wider mb-3"
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
@@ -493,12 +667,12 @@ export default async function Home() {
>
Recent photos
</h3>
<div className="grid grid-cols-2 gap-2">
<div className="grid grid-cols-3 gap-2">
{recentPhotos.map((p) => (
<Link
key={p.id}
href="/photos"
className="block rounded-lg overflow-hidden aspect-square"
className="block rounded-lg overflow-hidden aspect-square group"
style={{ textDecoration: "none" }}
>
<div className="relative w-full h-full">
@@ -506,63 +680,114 @@ export default async function Home() {
src={p.url}
alt=""
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
/>
<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>
</Link>
))}
</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>
</div>
{/* ── CTA ── */}
<section
className="rounded-2xl border text-center px-6 py-8"
style={{
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"
{/* ── 4. CTA ── */}
<section className="gradient-border">
<div
className="relative overflow-hidden rounded-[1.75rem] px-8 py-12 md:py-14 text-center"
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
adventure today.
</p>
<Link
href="/register"
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"
<div
className="absolute inset-0 opacity-[0.05]"
style={{
backgroundImage:
"radial-gradient(circle at 50% 50%, var(--color-primary) 0%, transparent 60%)",
}}
/>
Join for free
</Link>
<div className="relative max-w-lg mx-auto">
<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>
</div>
);
+85 -58
View File
@@ -36,84 +36,111 @@ export default async function RegisterPage() {
]);
return (
<div className="flex flex-col lg:flex-row gap-8">
{/* ── Left panel: Frank + avatars ── */}
<div className="flex flex-col lg:flex-row gap-8 min-h-[600px] animate-fade-in-up">
{/* ── Left: Reception ── */}
<div className="lg:w-80 shrink-0 space-y-4">
<div
className="rounded-2xl border p-6 text-center"
style={{
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"
<div className="gradient-border">
<div
className="relative overflow-hidden rounded-[1.75rem] p-6 text-center animate-gradient"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
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%)`,
}}
>
{t("tagline")}
</p>
<div
className="inline-flex items-center gap-1.5 mt-3 text-xs font-bold"
style={{ color: "var(--color-success)" }}
>
<span
className="w-2 h-2 rounded-full animate-pulse"
style={{ background: "var(--color-success)" }}
<div
className="absolute inset-0 opacity-[0.04]"
style={{
backgroundImage:
"radial-gradient(circle at 50% 30%, white 0%, transparent 60%)",
}}
/>
{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>
{recentUsers.length > 0 && (
<div
className="rounded-xl border p-4"
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
style={{
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}}
>
<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={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
Who's online
Who&apos;s online
</h3>
<div className="grid grid-cols-4 gap-1.5">
{recentUsers.map((u) => (
<div
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
src={avatarImageUrl(imager, u.look, {
@@ -122,13 +149,13 @@ export default async function RegisterPage() {
size: "s",
})}
alt=""
width={30}
height={36}
width={28}
height={34}
className="rounded-md"
unoptimized
/>
<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)" }}
>
{u.username}
@@ -158,11 +185,11 @@ export default async function RegisterPage() {
</p>
</div>
{/* ── Right: Registration form ── */}
{/* ── Right: Registration ── */}
<div className="flex-1">
<div className="mb-5">
<div className="mb-6 text-center lg:text-left">
<h2
className="text-xl font-black tracking-tight"
className="text-2xl font-black tracking-tight"
style={{ color: "var(--color-text-readable)" }}
>
Create your account
@@ -174,7 +201,7 @@ export default async function RegisterPage() {
"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>
</div>
<RegisterForm
+288 -49
View File
@@ -5,17 +5,20 @@
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--font-sans: var(--font-nunito), "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
--breakpoint-sm: 40rem;
--breakpoint-md: 48rem;
--breakpoint-lg: 64rem;
--breakpoint-xl: 80rem;
--breakpoint-2xl: 96rem;
--radius-sm: 8px;
--radius-md: 12px;
--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);
--font-sans:
var(--font-nunito), "Nunito", ui-sans-serif, system-ui, -apple-system,
"Segoe UI", sans-serif;
--breakpoint-sm: 40rem;
--breakpoint-md: 48rem;
--breakpoint-lg: 64rem;
--breakpoint-xl: 80rem;
--breakpoint-2xl: 96rem;
--radius-sm: 8px;
--radius-md: 12px;
--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. */
@@ -259,15 +262,14 @@ summary,
/* ── Site background: Habbo sky ── */
.site-bg {
background:
linear-gradient(
180deg,
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) 8%, #e8f0f8) 50%,
color-mix(in srgb, var(--color-primary) 10%, #f0e8d8) 75%,
color-mix(in srgb, var(--color-primary) 14%, var(--color-background)) 100%
);
background: linear-gradient(
180deg,
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) 8%, #e8f0f8) 50%,
color-mix(in srgb, var(--color-primary) 10%, #f0e8d8) 75%,
color-mix(in srgb, var(--color-primary) 14%, var(--color-background)) 100%
);
background-attachment: fixed;
position: relative;
}
@@ -279,13 +281,41 @@ summary,
pointer-events: none;
z-index: 0;
background:
radial-gradient(ellipse 240px 60px at 15% 8%, rgba(255,255,255,0.5) 0%, transparent 100%),
radial-gradient(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%);
radial-gradient(
ellipse 240px 60px at 15% 8%,
rgba(255, 255, 255, 0.5) 0%,
transparent 100%
),
radial-gradient(
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 */
.site-bg::after {
@@ -295,8 +325,16 @@ summary,
pointer-events: none;
z-index: 0;
background:
radial-gradient(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%);
radial-gradient(
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 */
.site-bg > * {
@@ -305,31 +343,66 @@ summary,
}
html.dark .site-bg {
background:
linear-gradient(
180deg,
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) 10%, #161c30) 60%,
color-mix(in srgb, var(--color-primary) 12%, #0f141f) 100%
);
background: linear-gradient(
180deg,
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) 10%, #161c30) 60%,
color-mix(in srgb, var(--color-primary) 12%, #0f141f) 100%
);
background-attachment: fixed;
}
html.dark .site-bg::before {
opacity: 0.08;
background:
radial-gradient(ellipse 240px 60px at 15% 8%, rgba(200,210,255,0.5) 0%, transparent 100%),
radial-gradient(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%);
radial-gradient(
ellipse 240px 60px at 15% 8%,
rgba(200, 210, 255, 0.5) 0%,
transparent 100%
),
radial-gradient(
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 {
background:
radial-gradient(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%);
radial-gradient(
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. */
@@ -1346,7 +1419,8 @@ body:has([data-admin]) .btn-outline:hover {
color: var(--admin-text);
}
/* 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(
[type="file"]
):not([type="color"]),
@@ -1455,7 +1529,8 @@ details[open] > summary .details-open\:rotate-180 {
text-align: center;
padding: 2.25rem 1.75rem 2rem;
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(
165deg,
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;
line-height: 1;
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 {
@@ -1537,3 +1613,166 @@ details[open] > summary .details-open\:rotate-180 {
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;
}