- The browser's own form checks (required, minLength, e-mail format) show Hungarian text on every page (ValidationMessages in the root layout). - User-facing backend errors are Hungarian: e-mail/password login, password length, links, invitations, sharing, questions, limits. Google/Apple token failures log the reason and tell the user to retry. - errorText covers not_found, horoscope_unavailable and internal errors. - Input fields: lighter background and gold caret on focus, the example text steps aside, so a click visibly lands in the field. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
import type { Metadata } from "next";
|
||
import { Cormorant_Garamond, Inter } from "next/font/google";
|
||
import { Suspense } from "react";
|
||
|
||
import { NightSky } from "@/components/NightSky";
|
||
import { PaymentReturn } from "@/components/PaymentReturn";
|
||
import { SiteHeader } from "@/components/SiteHeader";
|
||
import { ValidationMessages } from "@/components/ValidationMessages";
|
||
import { getMe } from "@/lib/server";
|
||
import { siteUrl } from "@/lib/share";
|
||
|
||
import "./globals.css";
|
||
|
||
const cormorant = Cormorant_Garamond({
|
||
subsets: ["latin", "latin-ext"],
|
||
weight: ["500", "600"],
|
||
variable: "--font-cormorant",
|
||
});
|
||
const inter = Inter({ subsets: ["latin", "latin-ext"], variable: "--font-inter" });
|
||
|
||
export async function generateMetadata(): Promise<Metadata> {
|
||
return {
|
||
// Relative canonical and alternate addresses resolve against the site's address.
|
||
metadataBase: new URL(await siteUrl()),
|
||
title: { default: "Sorsfonalak", template: "%s · Sorsfonalak" },
|
||
description: "Születési képlet, szinasztria és közösség – egy helyen.",
|
||
};
|
||
}
|
||
|
||
export default async function RootLayout({ children }: { children: React.ReactNode }) {
|
||
const me = await getMe();
|
||
return (
|
||
<html lang="hu" className={`${cormorant.variable} ${inter.variable}`}>
|
||
<body>
|
||
<NightSky />
|
||
<ValidationMessages />
|
||
{me && <SiteHeader me={me} />}
|
||
{children}
|
||
{me && (
|
||
<Suspense fallback={null}>
|
||
<PaymentReturn />
|
||
</Suspense>
|
||
)}
|
||
</body>
|
||
</html>
|
||
);
|
||
}
|