refactor: clean premium design, fix header banner, remove clutter
This commit is contained in:
1 parent
e2dab9d184
commit
063ac9ec40
3 files changed
+197
-510
No files matched your search
+169
-450
@@ -2,8 +2,8 @@ import Image from "next/image";
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { getTranslations } from "next-intl/server";
|
import { getTranslations } from "next-intl/server";
|
||||||
import { cached } from "@/lib/cache";
|
import { cached } from "@/lib/cache";
|
||||||
import { formatDate } from "@/lib/format-date";
|
|
||||||
import { avatarImageUrl } from "@/lib/format";
|
import { avatarImageUrl } from "@/lib/format";
|
||||||
|
import { formatDate } from "@/lib/format-date";
|
||||||
import { prisma } from "@/lib/prisma";
|
import { prisma } from "@/lib/prisma";
|
||||||
import { siteSettings } from "@/lib/services/site-settings";
|
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_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: 6 })
|
.findMany({ orderBy: { createdAt: "desc" }, take: 5 })
|
||||||
.catch(() => []),
|
.catch(() => []),
|
||||||
prisma.user
|
prisma.user
|
||||||
.findMany({
|
.findMany({
|
||||||
@@ -37,7 +37,7 @@ async function getHotelData() {
|
|||||||
})
|
})
|
||||||
.catch(() => []),
|
.catch(() => []),
|
||||||
prisma.cameraWeb
|
prisma.cameraWeb
|
||||||
.findMany({ orderBy: { timestamp: "desc" }, take: 6 })
|
.findMany({ orderBy: { timestamp: "desc" }, take: 4 })
|
||||||
.catch(() => []),
|
.catch(() => []),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
@@ -65,82 +65,40 @@ export default async function Home() {
|
|||||||
recentUsers,
|
recentUsers,
|
||||||
recentPhotos,
|
recentPhotos,
|
||||||
} = await getHotelData();
|
} = await getHotelData();
|
||||||
const featured = articles[0];
|
|
||||||
const rest = articles.slice(1, 5);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-12 pb-16 stagger-children">
|
<div className="flex flex-col gap-16 pb-16">
|
||||||
{/* ── 1. Cinematic Hero ── */}
|
{/* ── 1. Welcome section ── */}
|
||||||
<section className="relative overflow-hidden rounded-[1.75rem] animate-fade-in-up">
|
<div className="flex flex-col lg:flex-row items-center gap-10 lg:gap-16">
|
||||||
<div className="gradient-border">
|
<div className="flex-1 text-center lg:text-left">
|
||||||
<div
|
<div
|
||||||
className="relative overflow-hidden rounded-[1.75rem] animate-gradient"
|
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(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"
|
|
||||||
style={{
|
style={{
|
||||||
background:
|
background:
|
||||||
"linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 40%, transparent), transparent)",
|
"color-mix(in srgb, var(--color-primary) 12%, transparent)",
|
||||||
}}
|
borderColor:
|
||||||
/>
|
"color-mix(in srgb, var(--color-primary) 20%, transparent)",
|
||||||
<div className="relative grid lg:grid-cols-5 gap-8 px-8 py-10 md:px-12 md:py-14 items-center">
|
color: "var(--color-primary-readable, var(--color-primary))",
|
||||||
<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="w-2 h-2 rounded-full bg-green-500" />
|
||||||
<span
|
{online.toLocaleString()} online
|
||||||
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>
|
</div>
|
||||||
|
|
||||||
<h1
|
<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)" }}
|
style={{ color: "var(--color-text-readable)" }}
|
||||||
>
|
>
|
||||||
Your story starts{" "}
|
Welcome to{" "}
|
||||||
<span className="relative inline-block">
|
|
||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
color:
|
color: "var(--color-primary-readable, var(--color-primary))",
|
||||||
"var(--color-primary-readable, var(--color-primary))",
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
here
|
{hotelName}
|
||||||
</span>
|
|
||||||
<span
|
|
||||||
className="absolute -bottom-1 left-0 right-0 h-2 rounded-full opacity-30"
|
|
||||||
style={{ background: "var(--color-primary)" }}
|
|
||||||
/>
|
|
||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
<p
|
<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={{
|
style={{
|
||||||
color:
|
color:
|
||||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
"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">
|
<div className="flex flex-wrap gap-3 justify-center lg:justify-start">
|
||||||
<Link
|
<Link
|
||||||
href="/register"
|
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={{
|
style={{
|
||||||
background:
|
background: "var(--color-primary)",
|
||||||
"var(--color-primary-readable, var(--color-primary))",
|
color: "var(--color-primary-foreground)",
|
||||||
color:
|
boxShadow:
|
||||||
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
|
"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
|
<Image
|
||||||
src="/assets/images/EnterHubbly.png"
|
src="/assets/images/EnterHubbly.png"
|
||||||
alt=""
|
alt=""
|
||||||
width={20}
|
width={20}
|
||||||
height={20}
|
height={20}
|
||||||
unoptimized
|
unoptimized
|
||||||
className="relative"
|
|
||||||
/>
|
/>
|
||||||
<span className="relative">Enter {hotelName}</span>
|
Enter {hotelName}
|
||||||
</Link>
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
href="/client"
|
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={{
|
style={{
|
||||||
borderColor:
|
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)",
|
color: "var(--color-text-readable)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span
|
Play now
|
||||||
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>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="shrink-0 flex items-end gap-6">
|
||||||
<div className="lg:col-span-2 flex items-end justify-center lg:justify-end gap-4">
|
<div className="relative">
|
||||||
<div className="relative animate-float">
|
|
||||||
<div
|
<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)" }}
|
style={{ background: "var(--color-primary)" }}
|
||||||
/>
|
/>
|
||||||
<Image
|
<Image
|
||||||
@@ -212,41 +154,12 @@ export default async function Home() {
|
|||||||
unoptimized
|
unoptimized
|
||||||
priority
|
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>
|
<div className="hidden sm:flex flex-col gap-2">
|
||||||
<div className="hidden xl:flex flex-col gap-2.5">
|
{recentUsers.slice(0, 5).map((u) => (
|
||||||
{recentUsers.slice(0, 5).map((u, i) => (
|
|
||||||
<div
|
<div
|
||||||
key={u.username}
|
key={u.username}
|
||||||
className="flex items-center gap-2 rounded-xl px-3 py-1.5 transition-all duration-300 hover:bg-white/5"
|
className="flex items-center gap-2 px-3 py-1.5 rounded-lg transition-colors hover:bg-black/5 dark:hover:bg-white/5"
|
||||||
style={{
|
|
||||||
animation: `fade-in-up 0.4s ease-out ${0.1 + i * 0.05}s both`,
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
src={avatarImageUrl(imager, u.look, {
|
src={avatarImageUrl(imager, u.look, {
|
||||||
@@ -257,236 +170,176 @@ export default async function Home() {
|
|||||||
alt=""
|
alt=""
|
||||||
width={28}
|
width={28}
|
||||||
height={34}
|
height={34}
|
||||||
className="rounded-md ring-1 ring-white/10"
|
className="rounded-md"
|
||||||
unoptimized
|
unoptimized
|
||||||
/>
|
/>
|
||||||
<div className="min-w-0">
|
<div>
|
||||||
<p
|
<p
|
||||||
className="text-xs font-bold truncate max-w-[90px]"
|
className="text-xs font-bold leading-tight"
|
||||||
style={{ color: "var(--color-text-readable)" }}
|
style={{ color: "var(--color-text-readable)" }}
|
||||||
>
|
>
|
||||||
{u.username}
|
{u.username}
|
||||||
</p>
|
</p>
|
||||||
<div className="flex items-center gap-1 mt-0.5">
|
<p className="text-[10px] font-semibold text-green-500">
|
||||||
<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
|
Online
|
||||||
</span>
|
</p>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
{/* ── 2. Stats ── */}
|
{/* ── 2. Stats ── */}
|
||||||
<div className="grid grid-cols-3 gap-4 stagger-children">
|
<div className="grid grid-cols-3 gap-4">
|
||||||
{[
|
{[
|
||||||
{
|
{ value: online.toLocaleString(), label: "Online now", icon: "🟢" },
|
||||||
value: online.toLocaleString(),
|
{ value: users.toLocaleString(), label: "Total users", icon: "👤" },
|
||||||
label: "Guests online",
|
{ value: rooms.toLocaleString(), label: "Rooms", icon: "🏠" },
|
||||||
sub: "Exploring right now",
|
|
||||||
icon: "🟢",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: users.toLocaleString(),
|
|
||||||
label: "Total citizens",
|
|
||||||
sub: "And counting",
|
|
||||||
icon: "👥",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
value: rooms.toLocaleString(),
|
|
||||||
label: "Rooms built",
|
|
||||||
sub: "Waiting for you",
|
|
||||||
icon: "🏠",
|
|
||||||
},
|
|
||||||
].map((s) => (
|
].map((s) => (
|
||||||
<div
|
<div
|
||||||
key={s.label}
|
key={s.label}
|
||||||
className="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={{
|
style={{
|
||||||
background:
|
background: "var(--color-surface)",
|
||||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
|
||||||
borderColor:
|
borderColor:
|
||||||
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
|
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<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
|
<div
|
||||||
className="text-3xl md:text-4xl font-black tracking-tight mb-0.5"
|
className="text-3xl md:text-4xl font-black tracking-tight mb-0.5"
|
||||||
style={{
|
style={{ color: "var(--color-primary)" }}
|
||||||
color: "var(--color-primary-readable, var(--color-primary))",
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{s.value}
|
{s.value}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="text-xs font-extrabold uppercase tracking-widest"
|
className="text-xs font-bold uppercase tracking-widest"
|
||||||
style={{ color: "var(--color-text-readable)" }}
|
style={{ color: "var(--color-text-muted)" }}
|
||||||
>
|
>
|
||||||
{s.label}
|
{s.label}
|
||||||
</div>
|
</div>
|
||||||
<div
|
|
||||||
className="text-[10px] font-semibold mt-0.5"
|
|
||||||
style={{
|
|
||||||
color:
|
|
||||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{s.sub}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* ── 3. News + Sidebar ── */}
|
{/* ── 3. Features ── */}
|
||||||
<div className="grid lg:grid-cols-12 gap-6 animate-fade-in-up">
|
<div className="grid sm:grid-cols-2 lg:grid-cols-4 gap-4">
|
||||||
{/* Main feed */}
|
{[
|
||||||
<div className="lg:col-span-8 space-y-5">
|
{
|
||||||
<div className="flex items-end justify-between mb-1">
|
img: "/assets/images/icons/star.gif",
|
||||||
<div>
|
title: "Avatar",
|
||||||
<h2
|
desc: "Create your unique look with thousands of outfits",
|
||||||
className="text-2xl font-black tracking-tight"
|
},
|
||||||
style={{ color: "var(--color-text-readable)" }}
|
{
|
||||||
>
|
img: "/assets/images/icons/catalog.png",
|
||||||
Latest news
|
title: "Furniture",
|
||||||
</h2>
|
desc: "Decorate rooms with hundreds of items",
|
||||||
<p
|
},
|
||||||
className="text-sm mt-0.5"
|
{
|
||||||
|
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={{
|
style={{
|
||||||
color:
|
background: "var(--color-surface)",
|
||||||
"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",
|
|
||||||
borderColor:
|
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
|
<div
|
||||||
className="w-full h-full"
|
className="w-11 h-11 rounded-xl flex items-center justify-center mb-3.5"
|
||||||
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"
|
|
||||||
style={{
|
style={{
|
||||||
background:
|
background:
|
||||||
"color-mix(in srgb, var(--color-primary) 80%, transparent)",
|
"color-mix(in srgb, var(--color-primary) 12%, transparent)",
|
||||||
color: "#fff",
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Featured
|
<Image src={f.img} alt="" width={24} height={24} unoptimized />
|
||||||
</div>
|
</div>
|
||||||
<h3
|
<h3
|
||||||
className="text-xl md:text-2xl font-black text-white drop-shadow-lg"
|
className="text-sm font-extrabold mb-1.5"
|
||||||
style={{ textShadow: "0 2px 12px rgba(0,0,0,0.5)" }}
|
style={{ color: "var(--color-text-readable)" }}
|
||||||
>
|
>
|
||||||
{featured.title}
|
{f.title}
|
||||||
</h3>
|
</h3>
|
||||||
<p className="text-xs font-semibold text-white/70 mt-1">
|
<p
|
||||||
{formatDate(featured.createdAt, "date", "")}
|
className="text-xs leading-relaxed"
|
||||||
|
style={{ color: "var(--color-text-muted)" }}
|
||||||
|
>
|
||||||
|
{f.desc}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
))}
|
||||||
</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">
|
<div className="space-y-3">
|
||||||
{rest.map((a, i) => (
|
{articles.slice(0, 4).map((a) => (
|
||||||
<Link
|
<Link
|
||||||
key={a.slug}
|
key={a.slug}
|
||||||
href={`/news/${a.slug}`}
|
href={`/news/${a.slug}`}
|
||||||
className="group flex gap-4 items-start rounded-xl border p-3.5 transition-all duration-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={{
|
style={{
|
||||||
textDecoration: "none",
|
background: "var(--color-surface)",
|
||||||
background:
|
|
||||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
|
||||||
borderColor:
|
borderColor:
|
||||||
"color-mix(in srgb, var(--color-text-muted) 10%, 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`,
|
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 ? (
|
{a.image ? (
|
||||||
<Image
|
<Image
|
||||||
src={a.image}
|
src={a.image}
|
||||||
alt=""
|
alt=""
|
||||||
fill
|
fill
|
||||||
className="object-cover transition-transform duration-500 group-hover:scale-110"
|
className="object-cover"
|
||||||
unoptimized
|
unoptimized
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div
|
<div
|
||||||
className="w-full h-full"
|
className="w-full h-full"
|
||||||
style={{
|
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>
|
||||||
<div className="min-w-0 flex-1">
|
<div className="min-w-0">
|
||||||
<h3
|
<h3
|
||||||
className="text-sm font-extrabold leading-snug group-hover:underline"
|
className="text-sm font-extrabold leading-snug"
|
||||||
style={{ color: "var(--color-text-readable)" }}
|
style={{ color: "var(--color-text-readable)" }}
|
||||||
>
|
>
|
||||||
{a.title}
|
{a.title}
|
||||||
</h3>
|
</h3>
|
||||||
<p
|
<p
|
||||||
className="text-[11px] font-semibold mt-1"
|
className="text-xs font-semibold mt-1"
|
||||||
style={{
|
style={{ color: "var(--color-text-muted)" }}
|
||||||
color:
|
|
||||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{formatDate(a.createdAt, "date", "")}
|
{formatDate(a.createdAt, "date", "")}
|
||||||
</p>
|
</p>
|
||||||
@@ -494,130 +347,35 @@ export default async function Home() {
|
|||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</div>
|
</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>
|
</div>
|
||||||
|
|
||||||
{/* Sidebar */}
|
|
||||||
<aside className="lg:col-span-4 space-y-4">
|
<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 && (
|
{recentUsers.length > 0 && (
|
||||||
<div
|
<div
|
||||||
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
|
className="rounded-2xl border p-4"
|
||||||
style={{
|
style={{
|
||||||
background:
|
background: "var(--color-surface)",
|
||||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
|
||||||
borderColor:
|
borderColor:
|
||||||
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<h3
|
<h3
|
||||||
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3 flex items-center gap-2"
|
className="text-xs font-bold uppercase tracking-widest mb-3 flex items-center gap-2"
|
||||||
style={{
|
style={{ color: "var(--color-text-muted)" }}
|
||||||
color:
|
|
||||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<span className="relative flex h-2 w-2">
|
<span className="w-2 h-2 rounded-full bg-green-500" />
|
||||||
<span
|
|
||||||
className="animate-ping absolute inline-flex h-full w-full rounded-full"
|
|
||||||
style={{ background: "var(--color-success)" }}
|
|
||||||
/>
|
|
||||||
<span
|
|
||||||
className="relative inline-flex rounded-full h-2 w-2"
|
|
||||||
style={{ background: "var(--color-success)" }}
|
|
||||||
/>
|
|
||||||
</span>
|
|
||||||
Online now
|
Online now
|
||||||
</h3>
|
</h3>
|
||||||
<div className="grid grid-cols-3 gap-2.5">
|
<div className="grid grid-cols-3 gap-2">
|
||||||
{recentUsers.slice(0, 9).map((u) => (
|
{recentUsers.slice(0, 9).map((u) => (
|
||||||
<div
|
<div
|
||||||
key={u.username}
|
key={u.username}
|
||||||
className="flex flex-col items-center gap-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={{
|
style={{
|
||||||
background:
|
background:
|
||||||
"color-mix(in srgb, var(--color-primary) 4%, transparent)",
|
"color-mix(in srgb, var(--color-primary) 4%, transparent)",
|
||||||
@@ -630,8 +388,8 @@ export default async function Home() {
|
|||||||
size: "s",
|
size: "s",
|
||||||
})}
|
})}
|
||||||
alt=""
|
alt=""
|
||||||
width={32}
|
width={30}
|
||||||
height={38}
|
height={36}
|
||||||
className="rounded-md"
|
className="rounded-md"
|
||||||
unoptimized
|
unoptimized
|
||||||
/>
|
/>
|
||||||
@@ -647,148 +405,109 @@ export default async function Home() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Photos */}
|
|
||||||
{recentPhotos.length > 0 && (
|
{recentPhotos.length > 0 && (
|
||||||
<div
|
<div
|
||||||
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
|
className="rounded-2xl border p-4"
|
||||||
style={{
|
style={{
|
||||||
background:
|
background: "var(--color-surface)",
|
||||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
|
||||||
borderColor:
|
borderColor:
|
||||||
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<h3
|
<h3
|
||||||
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3"
|
className="text-xs font-bold uppercase tracking-widest mb-3"
|
||||||
style={{
|
style={{ color: "var(--color-text-muted)" }}
|
||||||
color:
|
|
||||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
Recent photos
|
Photos
|
||||||
</h3>
|
</h3>
|
||||||
<div className="grid grid-cols-3 gap-2">
|
<div className="grid grid-cols-2 gap-2">
|
||||||
{recentPhotos.map((p) => (
|
{recentPhotos.map((p) => (
|
||||||
<Link
|
<Link
|
||||||
key={p.id}
|
key={p.id}
|
||||||
href="/photos"
|
href="/photos"
|
||||||
className="block rounded-lg overflow-hidden aspect-square group"
|
className="block rounded-lg overflow-hidden aspect-square"
|
||||||
style={{ textDecoration: "none" }}
|
|
||||||
>
|
>
|
||||||
<div className="relative w-full h-full">
|
|
||||||
<Image
|
<Image
|
||||||
src={p.url}
|
src={p.url}
|
||||||
alt=""
|
alt=""
|
||||||
fill
|
width={200}
|
||||||
className="object-cover transition-all duration-500 group-hover:scale-110 group-hover:brightness-110"
|
height={200}
|
||||||
|
className="w-full h-full object-cover hover:scale-105 transition-transform duration-300"
|
||||||
unoptimized
|
unoptimized
|
||||||
/>
|
/>
|
||||||
<div
|
|
||||||
className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300"
|
|
||||||
style={{
|
|
||||||
background:
|
|
||||||
"linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%)",
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Fun fact */}
|
|
||||||
<div
|
<div
|
||||||
className="rounded-xl border p-4 text-center"
|
className="rounded-2xl border p-5 text-center"
|
||||||
style={{
|
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:
|
borderColor:
|
||||||
"color-mix(in srgb, var(--color-primary) 18%, transparent)",
|
"color-mix(in srgb, var(--color-primary) 15%, transparent)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Image
|
<Image
|
||||||
src="/assets/images/FrankwithBag.gif"
|
src="/assets/images/FrankwithBag.gif"
|
||||||
alt="Frank"
|
alt=""
|
||||||
width={60}
|
width={48}
|
||||||
height={80}
|
height={60}
|
||||||
className="object-contain mx-auto mb-2 opacity-60"
|
className="object-contain mx-auto mb-2 opacity-50"
|
||||||
unoptimized
|
unoptimized
|
||||||
/>
|
/>
|
||||||
<p
|
<p
|
||||||
className="text-xs font-bold leading-relaxed"
|
className="text-xs font-bold"
|
||||||
style={{
|
style={{ color: "var(--color-text-muted)" }}
|
||||||
color:
|
|
||||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
"See you in the lobby!"
|
See you inside!
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* ── 4. CTA ── */}
|
{/* ── 5. CTA ── */}
|
||||||
<section className="gradient-border">
|
|
||||||
<div
|
<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={{
|
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
|
<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)" }}
|
style={{ color: "var(--color-text-readable)" }}
|
||||||
>
|
>
|
||||||
The doors are open
|
Ready to join?
|
||||||
</h2>
|
</h2>
|
||||||
<p
|
<p
|
||||||
className="text-sm md:text-base leading-relaxed mb-7 max-w-sm mx-auto"
|
className="text-sm mb-6 max-w-sm mx-auto"
|
||||||
style={{
|
style={{ color: "var(--color-text-muted)" }}
|
||||||
color:
|
|
||||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{hotelName} is free, forever. Your first room is waiting — come
|
Create your free account and start your adventure today.
|
||||||
join us!
|
|
||||||
</p>
|
</p>
|
||||||
<Link
|
<Link
|
||||||
href="/register"
|
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={{
|
style={{
|
||||||
background:
|
background: "var(--color-primary)",
|
||||||
"var(--color-primary-readable, var(--color-primary))",
|
color: "var(--color-primary-foreground)",
|
||||||
color:
|
boxShadow:
|
||||||
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
|
"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
|
<Image
|
||||||
src="/assets/images/EnterHubbly.png"
|
src="/assets/images/EnterHubbly.png"
|
||||||
alt=""
|
alt=""
|
||||||
width={20}
|
width={20}
|
||||||
height={20}
|
height={20}
|
||||||
unoptimized
|
unoptimized
|
||||||
className="relative"
|
|
||||||
/>
|
/>
|
||||||
<span className="relative">Claim your room</span>
|
Create free account
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -36,54 +36,37 @@ export default async function RegisterPage() {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col lg:flex-row gap-8 min-h-[600px] animate-fade-in-up">
|
<div className="flex flex-col lg:flex-row gap-10">
|
||||||
{/* ── Left: Reception ── */}
|
{/* Left panel */}
|
||||||
<div className="lg:w-80 shrink-0 space-y-4">
|
<div className="lg:w-80 shrink-0 space-y-4">
|
||||||
<div className="gradient-border">
|
|
||||||
<div
|
<div
|
||||||
className="relative overflow-hidden rounded-[1.75rem] p-6 text-center animate-gradient"
|
className="rounded-2xl border p-6 text-center"
|
||||||
style={{
|
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
|
<Image
|
||||||
src="/assets/images/FrankwithBag.gif"
|
src="/assets/images/FrankwithBag.gif"
|
||||||
alt="Frank"
|
alt="Frank"
|
||||||
width={130}
|
width={130}
|
||||||
height={170}
|
height={170}
|
||||||
className="object-contain mx-auto drop-shadow-2xl animate-float"
|
className="object-contain mx-auto drop-shadow-xl"
|
||||||
unoptimized
|
unoptimized
|
||||||
priority
|
priority
|
||||||
/>
|
/>
|
||||||
<div
|
<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={{
|
style={{
|
||||||
|
borderColor:
|
||||||
|
"color-mix(in srgb, var(--color-primary) 18%, transparent)",
|
||||||
background:
|
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))",
|
color: "var(--color-primary-readable, var(--color-primary))",
|
||||||
border:
|
|
||||||
"1px solid color-mix(in srgb, var(--color-primary) 18%, transparent)",
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<span
|
<span className="w-2 h-2 rounded-full bg-green-500" />
|
||||||
className="w-1.5 h-1.5 rounded-full animate-pulse"
|
|
||||||
style={{ background: "var(--color-success)" }}
|
|
||||||
/>
|
|
||||||
{online.toLocaleString()} online
|
{online.toLocaleString()} online
|
||||||
</div>
|
</div>
|
||||||
<h1
|
<h1
|
||||||
@@ -93,42 +76,32 @@ export default async function RegisterPage() {
|
|||||||
Join{" "}
|
Join{" "}
|
||||||
<span
|
<span
|
||||||
style={{
|
style={{
|
||||||
color:
|
color: "var(--color-primary-readable, var(--color-primary))",
|
||||||
"var(--color-primary-readable, var(--color-primary))",
|
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{hotelName}
|
{hotelName}
|
||||||
</span>
|
</span>
|
||||||
</h1>
|
</h1>
|
||||||
<p
|
<p
|
||||||
className="text-xs mt-1 max-w-[200px] mx-auto leading-relaxed"
|
className="text-xs mt-1 mx-auto max-w-[200px] leading-relaxed"
|
||||||
style={{
|
style={{ color: "var(--color-text-muted)" }}
|
||||||
color:
|
|
||||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
{t("tagline")}
|
{t("tagline")}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{recentUsers.length > 0 && (
|
{recentUsers.length > 0 && (
|
||||||
<div
|
<div
|
||||||
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
|
className="rounded-2xl border p-4"
|
||||||
style={{
|
style={{
|
||||||
background:
|
background: "var(--color-surface)",
|
||||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
|
||||||
borderColor:
|
borderColor:
|
||||||
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<h3
|
<h3
|
||||||
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-2.5"
|
className="text-xs font-bold uppercase tracking-widest mb-3"
|
||||||
style={{
|
style={{ color: "var(--color-text-muted)" }}
|
||||||
color:
|
|
||||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
Who's online
|
Who's online
|
||||||
</h3>
|
</h3>
|
||||||
@@ -136,7 +109,7 @@ export default async function RegisterPage() {
|
|||||||
{recentUsers.map((u) => (
|
{recentUsers.map((u) => (
|
||||||
<div
|
<div
|
||||||
key={u.username}
|
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={{
|
style={{
|
||||||
background:
|
background:
|
||||||
"color-mix(in srgb, var(--color-primary) 4%, transparent)",
|
"color-mix(in srgb, var(--color-primary) 4%, transparent)",
|
||||||
@@ -149,8 +122,8 @@ export default async function RegisterPage() {
|
|||||||
size: "s",
|
size: "s",
|
||||||
})}
|
})}
|
||||||
alt=""
|
alt=""
|
||||||
width={28}
|
width={26}
|
||||||
height={34}
|
height={32}
|
||||||
className="rounded-md"
|
className="rounded-md"
|
||||||
unoptimized
|
unoptimized
|
||||||
/>
|
/>
|
||||||
@@ -168,9 +141,7 @@ export default async function RegisterPage() {
|
|||||||
|
|
||||||
<p
|
<p
|
||||||
className="text-xs text-center"
|
className="text-xs text-center"
|
||||||
style={{
|
style={{ color: "var(--color-text-muted)" }}
|
||||||
color: "var(--color-text-muted-readable, var(--color-text-muted))",
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
Already have an account?{" "}
|
Already have an account?{" "}
|
||||||
<Link
|
<Link
|
||||||
@@ -185,9 +156,9 @@ export default async function RegisterPage() {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* ── Right: Registration ── */}
|
{/* Right: form */}
|
||||||
<div className="flex-1">
|
<div className="flex-1">
|
||||||
<div className="mb-6 text-center lg:text-left">
|
<div className="mb-6">
|
||||||
<h2
|
<h2
|
||||||
className="text-2xl font-black tracking-tight"
|
className="text-2xl font-black tracking-tight"
|
||||||
style={{ color: "var(--color-text-readable)" }}
|
style={{ color: "var(--color-text-readable)" }}
|
||||||
@@ -196,12 +167,9 @@ export default async function RegisterPage() {
|
|||||||
</h2>
|
</h2>
|
||||||
<p
|
<p
|
||||||
className="text-sm mt-0.5"
|
className="text-sm mt-0.5"
|
||||||
style={{
|
style={{ color: "var(--color-text-muted)" }}
|
||||||
color:
|
|
||||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
Free and takes less than a minute — no email required
|
Free and takes less than a minute
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<RegisterForm
|
<RegisterForm
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export async function SiteHeader() {
|
|||||||
const bannerUrl =
|
const bannerUrl =
|
||||||
header && header !== "/assets/images/background.png"
|
header && header !== "/assets/images/background.png"
|
||||||
? header
|
? header
|
||||||
: "/assets/images/banner.png";
|
: "/assets/images/background.png";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in new issue
Block a user