refactor: complete unique redesign of home and register pages
This commit is contained in:
1 parent
fb0687ec71
commit
eb60f1a762
2 files changed
+606
-298
No files matched your search
@@ -21,31 +21,61 @@ export default async function RegisterPage() {
|
||||
).catch(() => 0);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col md:flex-row gap-8 items-start">
|
||||
{/* Left: Info / Welcome */}
|
||||
<div className="flex-1 w-full md:sticky md:top-24 space-y-6">
|
||||
<div className="flex flex-col lg:flex-row gap-0 lg:gap-8 min-h-[600px]">
|
||||
{/* ── Left: Reception desk ── */}
|
||||
<div className="relative lg:w-96 shrink-0 overflow-hidden rounded-none lg:rounded-[2rem] p-1 self-start lg:self-stretch">
|
||||
<div
|
||||
className="relative overflow-hidden rounded-2xl border p-6"
|
||||
className="absolute inset-0 rounded-none lg:rounded-[2rem]"
|
||||
style={{
|
||||
borderColor:
|
||||
"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)))`,
|
||||
background: `linear-gradient(135deg, var(--color-primary), color-mix(in srgb, var(--color-primary) 60%, var(--color-accent)))`,
|
||||
}}
|
||||
/>
|
||||
<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 className="relative w-36 h-40">
|
||||
<div
|
||||
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
|
||||
src="/assets/images/FrankwithBag.gif"
|
||||
alt="Frank"
|
||||
fill
|
||||
className="object-contain object-bottom drop-shadow-xl"
|
||||
className="object-contain object-bottom drop-shadow-2xl"
|
||||
unoptimized
|
||||
priority
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h1 className="text-3xl font-extrabold m-0">
|
||||
Join{" "}
|
||||
<div
|
||||
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
|
||||
style={{
|
||||
color:
|
||||
@@ -56,7 +86,7 @@ export default async function RegisterPage() {
|
||||
</span>
|
||||
</h1>
|
||||
<p
|
||||
className="mt-2 text-base max-w-md"
|
||||
className="text-sm mt-2 max-w-xs mx-auto leading-relaxed"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
@@ -65,66 +95,84 @@ export default async function RegisterPage() {
|
||||
{t("tagline")}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div
|
||||
className="stat-grid w-full max-w-xs"
|
||||
style={{ gridTemplateColumns: "1fr 1fr" }}
|
||||
className="w-full max-w-[220px] space-y-2.5 py-4 mt-2 rounded-2xl border"
|
||||
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">
|
||||
{online.toLocaleString()}
|
||||
{[
|
||||
{ icon: "🎨", text: "Unique avatar" },
|
||||
{ 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 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 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>
|
||||
|
||||
{/* Right: Register Form */}
|
||||
<div className="w-full md:w-[500px] shrink-0">
|
||||
<RegisterForm
|
||||
hotelName={hotelName ?? "Hotel"}
|
||||
captcha={{
|
||||
provider: cfg.provider,
|
||||
siteKey: cfg.siteKey || undefined,
|
||||
}}
|
||||
nonce={nonce}
|
||||
/>
|
||||
{/* ── Right: Check-in desk (registration form) ── */}
|
||||
<div className="flex-1 flex flex-col justify-center pt-8 lg:pt-0">
|
||||
<div className="max-w-[520px] mx-auto w-full">
|
||||
<div className="mb-6 text-center lg:text-left">
|
||||
<h2
|
||||
className="text-2xl font-black tracking-tight"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
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>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user