diff --git a/src/app/(site)/page.tsx b/src/app/(site)/page.tsx index f69f9cb9..cef6a1ac 100644 --- a/src/app/(site)/page.tsx +++ b/src/app/(site)/page.tsx @@ -99,6 +99,24 @@ export default async function Home() { const captcha = await captchaConfig(); const nonce = (await headers()).get("x-nonce") ?? undefined; + const features = [ + { + title: tp("featuresAvatar"), + desc: tp("featuresAvatarDesc"), + icon: "/assets/images/icons/friends.png", + }, + { + title: tp("featuresFurniture"), + desc: tp("featuresFurnitureDesc"), + icon: "/assets/images/icons/catalog.png", + }, + { + title: tp("featuresCommunity"), + desc: tp("featuresCommunityDesc"), + icon: "/assets/images/icons/navigation/goody.png", + }, + ]; + return (
{/* ── Top Bar ── */} @@ -196,98 +214,118 @@ export default async function Home() { />
-
-
- - - - - {th("online", { count: online, hotel: hotelName })} -
-

- -

-

- {th("tagline")} -

-
- - - {tp("register")} - - - {th("login")} - -
+
+ + + + + {th("online", { count: online, hotel: hotelName })}
-
-
- Frank +

+ +

+

+ {tp("welcomeBody")} +

+
+ + + {tp("register")} + + + {th("login")} +
- {/* ── Stats ── */} + {/* ── Features ── */} -
+
+ {features.map((f) => ( + +
+ +
+

+ {f.title} +

+

+ {f.desc} +

+
+ ))} +
+ + + {/* ── Stats + Login ── */} + +
{[ { value: users, @@ -299,52 +337,38 @@ export default async function Home() { label: tp("statsRooms"), icon: "/assets/images/icons/catalog.png", }, + { + value: online, + label: tp("statsOnline"), + icon: "/assets/images/icons/navigation/me.png", + }, + { + value: articles.length, + label: tp("statsArticles"), + icon: "/assets/images/icons/article.gif", + }, ].map((s) => ( +
+ +
-
-
- -
-
- -
-
- {s.label} -
+ className="text-xs font-bold uppercase tracking-widest flex items-center justify-center gap-1.5" + style={{ color: "var(--color-text-muted)" }} + > + + {s.label}
))}
- {/* ── Login + News ── */} + {/* ── Login + Online users ── */}
- {/* Left: Login & Online users */} - {/* Right: News */} + {/* News */} -
+
{recentPhotos.slice(0, 4).map((p) => ( -
- {/* Left panel */} -
+
+ {/* Left: intro panel */} +
+
- Frank -
- - {tpr("usersOnline", { count: online })} +
+
+ Frank +
+
+
+ + {tpr("usersOnline", { count: online })} +
+

+ {tpr("title")} — {hotelName} +

+

+ {tpr("subtitle")} +

+
-

- {tpr("title")} — {hotelName} -

-

- {th("tagline")} -

@@ -251,7 +261,7 @@ export default async function RegisterPage() { )}

{tpr("alreadyHaveAccountPre")}{" "} @@ -268,7 +278,7 @@ export default async function RegisterPage() {

{/* Right: form */} -
+