Web-tier features completing the AtomCMS→Next.js conversion (slice 2): UI/UX: - Dark mode: html.dark CSS-var overrides + ThemeSwitcher (localStorage, no-flash boot script) wired into the nav. - i18n (next-intl, cookie-based / no URL routing): en + it catalogs, request.ts, provider in root layout, LanguageSwitcher; shell (nav, header, footer) fully translated. URLs + access-guard unchanged. - globals.css: --muted/--border aliases used across admin pages. User features: - /messages: offline messages + friend-request accept (server action re-reads session, two directional rows, idempotent). - Email verification: signed-token /verify route + sendVerification wired into register (best-effort, never blocks signup). - Article reactions: toggle UI on news/[slug] + server action. - Content moderation service (website_wordfilter + optional OpenAI moderations, fail-open) wired into article comments + guestbook. Admin CRUD parity (Filament replacement): - /admin/shop (+ new/[id]) packages CRUD + read-only orders. - /admin/transactions read-only PayPal log. - /admin/permissions, /admin/tags, /admin/ads (+ new/[id]), /admin/help-questions (+ new/[id]), /admin/radio/history, /admin/users/[id]/edit. All gated by requireStaff + logStaffActivity. Verified: tsc 0, vitest 48/48, next build 0 (all routes incl. new admin CRUD + /messages + /verify).
20 lines
698 B
TypeScript
20 lines
698 B
TypeScript
import { getTranslations } from "next-intl/server";
|
|
import { siteSettings } from "@/lib/services/site-settings";
|
|
|
|
export async function SiteFooter() {
|
|
const hotelName = await siteSettings.get("hotel_name", "Atom");
|
|
const year = new Date().getFullYear();
|
|
const t = await getTranslations("footer");
|
|
|
|
return (
|
|
<footer
|
|
className="mt-auto flex h-14 w-full flex-col items-center justify-center text-sm md:flex-row md:px-8"
|
|
style={{ backgroundColor: "var(--color-surface)", color: "var(--color-text-muted)" }}
|
|
>
|
|
<div className="md:font-semibold text-[12px] md:text-[14px]">
|
|
{t("copyright", { year, hotel: hotelName ?? "Atom" })}
|
|
</div>
|
|
</footer>
|
|
);
|
|
}
|