refactor: complete unique redesign of home and register pages
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m56s

This commit is contained in:
openhands committed 2026-07-22 13:58:58 +02:00
1 parent fb0687ec71
commit eb60f1a762
2 files changed
+606 -298

No files matched your search

+493 -233
View File
@@ -17,7 +17,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: 4 }) .findMany({ orderBy: { createdAt: "desc" }, take: 3 })
.catch(() => []), .catch(() => []),
]); ]);
return { hotelName, online, users, rooms, articles }; return { hotelName, online, users, rooms, articles };
@@ -27,290 +27,550 @@ export default async function Home() {
const t = await getTranslations("header"); const t = await getTranslations("header");
const { hotelName, online, users, rooms, articles } = await getHotelData(); const { hotelName, online, users, rooms, articles } = await getHotelData();
const features = [
{
icon: "🎨",
title: "Express Yourself",
desc: "Create a unique avatar with thousands of clothing and accessory combinations.",
},
{
icon: "🏠",
title: "Design Rooms",
desc: "Build and decorate your own rooms with hundreds of furniture items.",
},
{
icon: "🎮",
title: "Play Games",
desc: "Challenge friends to battles, races, and snowstorm fights.",
},
{
icon: "💬",
title: "Make Friends",
desc: "Chat with people from all over the world in a safe environment.",
},
];
return ( return (
<div className="flex flex-col gap-10 pb-12"> <div className="flex flex-col gap-14 pb-16">
{/* Hero */} {/* ── 1. Lobby — full-width hero with depth ── */}
<div <section>
className="relative overflow-hidden rounded-2xl border"
style={{
borderColor:
"color-mix(in srgb, var(--color-primary) 25%, transparent)",
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 18%, var(--color-surface)), color-mix(in srgb, var(--color-primary) 6%, var(--color-background)))`,
}}
>
<div <div
className="absolute inset-0 opacity-[0.03]" className="relative overflow-hidden rounded-[2rem] p-1"
style={{ style={{
backgroundImage: background: `linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 60%, var(--color-accent)))`,
"radial-gradient(circle at 25% 50%, var(--color-primary) 0%, transparent 50%)",
}} }}
/> >
<div className="relative flex flex-col md:flex-row items-center gap-8 px-6 py-10 md:px-12 md:py-14"> <div
<div className="flex-1 text-center md:text-left"> className="relative overflow-hidden rounded-[1.9rem]"
<h1 style={{
className="text-4xl md:text-5xl lg:text-6xl font-extrabold leading-tight tracking-tight mb-4" background: `linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 20%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-primary) 6%, var(--color-background)) 50%, var(--color-background) 100%)`,
}}
>
<div
className="absolute inset-0 opacity-[0.07]"
style={{ style={{
color: "var(--color-text-readable)", backgroundImage:
textShadow: "0 2px 4px rgba(0,0,0,0.06)", "radial-gradient(circle at 30% 40%, var(--color-primary) 0%, transparent 60%), radial-gradient(circle at 70% 80%, var(--color-accent) 0%, transparent 50%)",
}} }}
> />
Welcome to{" "} <div className="relative grid md:grid-cols-2 gap-8 px-8 py-10 md:px-14 md:py-16 items-center">
<span <div className="order-2 md:order-1">
style={{ <div
color: "var(--color-primary-readable, var(--color-primary))", className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full text-xs font-bold uppercase tracking-wider mb-6"
}} style={{
> background:
{hotelName} "color-mix(in srgb, var(--color-primary) 15%, transparent)",
</span> color:
</h1> "var(--color-primary-readable, var(--color-primary))",
<p }}
className="text-lg md:text-xl max-w-xl mb-8" >
style={{ <span
color: className="w-2 h-2 rounded-full animate-pulse"
"var(--color-text-muted-readable, var(--color-text-muted))", style={{ background: "var(--color-success)" }}
lineHeight: 1.6, />
}} {online.toLocaleString()} online now
> </div>
{t("tagline")} <h1
</p> className="text-4xl md:text-5xl lg:text-6xl font-black leading-[1.08] tracking-tight mb-5"
<div className="flex flex-wrap gap-4 justify-center md:justify-start"> style={{ color: "var(--color-text-readable)" }}
<Link >
href="/client" Your story starts{" "}
className="btn btn-primary text-base px-8 py-3 gap-2" <span
> style={{
▶ Play Now color:
</Link> "var(--color-primary-readable, var(--color-primary))",
<Link }}
href="/register" >
className="btn btn-secondary text-base px-8 py-3 gap-2" here
> </span>
✨ Create Account <br />
</Link> at {hotelName}
</h1>
<p
className="text-base md:text-lg max-w-lg leading-relaxed mb-8"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
{t("tagline")}
</p>
<div className="flex flex-wrap gap-3">
<Link
href="/register"
className="inline-flex items-center gap-2 font-extrabold text-base px-7 py-3.5 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 20px color-mix(in srgb, var(--color-primary) 40%, transparent)`,
}}
>
Join for free
<svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
strokeLinecap="round"
strokeLinejoin="round"
>
<title>arrow</title>
<path d="M5 12h14" />
<path d="m12 5 7 7-7 7" />
</svg>
</Link>
<Link
href="/client"
className="inline-flex items-center gap-2 font-bold text-base px-7 py-3.5 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)",
}}
>
Enter hotel
</Link>
</div>
</div>
<div className="order-1 md:order-2 flex justify-center md:justify-end relative">
<div
className="absolute -top-6 -right-6 w-72 h-72 rounded-full opacity-[0.08] blur-[80px]"
style={{ background: "var(--color-primary)" }}
/>
<div className="relative">
<Image
src="/assets/images/FrankwithBag.gif"
alt="Frank"
width={200}
height={260}
className="object-contain drop-shadow-2xl relative z-10"
unoptimized
priority
/>
<div
className="absolute -top-2 -right-4 md:-right-8 z-20 rounded-2xl px-5 py-3.5 shadow-2xl border max-w-[220px] backdrop-blur-md"
style={{
background:
"color-mix(in srgb, var(--color-surface) 85%, transparent)",
borderColor:
"color-mix(in srgb, var(--color-primary) 30%, transparent)",
}}
>
<p
className="text-sm font-black"
style={{ color: "var(--color-text-readable)" }}
>
Hey there! 👋
</p>
<p
className="text-xs mt-1 font-semibold"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
Ready for an adventure? Create your account and let's go!
</p>
</div>
</div>
</div>
</div> </div>
</div> </div>
<div className="shrink-0 relative w-48 h-56 md:w-56 md:h-64"> </div>
<Image </section>
src="/assets/images/FrankwithBag.gif"
alt="Frank" {/* ── 2. Hotel stats — reimagined as service pillars ── */}
fill <section>
className="object-contain object-bottom drop-shadow-2xl" <div className="grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4">
unoptimized {[
priority {
/> value: online.toLocaleString(),
label: "Guests online",
detail: "Exploring right now",
},
{
value: users.toLocaleString(),
label: "Total citizens",
detail: "And counting",
},
{
value: rooms.toLocaleString(),
label: "Rooms built",
detail: "Waiting to be explored",
},
{
value: "∞",
label: "Adventures await",
detail: "New experiences daily",
},
].map((stat) => (
<div <div
className="absolute -top-3 right-0 md:-right-8 bg-white dark:bg-gray-800 rounded-2xl px-5 py-3 shadow-lg border max-w-[200px]" key={stat.label}
className="relative overflow-hidden rounded-2xl p-5 border transition-all duration-200 hover:-translate-y-0.5"
style={{ style={{
background:
"color-mix(in srgb, var(--color-background) 60%, var(--color-surface))",
borderColor: borderColor:
"color-mix(in srgb, var(--color-primary) 30%, transparent)", "color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
}} }}
> >
<p <div
className="text-sm font-bold whitespace-nowrap" className="absolute top-0 right-0 w-24 h-24 rounded-full opacity-[0.06] blur-[30px]"
style={{ background: "var(--color-primary)" }}
/>
<div className="relative">
<div
className="text-3xl md:text-4xl font-black tracking-tight mb-1"
style={{
color:
"var(--color-primary-readable, var(--color-primary))",
}}
>
{stat.value}
</div>
<div
className="text-sm font-extrabold"
style={{ color: "var(--color-text-readable)" }}
>
{stat.label}
</div>
<div
className="text-xs font-semibold mt-0.5"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
{stat.detail}
</div>
</div>
</div>
))}
</div>
</section>
{/* ── 3. Experiences — what makes the hotel special ── */}
<section>
<div className="text-center mb-8">
<h2
className="text-2xl md:text-3xl font-black tracking-tight"
style={{ color: "var(--color-text-readable)" }}
>
Everything{" "}
<span
style={{
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
{hotelName}
</span>{" "}
has to offer
</h2>
<p
className="text-sm md:text-base mt-2 max-w-lg mx-auto"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
From styling your avatar to building empires — it all happens here
</p>
</div>
<div className="grid sm:grid-cols-2 lg:grid-cols-4 gap-4">
{[
{
icon: "/assets/images/icons/star.gif",
title: "Avatar studio",
desc: "Mix, match and stand out with thousands of outfits, accessories and effects.",
},
{
icon: "/assets/images/icons/catalog.png",
title: "Furniture catalog",
desc: "Deck out your room with an ever-growing collection of furniture and decor.",
},
{
icon: "/assets/images/icons/navigation/community.png",
title: "Community hub",
desc: "Meet people from around the world, join groups and make lifelong friends.",
},
{
icon: "/assets/images/icons/navigation/bb.png",
title: "Battle & play",
desc: "Compete in snowstorm, battleball, and weekly events with rewards.",
},
].map((item) => (
<div
key={item.title}
className="group relative overflow-hidden rounded-2xl p-6 border transition-all duration-300 hover:-translate-y-1"
style={{
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="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300"
style={{
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 8%, transparent), transparent 60%)`,
}}
/>
<div className="relative">
<div
className="w-12 h-12 rounded-xl mb-4 flex items-center justify-center overflow-hidden"
style={{
background:
"color-mix(in srgb, var(--color-primary) 14%, var(--color-surface))",
}}
>
<Image
src={item.icon}
alt=""
width={28}
height={28}
className="object-contain"
unoptimized
/>
</div>
<h3
className="text-base font-extrabold mb-2"
style={{ color: "var(--color-text-readable)" }}
>
{item.title}
</h3>
<p
className="text-sm leading-relaxed"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
{item.desc}
</p>
</div>
</div>
))}
</div>
</section>
{/* ── 4. Bulletin — latest articles ── */}
{articles.length > 0 && (
<section>
<div className="flex items-end justify-between mb-6">
<div>
<h2
className="text-2xl md:text-3xl font-black tracking-tight"
style={{ color: "var(--color-text-readable)" }} style={{ color: "var(--color-text-readable)" }}
> >
Welcome to {hotelName}! 🎉 Hotel bulletin
</p> </h2>
<p <p
className="text-xs mt-0.5" className="text-sm mt-1"
style={{ style={{
color: color:
"var(--color-text-muted-readable, var(--color-text-muted))", "var(--color-text-muted-readable, var(--color-text-muted))",
}} }}
> >
Create your account now! Stay up to date with the latest from {hotelName}
</p> </p>
</div> </div>
</div> <Link
</div> href="/news"
</div> className="hidden sm:inline-flex items-center gap-1.5 text-sm font-extrabold hover:underline shrink-0"
{/* Stats */}
<div className="stat-grid">
<div className="stat-block">
<div className="stat-block-value">{online.toLocaleString()}</div>
<div className="stat-block-label">Online Now</div>
</div>
<div className="stat-block">
<div className="stat-block-value">{users.toLocaleString()}</div>
<div className="stat-block-label">Total Users</div>
</div>
<div className="stat-block">
<div className="stat-block-value">{rooms.toLocaleString()}</div>
<div className="stat-block-label">Rooms Created</div>
</div>
<div className="stat-block">
<div className="stat-block-value">🎮</div>
<div className="stat-block-label">Games & More</div>
</div>
</div>
{/* Features */}
<div className="card-grid sm-2 lg-4">
{features.map((f) => (
<div
key={f.title}
className="card text-center"
style={{ padding: "2rem 1.25rem" }}
>
<div className="text-4xl mb-4">{f.icon}</div>
<h3
className="text-lg font-extrabold mb-2"
style={{ color: "var(--color-text-readable)" }}
>
{f.title}
</h3>
<p
className="text-sm leading-relaxed"
style={{ style={{
color: color: "var(--color-primary-readable, var(--color-primary))",
"var(--color-text-muted-readable, var(--color-text-muted))",
}} }}
> >
{f.desc} Browse all articles
</p> <svg
</div> width="16"
))} height="16"
</div> viewBox="0 0 24 24"
fill="none"
{/* News */} stroke="currentColor"
{articles.length > 0 && ( strokeWidth="2.5"
<div> strokeLinecap="round"
<div className="flex items-center justify-between mb-4"> strokeLinejoin="round"
<h2 className="text-2xl font-extrabold m-0">Latest News</h2> >
<Link href="/news" className="text-sm font-bold hover:underline"> <title>arrow</title>
View all → <path d="M5 12h14" />
<path d="m12 5 7 7-7 7" />
</svg>
</Link> </Link>
</div> </div>
<div className="card-grid sm-2 lg-4"> <div className="grid md:grid-cols-3 gap-4">
{articles.map((a) => ( {articles.map((a, i) => (
<Link <Link
key={a.slug} key={a.slug}
href={`/news/${a.slug}`} href={`/news/${a.slug}`}
className="card hover" className={`group relative overflow-hidden rounded-2xl border transition-all duration-300 hover:-translate-y-1 ${
i === 0 ? "md:col-span-2 md:row-span-1" : ""
}`}
style={{ style={{
display: "flex",
flexDirection: "column",
textDecoration: "none", textDecoration: "none",
padding: 0, background:
overflow: "hidden", "color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
borderColor:
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
}} }}
> >
{a.image ? ( <div
<div className={`relative overflow-hidden ${
style={{ i === 0 ? "h-52 md:h-72" : "h-36"
position: "relative", }`}
width: "100%", >
aspectRatio: "16/9", {a.image ? (
}}
>
<Image <Image
src={a.image} src={a.image}
alt="" alt=""
fill fill
style={{ objectFit: "cover" }} className="object-cover group-hover:scale-105 transition-transform duration-500"
unoptimized unoptimized
/> />
</div> ) : (
) : ( <div
<div className="w-full h-full"
style={{ style={{
width: "100%", background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 20%, var(--color-surface)), color-mix(in srgb, var(--color-accent) 20%, var(--color-surface)))`,
aspectRatio: "16/9", }}
background: />
"color-mix(in srgb, var(--color-primary) 10%, var(--color-navbar))", )}
}} <div className="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent" />
/> {i === 0 && (
)} <div className="absolute bottom-4 left-4 right-4">
<div <h3
style={{ className="text-xl font-black text-white drop-shadow-lg"
padding: "1rem 1.1rem", style={{
flex: 1, textShadow: "0 2px 8px rgba(0,0,0,0.5)",
display: "flex", }}
flexDirection: "column", >
}} {a.title}
> </h3>
<h3 <p className="text-xs font-semibold text-white/80 mt-1">
style={{ {formatDate(a.createdAt, "date", "")}
margin: 0, </p>
fontSize: "1rem", </div>
fontWeight: 700, )}
lineHeight: 1.4,
color: "var(--color-text-readable)",
}}
>
{a.title}
</h3>
<p
className="muted"
style={{ margin: "0.35rem 0 0", fontSize: "0.78rem" }}
>
{formatDate(a.createdAt, "date", "")}
</p>
</div> </div>
{i > 0 && (
<div className="p-4">
<h3
className="text-sm font-extrabold leading-snug"
style={{ color: "var(--color-text-readable)" }}
>
{a.title}
</h3>
<p
className="text-xs font-semibold mt-1.5"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
{formatDate(a.createdAt, "date", "")}
</p>
</div>
)}
</Link> </Link>
))} ))}
</div> </div>
</div> <div className="mt-4 text-center sm:hidden">
<Link
href="/news"
className="inline-flex items-center gap-1.5 text-sm font-extrabold"
style={{
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
Browse all articles →
</Link>
</div>
</section>
)} )}
{/* CTA */} {/* ── 5. Final CTA — doors are open ── */}
<div <section>
className="rounded-2xl border text-center px-6 py-10" <div
style={{ className="relative overflow-hidden rounded-[2rem] p-1"
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-3xl font-extrabold mb-3"
style={{ color: "var(--color-text-readable)" }}
>
Ready to join {hotelName}?
</h2>
<p
className="text-base mb-6 max-w-lg mx-auto"
style={{ style={{
color: "var(--color-text-muted-readable, var(--color-text-muted))", background: `linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 60%, var(--color-accent)))`,
}} }}
> >
Create your free account and start your adventure today! <div
</p> className="relative overflow-hidden rounded-[1.9rem] px-8 py-12 md:py-16 text-center"
<div className="flex flex-wrap gap-4 justify-center"> style={{
<Link background: `linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 18%, var(--color-surface)) 0%, var(--color-surface) 60%)`,
href="/register" }}
className="btn btn-primary text-base px-10 py-3"
> >
✨ Create Free Account <div
</Link> className="absolute inset-0 opacity-[0.05]"
<Link href="/client" className="btn btn-outline text-base px-10 py-3"> style={{
▶ Play as Guest backgroundImage:
</Link> "radial-gradient(circle at 50% 50%, var(--color-primary) 0%, transparent 70%)",
}}
/>
<div className="relative max-w-xl mx-auto">
<h2
className="text-3xl md:text-4xl font-black tracking-tight mb-4"
style={{ color: "var(--color-text-readable)" }}
>
The doors are open
</h2>
<p
className="text-base md:text-lg leading-relaxed mb-8 max-w-md mx-auto"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
{hotelName} is free, forever. Come see what makes this place
special — your first room is waiting.
</p>
<div className="flex flex-wrap gap-3 justify-center">
<Link
href="/register"
className="inline-flex items-center gap-2 font-extrabold text-base px-8 py-3.5 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 20px color-mix(in srgb, var(--color-primary) 40%, transparent)`,
}}
>
Claim your room
<svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2.5"
strokeLinecap="round"
strokeLinejoin="round"
>
<title>arrow</title>
<path d="M5 12h14" />
<path d="m12 5 7 7-7 7" />
</svg>
</Link>
<Link
href="/client"
className="inline-flex items-center gap-2 font-bold text-base px-8 py-3.5 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)",
}}
>
Take a look around
</Link>
</div>
</div>
</div>
</div> </div>
</div> </section>
</div> </div>
); );
} }
+113 -65
View File
@@ -21,31 +21,61 @@ export default async function RegisterPage() {
).catch(() => 0); ).catch(() => 0);
return ( return (
<div className="flex flex-col md:flex-row gap-8 items-start"> <div className="flex flex-col lg:flex-row gap-0 lg:gap-8 min-h-[600px]">
{/* Left: Info / Welcome */} {/* ── Left: Reception desk ── */}
<div className="flex-1 w-full md:sticky md:top-24 space-y-6"> <div className="relative lg:w-96 shrink-0 overflow-hidden rounded-none lg:rounded-[2rem] p-1 self-start lg:self-stretch">
<div <div
className="relative overflow-hidden rounded-2xl border p-6" className="absolute inset-0 rounded-none lg:rounded-[2rem]"
style={{ style={{
borderColor: background: `linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 60%, var(--color-accent)))`,
"color-mix(in srgb, var(--color-primary) 25%, transparent)", }}
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 15%, var(--color-surface)), color-mix(in srgb, var(--color-primary) 5%, var(--color-background)))`, />
<div
className="relative h-full rounded-none lg:rounded-[1.9rem] flex flex-col items-center text-center px-6 py-10 lg:py-14"
style={{
background: `linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 22%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-primary) 8%, var(--color-background)) 100%)`,
}} }}
> >
<div className="relative flex flex-col items-center text-center gap-4"> <div
<div className="relative w-36 h-40"> className="absolute inset-0 opacity-[0.06]"
style={{
backgroundImage:
"radial-gradient(circle at 50% 30%, var(--color-primary) 0%, transparent 60%)",
}}
/>
<div className="relative flex flex-col items-center gap-5">
<div className="relative w-40 h-44">
<Image <Image
src="/assets/images/FrankwithBag.gif" src="/assets/images/FrankwithBag.gif"
alt="Frank" alt="Frank"
fill fill
className="object-contain object-bottom drop-shadow-xl" className="object-contain object-bottom drop-shadow-2xl"
unoptimized unoptimized
priority priority
/> />
</div> </div>
<div> <div>
<h1 className="text-3xl font-extrabold m-0"> <div
Join{" "} className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full text-xs font-bold uppercase tracking-wider mb-4"
style={{
background:
"color-mix(in srgb, var(--color-primary) 18%, 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()} here now
</div>
<h1
className="text-2xl md:text-3xl font-black tracking-tight"
style={{ color: "var(--color-text-readable)" }}
>
Welcome to{" "}
<span <span
style={{ style={{
color: color:
@@ -56,7 +86,7 @@ export default async function RegisterPage() {
</span> </span>
</h1> </h1>
<p <p
className="mt-2 text-base max-w-md" className="text-sm mt-2 max-w-xs mx-auto leading-relaxed"
style={{ style={{
color: color:
"var(--color-text-muted-readable, var(--color-text-muted))", "var(--color-text-muted-readable, var(--color-text-muted))",
@@ -65,66 +95,84 @@ export default async function RegisterPage() {
{t("tagline")} {t("tagline")}
</p> </p>
</div> </div>
<div <div
className="stat-grid w-full max-w-xs" className="w-full max-w-[220px] space-y-2.5 py-4 mt-2 rounded-2xl border"
style={{ gridTemplateColumns: "1fr 1fr" }} style={{
borderColor:
"color-mix(in srgb, var(--color-primary) 20%, transparent)",
background:
"color-mix(in srgb, var(--color-primary) 8%, transparent)",
}}
> >
<div className="stat-block" style={{ padding: "0.6rem" }}> {[
<div className="stat-block-value"> { icon: "🎨", text: "Unique avatar" },
{online.toLocaleString()} { icon: "🏠", text: "Your own room" },
{ icon: "💬", text: "Meet new people" },
].map((item) => (
<div
key={item.text}
className="flex items-center gap-2.5 px-4 text-sm font-bold"
style={{ color: "var(--color-text-readable)" }}
>
<span>{item.icon}</span>
<span>{item.text}</span>
</div> </div>
<div className="stat-block-label">Online</div> ))}
</div>
<div className="stat-block" style={{ padding: "0.6rem" }}>
<div className="stat-block-value">🎉</div>
<div className="stat-block-label">Free to Play</div>
</div>
</div> </div>
</div> </div>
</div> </div>
<div className="card space-y-3" style={{ padding: "1.25rem" }}>
{[
{ icon: "🎨", text: "Customize your avatar with unique looks" },
{ icon: "🏠", text: "Build and design your own rooms" },
{ icon: "💬", text: "Chat and make new friends" },
{ icon: "🎮", text: "Play games and compete" },
].map((item) => (
<div
key={item.text}
className="flex items-center gap-3 text-sm font-semibold"
>
<span className="text-xl">{item.icon}</span>
<span style={{ color: "var(--color-text-readable)" }}>
{item.text}
</span>
</div>
))}
</div>
<p
className="text-sm text-center"
style={{
color: "var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
Already have an account?{" "}
<Link href="/login" className="font-bold hover:underline">
Sign in here
</Link>
</p>
</div> </div>
{/* Right: Register Form */} {/* ── Right: Check-in desk (registration form) ── */}
<div className="w-full md:w-[500px] shrink-0"> <div className="flex-1 flex flex-col justify-center pt-8 lg:pt-0">
<RegisterForm <div className="max-w-[520px] mx-auto w-full">
hotelName={hotelName ?? "Hotel"} <div className="mb-6 text-center lg:text-left">
captcha={{ <h2
provider: cfg.provider, className="text-2xl font-black tracking-tight"
siteKey: cfg.siteKey || undefined, style={{ color: "var(--color-text-readable)" }}
}} >
nonce={nonce} Create your account
/> </h2>
<p
className="text-sm mt-1"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
It takes less than a minute. No email required.
</p>
</div>
<RegisterForm
hotelName={hotelName ?? "Hotel"}
captcha={{
provider: cfg.provider,
siteKey: cfg.siteKey || undefined,
}}
nonce={nonce}
/>
<p
className="text-sm text-center mt-6"
style={{
color:
"var(--color-text-muted-readable, var(--color-text-muted))",
}}
>
Already checked in?{" "}
<Link
href="/login"
className="font-extrabold hover:underline"
style={{
color: "var(--color-primary-readable, var(--color-primary))",
}}
>
Sign in here
</Link>
</p>
</div>
</div> </div>
</div> </div>
); );