mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-30 03:32:48 +00:00
Twelve example apps opened with next/font/google Inter, so every developer who copied one started their project on a face that is not ours and a request to a font host we do not control. They use @hanzo/font's ZenSans (and ZenMono where the example wanted a second family), with the dependency declared so it resolves. examples/proposals bound --font-sans to var(--font-inter), a variable nothing sets any more; it reads --font-zen-sans.
24 lines
757 B
TypeScript
24 lines
757 B
TypeScript
import '@hanzo/docs-ui/style.css';
|
|
import { RootProvider } from '@hanzo/docs-ui/provider/next';
|
|
import { ZenSans } from '@hanzo/font/sans';
|
|
import { ZenMono } from '@hanzo/font/mono';
|
|
import { translations } from '@/lib/layout.shared';
|
|
import { i18nProvider } from '@hanzo/docs-ui/i18n';
|
|
|
|
export default async function Layout({ params, children }: LayoutProps<'/[lang]'>) {
|
|
const { lang } = await params;
|
|
return (
|
|
<html lang={lang} className={ZenSans.className} suppressHydrationWarning>
|
|
<body
|
|
style={{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
minHeight: '100vh',
|
|
}}
|
|
>
|
|
<RootProvider i18n={i18nProvider(translations, lang)}>{children}</RootProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|