b90ff252d1
Public archive with sidebar navigation, project pages, month archive, search and entry pages with image blocks. Admin area for brands, projects, post types, users, api clients, media and the entry editor with drag and drop images, preview per audience, scheduling and publish checks. Read and write API with bearer tokens, audience scoping, idempotent creation, OpenAPI document and editorial guide. Magic link login with configurable allowed domains, whole app behind the session gate. 456 tests including design rule checks.
32 lines
956 B
TypeScript
32 lines
956 B
TypeScript
import './globals.css'
|
|
import type { Metadata } from 'next'
|
|
import type { ReactNode } from 'react'
|
|
import { NextIntlClientProvider } from 'next-intl'
|
|
import { getLocale, getTranslations } from 'next-intl/server'
|
|
import { fontVariables } from '~/lib/fonts'
|
|
import { themeInitScript } from '~/components/ui/theme'
|
|
|
|
export async function generateMetadata(): Promise<Metadata> {
|
|
const t = await getTranslations('app')
|
|
|
|
return {
|
|
title: t('name'),
|
|
description: t('tagline'),
|
|
}
|
|
}
|
|
|
|
export default async function RootLayout({ children }: { children: ReactNode }) {
|
|
const locale = await getLocale()
|
|
|
|
return (
|
|
<html lang={locale} className={fontVariables} suppressHydrationWarning>
|
|
<head>
|
|
<script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
|
|
</head>
|
|
<body className="h-dvh overflow-hidden bg-paper font-body text-base text-ink antialiased">
|
|
<NextIntlClientProvider>{children}</NextIntlClientProvider>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|