feat: premium polish with animations, glassmorphism, staggered reveals
This commit is contained in:
1 parent
8fa59d9d19
commit
e2dab9d184
3 files changed
+858
-367
No files matched your search
+485
-260
@@ -27,7 +27,7 @@ async function getHotelData() {
|
||||
cached("total_users", 30_000, () => prisma.user.count()).catch(() => 0),
|
||||
cached("total_rooms", 30_000, () => prisma.rooms.count()).catch(() => 0),
|
||||
prisma.websiteArticles
|
||||
.findMany({ orderBy: { createdAt: "desc" }, take: 5 })
|
||||
.findMany({ orderBy: { createdAt: "desc" }, take: 6 })
|
||||
.catch(() => []),
|
||||
prisma.user
|
||||
.findMany({
|
||||
@@ -37,7 +37,7 @@ async function getHotelData() {
|
||||
})
|
||||
.catch(() => []),
|
||||
prisma.cameraWeb
|
||||
.findMany({ orderBy: { timestamp: "desc" }, take: 4 })
|
||||
.findMany({ orderBy: { timestamp: "desc" }, take: 6 })
|
||||
.catch(() => []),
|
||||
]);
|
||||
|
||||
@@ -65,150 +65,255 @@ export default async function Home() {
|
||||
recentUsers,
|
||||
recentPhotos,
|
||||
} = await getHotelData();
|
||||
|
||||
const featuredArticle = articles[0];
|
||||
const remainingArticles = articles.slice(1, 5);
|
||||
const featured = articles[0];
|
||||
const rest = articles.slice(1, 5);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-8 pb-12">
|
||||
{/* ── Hero ── */}
|
||||
<section
|
||||
className="relative overflow-hidden rounded-2xl border"
|
||||
style={{
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-primary) 30%, transparent)",
|
||||
background: `linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 18%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-primary) 5%, var(--color-background)) 100%)`,
|
||||
}}
|
||||
>
|
||||
<div
|
||||
className="absolute inset-0 opacity-[0.05]"
|
||||
style={{
|
||||
backgroundImage:
|
||||
"radial-gradient(circle at 30% 30%, var(--color-primary) 0%, transparent 60%)",
|
||||
}}
|
||||
/>
|
||||
<div className="relative flex flex-col md:flex-row items-center gap-6 px-6 py-8 md:px-10 md:py-10">
|
||||
<div className="flex-1 text-center md:text-left">
|
||||
<div className="flex flex-col gap-12 pb-16 stagger-children">
|
||||
{/* ── 1. Cinematic Hero ── */}
|
||||
<section className="relative overflow-hidden rounded-[1.75rem] animate-fade-in-up">
|
||||
<div className="gradient-border">
|
||||
<div
|
||||
className="relative overflow-hidden rounded-[1.75rem] animate-gradient"
|
||||
style={{
|
||||
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 22%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-primary) 10%, var(--color-background)) 30%, color-mix(in srgb, var(--color-accent) 8%, var(--color-background)) 60%, color-mix(in srgb, var(--color-primary) 14%, var(--color-background)) 100%)`,
|
||||
}}
|
||||
>
|
||||
<div
|
||||
className="inline-flex items-center gap-2 px-3.5 py-1 rounded-full text-xs font-bold uppercase tracking-wider mb-4"
|
||||
className="absolute inset-0 opacity-[0.04]"
|
||||
style={{
|
||||
backgroundImage:
|
||||
"radial-gradient(circle at 20% 30%, white 0%, transparent 50%), radial-gradient(circle at 80% 70%, var(--color-primary) 0%, transparent 50%)",
|
||||
}}
|
||||
/>
|
||||
<div
|
||||
className="absolute top-0 left-0 right-0 h-px"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-primary) 14%, transparent)",
|
||||
color: "var(--color-primary-readable, var(--color-primary))",
|
||||
"linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 40%, transparent), transparent)",
|
||||
}}
|
||||
>
|
||||
<span
|
||||
className="w-2 h-2 rounded-full animate-pulse"
|
||||
style={{ background: "var(--color-success)" }}
|
||||
/>
|
||||
{online.toLocaleString()} online now
|
||||
</div>
|
||||
<h1
|
||||
className="text-3xl md:text-4xl lg:text-5xl font-black leading-tight tracking-tight mb-3"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
Welcome to{" "}
|
||||
<span
|
||||
style={{
|
||||
color: "var(--color-primary-readable, var(--color-primary))",
|
||||
}}
|
||||
>
|
||||
{hotelName}
|
||||
</span>
|
||||
</h1>
|
||||
<p
|
||||
className="text-sm md:text-base max-w-lg leading-relaxed mb-6"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
{t("tagline")}
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-3 justify-center md:justify-start">
|
||||
<Link
|
||||
href="/register"
|
||||
className="inline-flex items-center gap-2 font-extrabold text-sm px-6 py-3 rounded-xl transition-all duration-200 hover:scale-105 active:scale-95"
|
||||
style={{
|
||||
background:
|
||||
"var(--color-primary-readable, var(--color-primary))",
|
||||
color:
|
||||
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
|
||||
boxShadow:
|
||||
"0 4px 16px color-mix(in srgb, var(--color-primary) 35%, transparent)",
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src="/assets/images/EnterHubbly.png"
|
||||
alt=""
|
||||
width={22}
|
||||
height={22}
|
||||
unoptimized
|
||||
className="inline-block"
|
||||
/>
|
||||
Enter {hotelName}
|
||||
</Link>
|
||||
<Link
|
||||
href="/client"
|
||||
className="inline-flex items-center gap-2 font-bold text-sm px-6 py-3 rounded-xl border-2 transition-all duration-200 hover:scale-105 active:scale-95"
|
||||
style={{
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-text-muted) 25%, transparent)",
|
||||
color: "var(--color-text-readable)",
|
||||
}}
|
||||
>
|
||||
Play now
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
<div className="shrink-0 flex items-end gap-4">
|
||||
<Image
|
||||
src="/assets/images/FrankwithBag.gif"
|
||||
alt="Frank"
|
||||
width={120}
|
||||
height={160}
|
||||
className="object-contain drop-shadow-xl"
|
||||
unoptimized
|
||||
priority
|
||||
/>
|
||||
<div className="hidden md:flex flex-col gap-2">
|
||||
{recentUsers.slice(0, 4).map((u) => (
|
||||
<div key={u.username} className="flex items-center gap-1.5">
|
||||
<Image
|
||||
src={avatarImageUrl(imager, u.look, {
|
||||
headOnly: true,
|
||||
direction: 2,
|
||||
size: "s",
|
||||
})}
|
||||
alt=""
|
||||
width={32}
|
||||
height={38}
|
||||
className="rounded-md"
|
||||
unoptimized
|
||||
/>
|
||||
<span
|
||||
className="text-xs font-bold truncate max-w-[80px]"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
{u.username}
|
||||
<div className="relative grid lg:grid-cols-5 gap-8 px-8 py-10 md:px-12 md:py-14 items-center">
|
||||
<div className="lg:col-span-3 text-center lg:text-left">
|
||||
<div
|
||||
className="inline-flex items-center gap-2 px-4 py-1.5 rounded-full text-[11px] font-bold uppercase tracking-[0.12em] mb-5 animate-scale-in"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-primary) 16%, transparent)",
|
||||
color:
|
||||
"var(--color-primary-readable, var(--color-primary))",
|
||||
border:
|
||||
"1px solid color-mix(in srgb, var(--color-primary) 20%, transparent)",
|
||||
}}
|
||||
>
|
||||
<span className="relative flex h-2 w-2">
|
||||
<span
|
||||
className="animate-ping absolute inline-flex h-full w-full rounded-full"
|
||||
style={{ background: "var(--color-success)" }}
|
||||
/>
|
||||
<span
|
||||
className="relative inline-flex rounded-full h-2 w-2"
|
||||
style={{ background: "var(--color-success)" }}
|
||||
/>
|
||||
</span>
|
||||
{online.toLocaleString()} guests online
|
||||
</div>
|
||||
))}
|
||||
|
||||
<h1
|
||||
className="text-4xl md:text-5xl lg:text-6xl font-black leading-[1.04] tracking-tight mb-4"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
Your story starts{" "}
|
||||
<span className="relative inline-block">
|
||||
<span
|
||||
style={{
|
||||
color:
|
||||
"var(--color-primary-readable, var(--color-primary))",
|
||||
}}
|
||||
>
|
||||
here
|
||||
</span>
|
||||
<span
|
||||
className="absolute -bottom-1 left-0 right-0 h-2 rounded-full opacity-30"
|
||||
style={{ background: "var(--color-primary)" }}
|
||||
/>
|
||||
</span>
|
||||
</h1>
|
||||
<p
|
||||
className="text-base md:text-lg leading-relaxed max-w-lg mb-7"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
{t("tagline")}
|
||||
</p>
|
||||
<div className="flex flex-wrap gap-3 justify-center lg:justify-start">
|
||||
<Link
|
||||
href="/register"
|
||||
className="group relative inline-flex items-center gap-2.5 font-extrabold text-sm px-7 py-3.5 rounded-xl transition-all duration-300 hover:scale-105 active:scale-95 overflow-hidden animate-pulse-glow"
|
||||
style={{
|
||||
background:
|
||||
"var(--color-primary-readable, var(--color-primary))",
|
||||
color:
|
||||
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
|
||||
}}
|
||||
>
|
||||
<span
|
||||
className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300"
|
||||
style={{
|
||||
background:
|
||||
"linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%)",
|
||||
}}
|
||||
/>
|
||||
<Image
|
||||
src="/assets/images/EnterHubbly.png"
|
||||
alt=""
|
||||
width={20}
|
||||
height={20}
|
||||
unoptimized
|
||||
className="relative"
|
||||
/>
|
||||
<span className="relative">Enter {hotelName}</span>
|
||||
</Link>
|
||||
<Link
|
||||
href="/client"
|
||||
className="relative inline-flex items-center gap-2 font-bold text-sm px-7 py-3.5 rounded-xl border-2 transition-all duration-300 hover:scale-105 active:scale-95 group"
|
||||
style={{
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-text-muted) 22%, transparent)",
|
||||
color: "var(--color-text-readable)",
|
||||
}}
|
||||
>
|
||||
<span
|
||||
className="absolute inset-0 rounded-xl opacity-0 group-hover:opacity-100 transition-opacity duration-300"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-text-muted) 5%, transparent)",
|
||||
}}
|
||||
/>
|
||||
<span className="relative">Play now</span>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="lg:col-span-2 flex items-end justify-center lg:justify-end gap-4">
|
||||
<div className="relative animate-float">
|
||||
<div
|
||||
className="absolute -bottom-4 -left-4 w-48 h-48 rounded-full opacity-[0.08] blur-[60px]"
|
||||
style={{ background: "var(--color-primary)" }}
|
||||
/>
|
||||
<Image
|
||||
src="/assets/images/FrankwithBag.gif"
|
||||
alt="Frank"
|
||||
width={160}
|
||||
height={210}
|
||||
className="object-contain drop-shadow-2xl relative"
|
||||
unoptimized
|
||||
priority
|
||||
/>
|
||||
<div
|
||||
className="absolute -top-3 -right-3 md:-right-6 z-10 rounded-2xl px-5 py-3 shadow-2xl border max-w-[200px] animate-scale-in"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-surface) 80%, transparent)",
|
||||
backdropFilter: "blur(16px)",
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-primary) 25%, transparent)",
|
||||
}}
|
||||
>
|
||||
<p
|
||||
className="text-sm font-black"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
Hey! 👋
|
||||
</p>
|
||||
<p
|
||||
className="text-[11px] font-semibold mt-0.5 leading-relaxed"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
Ready for an adventure?
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div className="hidden xl:flex flex-col gap-2.5">
|
||||
{recentUsers.slice(0, 5).map((u, i) => (
|
||||
<div
|
||||
key={u.username}
|
||||
className="flex items-center gap-2 rounded-xl px-3 py-1.5 transition-all duration-300 hover:bg-white/5"
|
||||
style={{
|
||||
animation: `fade-in-up 0.4s ease-out ${0.1 + i * 0.05}s both`,
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src={avatarImageUrl(imager, u.look, {
|
||||
headOnly: true,
|
||||
direction: 2,
|
||||
size: "s",
|
||||
})}
|
||||
alt=""
|
||||
width={28}
|
||||
height={34}
|
||||
className="rounded-md ring-1 ring-white/10"
|
||||
unoptimized
|
||||
/>
|
||||
<div className="min-w-0">
|
||||
<p
|
||||
className="text-xs font-bold truncate max-w-[90px]"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
{u.username}
|
||||
</p>
|
||||
<div className="flex items-center gap-1 mt-0.5">
|
||||
<span
|
||||
className="w-1.5 h-1.5 rounded-full"
|
||||
style={{ background: "var(--color-success)" }}
|
||||
/>
|
||||
<span
|
||||
className="text-[9px] font-semibold uppercase tracking-wider"
|
||||
style={{ color: "var(--color-success)" }}
|
||||
>
|
||||
Online
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* ── Stats bar ── */}
|
||||
<div className="grid grid-cols-3 gap-3">
|
||||
{/* ── 2. Stats ── */}
|
||||
<div className="grid grid-cols-3 gap-4 stagger-children">
|
||||
{[
|
||||
{ value: online.toLocaleString(), label: "Guests online" },
|
||||
{ value: users.toLocaleString(), label: "Total citizens" },
|
||||
{ value: rooms.toLocaleString(), label: "Rooms built" },
|
||||
{
|
||||
value: online.toLocaleString(),
|
||||
label: "Guests online",
|
||||
sub: "Exploring right now",
|
||||
icon: "🟢",
|
||||
},
|
||||
{
|
||||
value: users.toLocaleString(),
|
||||
label: "Total citizens",
|
||||
sub: "And counting",
|
||||
icon: "👥",
|
||||
},
|
||||
{
|
||||
value: rooms.toLocaleString(),
|
||||
label: "Rooms built",
|
||||
sub: "Waiting for you",
|
||||
icon: "🏠",
|
||||
},
|
||||
].map((s) => (
|
||||
<div
|
||||
key={s.label}
|
||||
className="rounded-xl border p-4 text-center transition-all duration-200 hover:-translate-y-0.5"
|
||||
className="relative overflow-hidden rounded-xl border transition-all duration-300 hover:-translate-y-0.5 hover:shadow-lg group cursor-default"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
||||
@@ -217,49 +322,88 @@ export default async function Home() {
|
||||
}}
|
||||
>
|
||||
<div
|
||||
className="text-xl md:text-2xl font-black tracking-tight"
|
||||
style={{
|
||||
color: "var(--color-primary-readable, var(--color-primary))",
|
||||
}}
|
||||
>
|
||||
{s.value}
|
||||
</div>
|
||||
<div
|
||||
className="text-xs font-bold uppercase mt-0.5 tracking-wider"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
{s.label}
|
||||
className="absolute -top-8 -right-8 w-20 h-20 rounded-full opacity-[0.05] group-hover:opacity-[0.1] transition-opacity duration-500"
|
||||
style={{ background: "var(--color-primary)" }}
|
||||
/>
|
||||
<div className="relative p-5 text-center">
|
||||
<div
|
||||
className="text-3xl md:text-4xl font-black tracking-tight mb-0.5"
|
||||
style={{
|
||||
color: "var(--color-primary-readable, var(--color-primary))",
|
||||
}}
|
||||
>
|
||||
{s.value}
|
||||
</div>
|
||||
<div
|
||||
className="text-xs font-extrabold uppercase tracking-widest"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
{s.label}
|
||||
</div>
|
||||
<div
|
||||
className="text-[10px] font-semibold mt-0.5"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
{s.sub}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* ── Main content: News + Sidebar ── */}
|
||||
<div className="grid lg:grid-cols-3 gap-6">
|
||||
{/* News feed (left, 2/3) */}
|
||||
<div className="lg:col-span-2 space-y-5">
|
||||
{featuredArticle && (
|
||||
{/* ── 3. News + Sidebar ── */}
|
||||
<div className="grid lg:grid-cols-12 gap-6 animate-fade-in-up">
|
||||
{/* Main feed */}
|
||||
<div className="lg:col-span-8 space-y-5">
|
||||
<div className="flex items-end justify-between mb-1">
|
||||
<div>
|
||||
<h2
|
||||
className="text-2xl font-black tracking-tight"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
Latest news
|
||||
</h2>
|
||||
<p
|
||||
className="text-sm mt-0.5"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
Stay up to date with {hotelName}
|
||||
</p>
|
||||
</div>
|
||||
<Link
|
||||
href={`/news/${featuredArticle.slug}`}
|
||||
className="group block overflow-hidden rounded-2xl border transition-all duration-300 hover:-translate-y-0.5"
|
||||
href="/news"
|
||||
className="hidden sm:inline-flex items-center gap-1.5 text-sm font-extrabold hover:underline shrink-0"
|
||||
style={{
|
||||
color: "var(--color-primary-readable, var(--color-primary))",
|
||||
}}
|
||||
>
|
||||
View all
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
{featured && (
|
||||
<Link
|
||||
href={`/news/${featured.slug}`}
|
||||
className="group relative block overflow-hidden rounded-xl border transition-all duration-500 hover:-translate-y-1 hover:shadow-xl"
|
||||
style={{
|
||||
textDecoration: "none",
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
|
||||
}}
|
||||
>
|
||||
<div className="relative h-48 md:h-56 overflow-hidden">
|
||||
{featuredArticle.image ? (
|
||||
<div className="relative h-52 md:h-64 overflow-hidden">
|
||||
{featured.image ? (
|
||||
<Image
|
||||
src={featuredArticle.image}
|
||||
src={featured.image}
|
||||
alt=""
|
||||
fill
|
||||
className="object-cover group-hover:scale-105 transition-transform duration-500"
|
||||
className="object-cover transition-transform duration-700 group-hover:scale-105"
|
||||
unoptimized
|
||||
/>
|
||||
) : (
|
||||
@@ -270,44 +414,55 @@ export default async function Home() {
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent" />
|
||||
<div className="absolute bottom-4 left-4 right-4">
|
||||
<h2
|
||||
className="text-xl md:text-2xl font-black text-white drop-shadow-lg"
|
||||
style={{ textShadow: "0 2px 8px rgba(0,0,0,0.5)" }}
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-black/70 via-black/10 to-transparent" />
|
||||
<div className="absolute bottom-0 left-0 right-0 p-5">
|
||||
<div
|
||||
className="inline-block px-2.5 py-1 rounded-md text-[10px] font-bold uppercase tracking-wider mb-2"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-primary) 80%, transparent)",
|
||||
color: "#fff",
|
||||
}}
|
||||
>
|
||||
{featuredArticle.title}
|
||||
</h2>
|
||||
<p className="text-xs font-semibold text-white/80 mt-1">
|
||||
{formatDate(featuredArticle.createdAt, "date", "")}
|
||||
Featured
|
||||
</div>
|
||||
<h3
|
||||
className="text-xl md:text-2xl font-black text-white drop-shadow-lg"
|
||||
style={{ textShadow: "0 2px 12px rgba(0,0,0,0.5)" }}
|
||||
>
|
||||
{featured.title}
|
||||
</h3>
|
||||
<p className="text-xs font-semibold text-white/70 mt-1">
|
||||
{formatDate(featured.createdAt, "date", "")}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
)}
|
||||
|
||||
{remainingArticles.length > 0 && (
|
||||
{rest.length > 0 && (
|
||||
<div className="space-y-3">
|
||||
{remainingArticles.map((a) => (
|
||||
{rest.map((a, i) => (
|
||||
<Link
|
||||
key={a.slug}
|
||||
href={`/news/${a.slug}`}
|
||||
className="group flex gap-4 items-start rounded-xl border p-3.5 transition-all duration-200 hover:-translate-y-0.5"
|
||||
className="group flex gap-4 items-start rounded-xl border p-3.5 transition-all duration-300 hover:-translate-y-0.5 hover:shadow-md"
|
||||
style={{
|
||||
textDecoration: "none",
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
|
||||
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
||||
animation: `fade-in-up 0.4s ease-out ${0.1 + i * 0.05}s both`,
|
||||
}}
|
||||
>
|
||||
<div className="relative w-16 h-16 shrink-0 rounded-lg overflow-hidden">
|
||||
<div className="relative w-14 h-14 shrink-0 rounded-xl overflow-hidden ring-1 ring-white/5">
|
||||
{a.image ? (
|
||||
<Image
|
||||
src={a.image}
|
||||
alt=""
|
||||
fill
|
||||
className="object-cover"
|
||||
className="object-cover transition-transform duration-500 group-hover:scale-110"
|
||||
unoptimized
|
||||
/>
|
||||
) : (
|
||||
@@ -321,13 +476,13 @@ export default async function Home() {
|
||||
</div>
|
||||
<div className="min-w-0 flex-1">
|
||||
<h3
|
||||
className="text-sm font-extrabold leading-snug"
|
||||
className="text-sm font-extrabold leading-snug group-hover:underline"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
{a.title}
|
||||
</h3>
|
||||
<p
|
||||
className="text-xs font-semibold mt-1"
|
||||
className="text-[11px] font-semibold mt-1"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
@@ -341,39 +496,41 @@ export default async function Home() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
<Link
|
||||
href="/news"
|
||||
className="inline-flex items-center gap-1.5 text-sm font-extrabold hover:underline"
|
||||
style={{
|
||||
color: "var(--color-primary-readable, var(--color-primary))",
|
||||
}}
|
||||
>
|
||||
Browse all articles →
|
||||
</Link>
|
||||
<div className="sm:hidden text-center">
|
||||
<Link
|
||||
href="/news"
|
||||
className="inline-flex items-center gap-1.5 text-sm font-extrabold"
|
||||
style={{
|
||||
color: "var(--color-primary-readable, var(--color-primary))",
|
||||
}}
|
||||
>
|
||||
View all articles →
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Sidebar (right, 1/3) */}
|
||||
<aside className="space-y-4">
|
||||
{/* Quick features */}
|
||||
{/* Sidebar */}
|
||||
<aside className="lg:col-span-4 space-y-4">
|
||||
{/* Quick actions */}
|
||||
<div
|
||||
className="rounded-xl border p-4"
|
||||
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
|
||||
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
||||
}}
|
||||
>
|
||||
<h3
|
||||
className="text-xs font-extrabold uppercase tracking-wider mb-3"
|
||||
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
Quick actions
|
||||
Navigate
|
||||
</h3>
|
||||
<div className="space-y-2">
|
||||
<div className="space-y-0.5">
|
||||
{[
|
||||
{
|
||||
icon: "/assets/images/icons/navigation/me.png",
|
||||
@@ -399,51 +556,72 @@ export default async function Home() {
|
||||
<Link
|
||||
key={item.label}
|
||||
href={item.href}
|
||||
className="flex items-center gap-2.5 rounded-lg px-3 py-2 text-sm font-bold transition-colors hover:underline"
|
||||
className="flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-bold transition-all duration-200 hover:underline group"
|
||||
style={{
|
||||
color: "var(--color-text-readable)",
|
||||
textDecoration: "none",
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src={item.icon}
|
||||
alt=""
|
||||
width={20}
|
||||
height={20}
|
||||
unoptimized
|
||||
className="shrink-0"
|
||||
/>
|
||||
<span
|
||||
className="relative shrink-0 w-7 h-7 rounded-lg flex items-center justify-center transition-transform duration-200 group-hover:scale-110"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-primary) 10%, transparent)",
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src={item.icon}
|
||||
alt=""
|
||||
width={16}
|
||||
height={16}
|
||||
unoptimized
|
||||
/>
|
||||
</span>
|
||||
{item.label}
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Recent users */}
|
||||
{/* Online grid */}
|
||||
{recentUsers.length > 0 && (
|
||||
<div
|
||||
className="rounded-xl border p-4"
|
||||
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
|
||||
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
||||
}}
|
||||
>
|
||||
<h3
|
||||
className="text-xs font-extrabold uppercase tracking-wider mb-3"
|
||||
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3 flex items-center gap-2"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
<span className="relative flex h-2 w-2">
|
||||
<span
|
||||
className="animate-ping absolute inline-flex h-full w-full rounded-full"
|
||||
style={{ background: "var(--color-success)" }}
|
||||
/>
|
||||
<span
|
||||
className="relative inline-flex rounded-full h-2 w-2"
|
||||
style={{ background: "var(--color-success)" }}
|
||||
/>
|
||||
</span>
|
||||
Online now
|
||||
</h3>
|
||||
<div className="grid grid-cols-3 gap-2">
|
||||
<div className="grid grid-cols-3 gap-2.5">
|
||||
{recentUsers.slice(0, 9).map((u) => (
|
||||
<div
|
||||
key={u.username}
|
||||
className="flex flex-col items-center gap-0.5"
|
||||
className="flex flex-col items-center gap-1 rounded-lg p-2 transition-all duration-200 hover:scale-105 cursor-default"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-primary) 4%, transparent)",
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src={avatarImageUrl(imager, u.look, {
|
||||
@@ -452,40 +630,36 @@ export default async function Home() {
|
||||
size: "s",
|
||||
})}
|
||||
alt=""
|
||||
width={36}
|
||||
height={42}
|
||||
width={32}
|
||||
height={38}
|
||||
className="rounded-md"
|
||||
unoptimized
|
||||
/>
|
||||
<span
|
||||
className="text-[10px] font-bold truncate w-full text-center leading-tight"
|
||||
className="text-[9px] font-bold truncate w-full text-center leading-tight"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
{u.username}
|
||||
</span>
|
||||
<span
|
||||
className="w-1.5 h-1.5 rounded-full"
|
||||
style={{ background: "var(--color-success)" }}
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Recent photos */}
|
||||
{/* Photos */}
|
||||
{recentPhotos.length > 0 && (
|
||||
<div
|
||||
className="rounded-xl border p-4"
|
||||
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
|
||||
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
||||
}}
|
||||
>
|
||||
<h3
|
||||
className="text-xs font-extrabold uppercase tracking-wider mb-3"
|
||||
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-3"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
@@ -493,12 +667,12 @@ export default async function Home() {
|
||||
>
|
||||
Recent photos
|
||||
</h3>
|
||||
<div className="grid grid-cols-2 gap-2">
|
||||
<div className="grid grid-cols-3 gap-2">
|
||||
{recentPhotos.map((p) => (
|
||||
<Link
|
||||
key={p.id}
|
||||
href="/photos"
|
||||
className="block rounded-lg overflow-hidden aspect-square"
|
||||
className="block rounded-lg overflow-hidden aspect-square group"
|
||||
style={{ textDecoration: "none" }}
|
||||
>
|
||||
<div className="relative w-full h-full">
|
||||
@@ -506,63 +680,114 @@ export default async function Home() {
|
||||
src={p.url}
|
||||
alt=""
|
||||
fill
|
||||
className="object-cover hover:scale-105 transition-transform duration-300"
|
||||
className="object-cover transition-all duration-500 group-hover:scale-110 group-hover:brightness-110"
|
||||
unoptimized
|
||||
/>
|
||||
<div
|
||||
className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300"
|
||||
style={{
|
||||
background:
|
||||
"linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 50%)",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Fun fact */}
|
||||
<div
|
||||
className="rounded-xl border p-4 text-center"
|
||||
style={{
|
||||
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 10%, var(--color-surface)), color-mix(in srgb, var(--color-primary) 4%, var(--color-background)))`,
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-primary) 18%, transparent)",
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src="/assets/images/FrankwithBag.gif"
|
||||
alt="Frank"
|
||||
width={60}
|
||||
height={80}
|
||||
className="object-contain mx-auto mb-2 opacity-60"
|
||||
unoptimized
|
||||
/>
|
||||
<p
|
||||
className="text-xs font-bold leading-relaxed"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
"See you in the lobby!"
|
||||
</p>
|
||||
</div>
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
{/* ── CTA ── */}
|
||||
<section
|
||||
className="rounded-2xl border text-center px-6 py-8"
|
||||
style={{
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-primary) 25%, transparent)",
|
||||
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 12%, var(--color-surface)), color-mix(in srgb, var(--color-primary) 4%, var(--color-background)))`,
|
||||
}}
|
||||
>
|
||||
<h2
|
||||
className="text-2xl font-black tracking-tight mb-2"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
See you inside!
|
||||
</h2>
|
||||
<p
|
||||
className="text-sm mb-5 max-w-md mx-auto"
|
||||
{/* ── 4. CTA ── */}
|
||||
<section className="gradient-border">
|
||||
<div
|
||||
className="relative overflow-hidden rounded-[1.75rem] px-8 py-12 md:py-14 text-center"
|
||||
style={{
|
||||
color: "var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
background: `linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 16%, var(--color-surface)) 0%, var(--color-surface) 60%)`,
|
||||
}}
|
||||
>
|
||||
{hotelName} is free, forever. Create your account and start your
|
||||
adventure today.
|
||||
</p>
|
||||
<Link
|
||||
href="/register"
|
||||
className="inline-flex items-center gap-2 font-extrabold text-sm px-7 py-3 rounded-xl transition-all duration-200 hover:scale-105 active:scale-95"
|
||||
style={{
|
||||
background: "var(--color-primary-readable, var(--color-primary))",
|
||||
color:
|
||||
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
|
||||
boxShadow:
|
||||
"0 4px 16px color-mix(in srgb, var(--color-primary) 35%, transparent)",
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src="/assets/images/EnterHubbly.png"
|
||||
alt=""
|
||||
width={22}
|
||||
height={22}
|
||||
unoptimized
|
||||
className="inline-block"
|
||||
<div
|
||||
className="absolute inset-0 opacity-[0.05]"
|
||||
style={{
|
||||
backgroundImage:
|
||||
"radial-gradient(circle at 50% 50%, var(--color-primary) 0%, transparent 60%)",
|
||||
}}
|
||||
/>
|
||||
Join for free
|
||||
</Link>
|
||||
<div className="relative max-w-lg mx-auto">
|
||||
<h2
|
||||
className="text-3xl md:text-4xl font-black tracking-tight mb-3"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
The doors are open
|
||||
</h2>
|
||||
<p
|
||||
className="text-sm md:text-base leading-relaxed mb-7 max-w-sm mx-auto"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
{hotelName} is free, forever. Your first room is waiting — come
|
||||
join us!
|
||||
</p>
|
||||
<Link
|
||||
href="/register"
|
||||
className="group relative inline-flex items-center gap-2.5 font-extrabold text-sm px-8 py-3.5 rounded-xl transition-all duration-300 hover:scale-105 active:scale-95 overflow-hidden animate-pulse-glow"
|
||||
style={{
|
||||
background:
|
||||
"var(--color-primary-readable, var(--color-primary))",
|
||||
color:
|
||||
"var(--color-primary-foreground-readable, var(--color-primary-foreground))",
|
||||
}}
|
||||
>
|
||||
<span
|
||||
className="absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-300"
|
||||
style={{
|
||||
background:
|
||||
"linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%)",
|
||||
}}
|
||||
/>
|
||||
<Image
|
||||
src="/assets/images/EnterHubbly.png"
|
||||
alt=""
|
||||
width={20}
|
||||
height={20}
|
||||
unoptimized
|
||||
className="relative"
|
||||
/>
|
||||
<span className="relative">Claim your room</span>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -36,84 +36,111 @@ export default async function RegisterPage() {
|
||||
]);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col lg:flex-row gap-8">
|
||||
{/* ── Left panel: Frank + avatars ── */}
|
||||
<div className="flex flex-col lg:flex-row gap-8 min-h-[600px] animate-fade-in-up">
|
||||
{/* ── Left: Reception ── */}
|
||||
<div className="lg:w-80 shrink-0 space-y-4">
|
||||
<div
|
||||
className="rounded-2xl border p-6 text-center"
|
||||
style={{
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-primary) 25%, transparent)",
|
||||
background: `linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 16%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-primary) 5%, var(--color-background)) 100%)`,
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src="/assets/images/FrankwithBag.gif"
|
||||
alt="Frank"
|
||||
width={140}
|
||||
height={180}
|
||||
className="object-contain mx-auto drop-shadow-xl"
|
||||
unoptimized
|
||||
priority
|
||||
/>
|
||||
<h1
|
||||
className="text-xl font-black mt-3"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
Join{" "}
|
||||
<span
|
||||
style={{
|
||||
color: "var(--color-primary-readable, var(--color-primary))",
|
||||
}}
|
||||
>
|
||||
{hotelName}
|
||||
</span>
|
||||
</h1>
|
||||
<p
|
||||
className="text-xs mt-1 max-w-[200px] mx-auto leading-relaxed"
|
||||
<div className="gradient-border">
|
||||
<div
|
||||
className="relative overflow-hidden rounded-[1.75rem] p-6 text-center animate-gradient"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
background: `linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 20%, var(--color-surface)) 0%, color-mix(in srgb, var(--color-primary) 6%, var(--color-background)) 100%)`,
|
||||
}}
|
||||
>
|
||||
{t("tagline")}
|
||||
</p>
|
||||
<div
|
||||
className="inline-flex items-center gap-1.5 mt-3 text-xs font-bold"
|
||||
style={{ color: "var(--color-success)" }}
|
||||
>
|
||||
<span
|
||||
className="w-2 h-2 rounded-full animate-pulse"
|
||||
style={{ background: "var(--color-success)" }}
|
||||
<div
|
||||
className="absolute inset-0 opacity-[0.04]"
|
||||
style={{
|
||||
backgroundImage:
|
||||
"radial-gradient(circle at 50% 30%, white 0%, transparent 60%)",
|
||||
}}
|
||||
/>
|
||||
{online.toLocaleString()} online now
|
||||
<div
|
||||
className="absolute top-0 left-0 right-0 h-px"
|
||||
style={{
|
||||
background:
|
||||
"linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 30%, transparent), transparent)",
|
||||
}}
|
||||
/>
|
||||
<div className="relative">
|
||||
<Image
|
||||
src="/assets/images/FrankwithBag.gif"
|
||||
alt="Frank"
|
||||
width={130}
|
||||
height={170}
|
||||
className="object-contain mx-auto drop-shadow-2xl animate-float"
|
||||
unoptimized
|
||||
priority
|
||||
/>
|
||||
<div
|
||||
className="inline-flex items-center gap-2 px-3.5 py-1 rounded-full text-[10px] font-bold uppercase tracking-[0.12em] mt-4 mb-3"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-primary) 16%, transparent)",
|
||||
color: "var(--color-primary-readable, var(--color-primary))",
|
||||
border:
|
||||
"1px solid color-mix(in srgb, var(--color-primary) 18%, transparent)",
|
||||
}}
|
||||
>
|
||||
<span
|
||||
className="w-1.5 h-1.5 rounded-full animate-pulse"
|
||||
style={{ background: "var(--color-success)" }}
|
||||
/>
|
||||
{online.toLocaleString()} online
|
||||
</div>
|
||||
<h1
|
||||
className="text-xl font-black"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
Join{" "}
|
||||
<span
|
||||
style={{
|
||||
color:
|
||||
"var(--color-primary-readable, var(--color-primary))",
|
||||
}}
|
||||
>
|
||||
{hotelName}
|
||||
</span>
|
||||
</h1>
|
||||
<p
|
||||
className="text-xs mt-1 max-w-[200px] mx-auto leading-relaxed"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
{t("tagline")}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{recentUsers.length > 0 && (
|
||||
<div
|
||||
className="rounded-xl border p-4"
|
||||
className="rounded-xl border p-4 transition-all duration-300 hover:shadow-md"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-background) 50%, var(--color-surface))",
|
||||
borderColor:
|
||||
"color-mix(in srgb, var(--color-text-muted) 12%, transparent)",
|
||||
"color-mix(in srgb, var(--color-text-muted) 10%, transparent)",
|
||||
}}
|
||||
>
|
||||
<h3
|
||||
className="text-xs font-extrabold uppercase tracking-wider mb-2.5"
|
||||
className="text-[10px] font-extrabold uppercase tracking-[0.15em] mb-2.5"
|
||||
style={{
|
||||
color:
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
Who's online
|
||||
Who's online
|
||||
</h3>
|
||||
<div className="grid grid-cols-4 gap-1.5">
|
||||
{recentUsers.map((u) => (
|
||||
<div
|
||||
key={u.username}
|
||||
className="flex flex-col items-center gap-0.5"
|
||||
className="flex flex-col items-center gap-0.5 rounded-lg p-1.5 transition-all duration-200 hover:scale-105 cursor-default"
|
||||
style={{
|
||||
background:
|
||||
"color-mix(in srgb, var(--color-primary) 4%, transparent)",
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
src={avatarImageUrl(imager, u.look, {
|
||||
@@ -122,13 +149,13 @@ export default async function RegisterPage() {
|
||||
size: "s",
|
||||
})}
|
||||
alt=""
|
||||
width={30}
|
||||
height={36}
|
||||
width={28}
|
||||
height={34}
|
||||
className="rounded-md"
|
||||
unoptimized
|
||||
/>
|
||||
<span
|
||||
className="text-[9px] font-bold truncate w-full text-center leading-tight"
|
||||
className="text-[8px] font-bold truncate w-full text-center leading-tight"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
{u.username}
|
||||
@@ -158,11 +185,11 @@ export default async function RegisterPage() {
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* ── Right: Registration form ── */}
|
||||
{/* ── Right: Registration ── */}
|
||||
<div className="flex-1">
|
||||
<div className="mb-5">
|
||||
<div className="mb-6 text-center lg:text-left">
|
||||
<h2
|
||||
className="text-xl font-black tracking-tight"
|
||||
className="text-2xl font-black tracking-tight"
|
||||
style={{ color: "var(--color-text-readable)" }}
|
||||
>
|
||||
Create your account
|
||||
@@ -174,7 +201,7 @@ export default async function RegisterPage() {
|
||||
"var(--color-text-muted-readable, var(--color-text-muted))",
|
||||
}}
|
||||
>
|
||||
Free and takes less than a minute
|
||||
Free and takes less than a minute — no email required
|
||||
</p>
|
||||
</div>
|
||||
<RegisterForm
|
||||
|
||||
Reference in new issue
Block a user