refactor: clean premium design, fix header banner, remove clutter
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m54s

This commit is contained in:
openhands committed 2026-07-22 14:26:36 +02:00
1 parent e2dab9d184
commit 063ac9ec40
3 files changed
+197 -510

No files matched your search

+169 -450
View File
@@ -2,8 +2,8 @@ import Image from "next/image";
import Link from "next/link";
import { getTranslations } from "next-intl/server";
import { cached } from "@/lib/cache";
import { formatDate } from "@/lib/format-date";
import { avatarImageUrl } from "@/lib/format";
import { formatDate } from "@/lib/format-date";
import { prisma } from "@/lib/prisma";
import { siteSettings } from "@/lib/services/site-settings";
@@ -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: 6 })
.findMany({ orderBy: { createdAt: "desc" }, take: 5 })
.catch(() => []),
prisma.user
.findMany({
@@ -37,7 +37,7 @@ async function getHotelData() {
})
.catch(() => []),
prisma.cameraWeb
.findMany({ orderBy: { timestamp: "desc" }, take: 6 })
.findMany({ orderBy: { timestamp: "desc" }, take: 4 })
.catch(() => []),
]);
@@ -65,82 +65,40 @@ export default async function Home() {
recentUsers,
recentPhotos,
} = await getHotelData();
const featured = articles[0];
const rest = articles.slice(1, 5);
return (
<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="flex flex-col gap-16 pb-16">
{/* ── 1. Welcome section ── */}
<div className="flex flex-col lg:flex-row items-center gap-10 lg:gap-16">
<div className="flex-1 text-center lg:text-left">
<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="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"
className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full text-xs font-bold uppercase tracking-widest mb-5 border"
style={{
background:
"linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 40%, transparent), transparent)",
}}
/>
<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)",
"color-mix(in srgb, var(--color-primary) 12%, transparent)",
borderColor:
"color-mix(in srgb, var(--color-primary) 20%, transparent)",
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
<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
<span className="w-2 h-2 rounded-full bg-green-500" />
{online.toLocaleString()} online
</div>
<h1
className="text-4xl md:text-5xl lg:text-6xl font-black leading-[1.04] tracking-tight mb-4"
className="text-4xl md:text-5xl lg:text-6xl font-black leading-[1.05] tracking-tight mb-4"
style={{ color: "var(--color-text-readable)" }}
>
Your story starts{" "}
<span className="relative inline-block">
Welcome to{" "}
<span
style={{
color:
"var(--color-primary-readable, var(--color-primary))",
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)" }}
/>
{hotelName}
</span>
</h1>
<p
className="text-base md:text-lg leading-relaxed max-w-lg mb-7"
className="text-base md:text-lg leading-relaxed max-w-xl mb-8"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
@@ -151,56 +109,40 @@ export default async function Home() {
<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"
className="inline-flex items-center gap-2.5 font-extrabold text-sm px-7 py-3.5 rounded-xl transition-all duration-200 hover:scale-[1.03] active:scale-95 shadow-lg"
style={{
background:
"var(--color-primary-readable, var(--color-primary))",
color:
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
background: "var(--color-primary)",
color: "var(--color-primary-foreground)",
boxShadow:
"0 4px 24px color-mix(in srgb, var(--color-primary) 35%, transparent)",
}}
>
<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>
Enter {hotelName}
</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"
className="inline-flex items-center gap-2 font-bold text-sm px-7 py-3.5 rounded-xl border-2 transition-all duration-200 hover:scale-[1.03] active:scale-95"
style={{
borderColor:
"color-mix(in srgb, var(--color-text-muted) 22%, transparent)",
"color-mix(in srgb, var(--color-text-muted) 20%, 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>
Play now
</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="shrink-0 flex items-end gap-6">
<div className="relative">
<div
className="absolute -bottom-4 -left-4 w-48 h-48 rounded-full opacity-[0.08] blur-[60px]"
className="absolute -bottom-4 -left-4 w-48 h-48 rounded-full opacity-[0.1] blur-[60px]"
style={{ background: "var(--color-primary)" }}
/>
<Image
@@ -212,41 +154,12 @@ export default async function Home() {
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 className="hidden sm:flex flex-col gap-2">
{recentUsers.slice(0, 5).map((u) => (
<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`,
}}
className="flex items-center gap-2 px-3 py-1.5 rounded-lg transition-colors hover:bg-black/5 dark:hover:bg-white/5"
>
<Image
src={avatarImageUrl(imager, u.look, {
@@ -257,236 +170,176 @@ export default async function Home() {
alt=""
width={28}
height={34}
className="rounded-md ring-1 ring-white/10"
className="rounded-md"
unoptimized
/>
<div className="min-w-0">
<div>
<p
className="text-xs font-bold truncate max-w-[90px]"
className="text-xs font-bold leading-tight"
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)" }}
>
<p className="text-[10px] font-semibold text-green-500">
Online
</span>
</div>
</p>
</div>
</div>
))}
</div>
</div>
</div>
</div>
</div>
</section>
{/* ── 2. Stats ── */}
<div className="grid grid-cols-3 gap-4 stagger-children">
<div className="grid grid-cols-3 gap-4">
{[
{
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: "🏠",
},
{ value: online.toLocaleString(), label: "Online now", icon: "🟢" },
{ value: users.toLocaleString(), label: "Total users", icon: "👤" },
{ value: rooms.toLocaleString(), label: "Rooms", icon: "🏠" },
].map((s) => (
<div
key={s.label}
className="relative overflow-hidden rounded-xl border transition-all duration-300 hover:-translate-y-0.5 hover:shadow-lg group cursor-default"
className="rounded-2xl border p-5 text-center transition-all duration-200 hover:-translate-y-0.5"
style={{
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
background: "var(--color-surface)",
borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}}
>
<div
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))",
}}
style={{ color: "var(--color-primary)" }}
>
{s.value}
</div>
<div
className="text-xs font-extrabold uppercase tracking-widest"
style={{ color: "var(--color-text-readable)" }}
className="text-xs font-bold uppercase tracking-widest"
style={{ color: "var(--color-text-muted)" }}
>
{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>
{/* ── 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"
{/* ── 3. Features ── */}
<div className="grid sm:grid-cols-2 lg:grid-cols-4 gap-4">
{[
{
img: "/assets/images/icons/star.gif",
title: "Avatar",
desc: "Create your unique look with thousands of outfits",
},
{
img: "/assets/images/icons/catalog.png",
title: "Furniture",
desc: "Decorate rooms with hundreds of items",
},
{
img: "/assets/images/icons/navigation/community.png",
title: "Community",
desc: "Make friends and join groups",
},
{
img: "/assets/images/icons/navigation/bb.png",
title: "Games",
desc: "Compete in battles and events",
},
].map((f) => (
<div
key={f.title}
className="rounded-2xl border p-5 transition-all duration-200 hover:-translate-y-0.5"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
Stay up to date with {hotelName}
</p>
</div>
<Link
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: "var(--color-surface)",
borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}}
>
<div className="relative h-52 md:h-64 overflow-hidden">
{featured.image ? (
<Image
src={featured.image}
alt=""
fill
className="object-cover transition-transform duration-700 group-hover:scale-105"
unoptimized
/>
) : (
<div
className="w-full h-full"
style={{
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 25%, var(--color-surface)), color-mix(in srgb, var(--color-accent) 20%, var(--color-surface)))`,
}}
/>
)}
<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"
className="w-11 h-11 rounded-xl flex items-center justify-center mb-3.5"
style={{
background:
"color-mix(in srgb, var(--color-primary) 80%, transparent)",
color: "#fff",
"color-mix(in srgb, var(--color-primary) 12%, transparent)",
}}
>
Featured
<Image src={f.img} alt="" width={24} height={24} unoptimized />
</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)" }}
className="text-sm font-extrabold mb-1.5"
style={{ color: "var(--color-text-readable)" }}
>
{featured.title}
{f.title}
</h3>
<p className="text-xs font-semibold text-white/70 mt-1">
{formatDate(featured.createdAt, "date", "")}
<p
className="text-xs leading-relaxed"
style={{ color: "var(--color-text-muted)" }}
>
{f.desc}
</p>
</div>
))}
</div>
</Link>
)}
{rest.length > 0 && (
{/* ── 4. News + Sidebar ── */}
<div className="grid lg:grid-cols-12 gap-6">
<div className="lg:col-span-8 space-y-4">
<div className="flex items-center justify-between">
<h2
className="text-xl font-black tracking-tight"
style={{ color: "var(--color-text-readable)" }}
>
News
</h2>
<Link
href="/news"
className="text-sm font-bold hover:underline"
style={{ color: "var(--color-primary)" }}
>
View all →
</Link>
</div>
{articles.length > 0 ? (
<div className="space-y-3">
{rest.map((a, i) => (
{articles.slice(0, 4).map((a) => (
<Link
key={a.slug}
href={`/news/${a.slug}`}
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"
className="flex gap-3.5 items-start rounded-2xl border p-4 transition-all duration-200 hover:-translate-y-0.5"
style={{
textDecoration: "none",
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
background: "var(--color-surface)",
borderColor:
"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`,
textDecoration: "none",
}}
>
<div className="relative w-14 h-14 shrink-0 rounded-xl overflow-hidden ring-1 ring-white/5">
<div className="relative w-14 h-14 shrink-0 rounded-xl overflow-hidden">
{a.image ? (
<Image
src={a.image}
alt=""
fill
className="object-cover transition-transform duration-500 group-hover:scale-110"
className="object-cover"
unoptimized
/>
) : (
<div
className="w-full h-full"
style={{
background: `color-mix(in srgb, var(--color-primary) 15%, var(--color-surface))`,
background: `color-mix(in srgb, var(--color-primary) 15%, transparent)`,
}}
/>
)}
</div>
<div className="min-w-0 flex-1">
<div className="min-w-0">
<h3
className="text-sm font-extrabold leading-snug group-hover:underline"
className="text-sm font-extrabold leading-snug"
style={{ color: "var(--color-text-readable)" }}
>
{a.title}
</h3>
<p
className="text-[11px] font-semibold mt-1"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
className="text-xs font-semibold mt-1"
style={{ color: "var(--color-text-muted)" }}
>
{formatDate(a.createdAt, "date", "")}
</p>
@@ -494,130 +347,35 @@ export default async function Home() {
</Link>
))}
</div>
) : (
<p className="text-sm" style={{ color: "var(--color-text-muted)" }}>
No news yet.
</p>
)}
<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 */}
<aside className="lg:col-span-4 space-y-4">
{/* Quick actions */}
<div
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) 10%, transparent)",
}}
>
<h3
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
Navigate
</h3>
<div className="space-y-0.5">
{[
{
icon: "/assets/images/icons/navigation/me.png",
label: "My dashboard",
href: "/me",
},
{
icon: "/assets/images/icons/navigation/community.png",
label: "Community",
href: "/community",
},
{
icon: "/assets/images/icons/navigation/shop.png",
label: "Shop",
href: "/shop",
},
{
icon: "/assets/images/icons/navigation/leaderboards.png",
label: "Leaderboards",
href: "/leaderboard",
},
].map((item) => (
<Link
key={item.label}
href={item.href}
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",
}}
>
<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>
{/* Online grid */}
{recentUsers.length > 0 && (
<div
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
className="rounded-2xl border p-4"
style={{
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
background: "var(--color-surface)",
borderColor:
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}}
>
<h3
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))",
}}
className="text-xs font-bold uppercase tracking-widest mb-3 flex items-center gap-2"
style={{ color: "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>
<span className="w-2 h-2 rounded-full bg-green-500" />
Online now
</h3>
<div className="grid grid-cols-3 gap-2.5">
<div className="grid grid-cols-3 gap-2">
{recentUsers.slice(0, 9).map((u) => (
<div
key={u.username}
className="flex flex-col items-center gap-1 rounded-lg p-2 transition-all duration-200 hover:scale-105 cursor-default"
className="flex flex-col items-center gap-1 p-1.5 rounded-lg"
style={{
background:
"color-mix(in srgb, var(--color-primary) 4%, transparent)",
@@ -630,8 +388,8 @@ export default async function Home() {
size: "s",
})}
alt=""
width={32}
height={38}
width={30}
height={36}
className="rounded-md"
unoptimized
/>
@@ -647,148 +405,109 @@ export default async function Home() {
</div>
)}
{/* Photos */}
{recentPhotos.length > 0 && (
<div
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
className="rounded-2xl border p-4"
style={{
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
background: "var(--color-surface)",
borderColor:
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}}
>
<h3
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
className="text-xs font-bold uppercase tracking-widest mb-3"
style={{ color: "var(--color-text-muted)" }}
>
Recent photos
Photos
</h3>
<div className="grid grid-cols-3 gap-2">
<div className="grid grid-cols-2 gap-2">
{recentPhotos.map((p) => (
<Link
key={p.id}
href="/photos"
className="block rounded-lg overflow-hidden aspect-square group"
style={{ textDecoration: "none" }}
className="block rounded-lg overflow-hidden aspect-square"
>
<div className="relative w-full h-full">
<Image
src={p.url}
alt=""
fill
className="object-cover transition-all duration-500 group-hover:scale-110 group-hover:brightness-110"
width={200}
height={200}
className="w-full h-full object-cover hover:scale-105 transition-transform duration-300"
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"
className="rounded-2xl border p-5 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)))`,
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 8%, var(--color-surface)), transparent)`,
borderColor:
"color-mix(in srgb, var(--color-primary) 18%, transparent)",
"color-mix(in srgb, var(--color-primary) 15%, transparent)",
}}
>
<Image
src="/assets/images/FrankwithBag.gif"
alt="Frank"
width={60}
height={80}
className="object-contain mx-auto mb-2 opacity-60"
alt=""
width={48}
height={60}
className="object-contain mx-auto mb-2 opacity-50"
unoptimized
/>
<p
className="text-xs font-bold leading-relaxed"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
className="text-xs font-bold"
style={{ color: "var(--color-text-muted)" }}
>
"See you in the lobby!"
See you inside!
</p>
</div>
</aside>
</div>
{/* ── 4. CTA ── */}
<section className="gradient-border">
{/* ── 5. CTA ── */}
<div
className="relative overflow-hidden rounded-[1.75rem] px-8 py-12 md:py-14 text-center"
className="rounded-2xl border text-center px-6 py-10"
style={{
background: `linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 16%, var(--color-surface)) 0%, var(--color-surface) 60%)`,
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)), var(--color-surface))`,
borderColor:
"color-mix(in srgb, var(--color-primary) 20%, transparent)",
}}
>
<div
className="absolute inset-0 opacity-[0.05]"
style={{
backgroundImage:
"radial-gradient(circle at 50% 50%, var(--color-primary) 0%, transparent 60%)",
}}
/>
<div className="relative max-w-lg mx-auto">
<h2
className="text-3xl md:text-4xl font-black tracking-tight mb-3"
className="text-2xl md:text-3xl font-black tracking-tight mb-2"
style={{ color: "var(--color-text-readable)" }}
>
The doors are open
Ready to join?
</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))",
}}
className="text-sm mb-6 max-w-sm mx-auto"
style={{ color: "var(--color-text-muted)" }}
>
{hotelName} is free, forever. Your first room is waiting — come
join us!
Create your free account and start your adventure today.
</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"
className="inline-flex items-center gap-2.5 font-extrabold text-sm px-8 py-3.5 rounded-xl transition-all duration-200 hover:scale-[1.03] active:scale-95 shadow-lg"
style={{
background:
"var(--color-primary-readable, var(--color-primary))",
color:
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
background: "var(--color-primary)",
color: "var(--color-primary-foreground)",
boxShadow:
"0 4px 24px color-mix(in srgb, var(--color-primary) 35%, transparent)",
}}
>
<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>
Create free account
</Link>
</div>
</div>
</section>
</div>
);
}
+27 -59
View File
@@ -36,54 +36,37 @@ export default async function RegisterPage() {
]);
return (
<div className="flex flex-col lg:flex-row gap-8 min-h-[600px] animate-fade-in-up">
{/* ── Left: Reception ── */}
<div className="flex flex-col lg:flex-row gap-10">
{/* Left panel */}
<div className="lg:w-80 shrink-0 space-y-4">
<div className="gradient-border">
<div
className="relative overflow-hidden rounded-[1.75rem] p-6 text-center animate-gradient"
className="rounded-2xl border p-6 text-center"
style={{
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%)`,
borderColor:
"color-mix(in srgb, var(--color-primary) 20%, transparent)",
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)), var(--color-surface))`,
}}
>
<div
className="absolute inset-0 opacity-[0.04]"
style={{
backgroundImage:
"radial-gradient(circle at 50% 30%, white 0%, transparent 60%)",
}}
/>
<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"
className="object-contain mx-auto drop-shadow-xl"
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"
className="inline-flex items-center gap-2 px-3.5 py-1 rounded-full text-xs font-bold uppercase tracking-wider mt-4 mb-3 border"
style={{
borderColor:
"color-mix(in srgb, var(--color-primary) 18%, transparent)",
background:
"color-mix(in srgb, var(--color-primary) 16%, transparent)",
"color-mix(in srgb, var(--color-primary) 10%, 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)" }}
/>
<span className="w-2 h-2 rounded-full bg-green-500" />
{online.toLocaleString()} online
</div>
<h1
@@ -93,42 +76,32 @@ export default async function RegisterPage() {
Join{" "}
<span
style={{
color:
"var(--color-primary-readable, var(--color-primary))",
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))",
}}
className="text-xs mt-1 mx-auto max-w-[200px] leading-relaxed"
style={{ color: "var(--color-text-muted)" }}
>
{t("tagline")}
</p>
</div>
</div>
</div>
{recentUsers.length > 0 && (
<div
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
className="rounded-2xl border p-4"
style={{
background:
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
background: "var(--color-surface)",
borderColor:
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
}}
>
<h3
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-2.5"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
className="text-xs font-bold uppercase tracking-widest mb-3"
style={{ color: "var(--color-text-muted)" }}
>
Who&apos;s online
</h3>
@@ -136,7 +109,7 @@ export default async function RegisterPage() {
{recentUsers.map((u) => (
<div
key={u.username}
className="flex flex-col items-center gap-0.5 rounded-lg p-1.5 transition-all duration-200 hover:scale-105 cursor-default"
className="flex flex-col items-center gap-0.5 p-1.5 rounded-lg"
style={{
background:
"color-mix(in srgb, var(--color-primary) 4%, transparent)",
@@ -149,8 +122,8 @@ export default async function RegisterPage() {
size: "s",
})}
alt=""
width={28}
height={34}
width={26}
height={32}
className="rounded-md"
unoptimized
/>
@@ -168,9 +141,7 @@ export default async function RegisterPage() {
<p
className="text-xs text-center"
style={{
color: "var(--color-text-muted-readable, var(--color-text-muted))",
}}
style={{ color: "var(--color-text-muted)" }}
>
Already have an account?{" "}
<Link
@@ -185,9 +156,9 @@ export default async function RegisterPage() {
</p>
</div>
{/* ── Right: Registration ── */}
{/* Right: form */}
<div className="flex-1">
<div className="mb-6 text-center lg:text-left">
<div className="mb-6">
<h2
className="text-2xl font-black tracking-tight"
style={{ color: "var(--color-text-readable)" }}
@@ -196,12 +167,9 @@ export default async function RegisterPage() {
</h2>
<p
className="text-sm mt-0.5"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
style={{ color: "var(--color-text-muted)" }}
>
Free and takes less than a minute — no email required
Free and takes less than a minute
</p>
</div>
<RegisterForm
+1 -1
View File
@@ -25,7 +25,7 @@ export async function SiteHeader() {
const bannerUrl =
header && header !== "/assets/images/background.png"
? header
: "/assets/images/banner.png";
: "/assets/images/background.png";
return (
<div