mirror of
https://github.com/hanzoai/mpc.git
synced 2026-10-30 19:45:28 +00:00
The docs layout named three different faces in one place: a binding called `inter`, constructed from next/font/google so it actually held Inter, publishing `--font-geist-sans`, which @hanzo/font does not set. Whichever a reader trusted, two were wrong. It takes Zen and ZenMono from @hanzo/font — named `sans` and `mono` for the role they fill, setting the properties the package publishes.
58 lines
1.4 KiB
TypeScript
58 lines
1.4 KiB
TypeScript
import "./global.css"
|
|
import { Analytics } from "./analytics"
|
|
import { RootProvider } from "fumadocs-ui/provider/next"
|
|
import { Zen } from '@hanzo/font'
|
|
import type { ReactNode } from "react"
|
|
|
|
const sans = Zen
|
|
|
|
const mono = ZenMono
|
|
|
|
export const metadata = {
|
|
title: {
|
|
default: "Hanzo MPC - Threshold Signature Documentation",
|
|
template: "%s | Hanzo MPC",
|
|
},
|
|
description: "Multi-Party Computation for threshold signatures - ECDSA, EdDSA, and Taproot",
|
|
openGraph: {
|
|
title: "Hanzo MPC",
|
|
description: "Multi-Party Computation for threshold signatures",
|
|
url: "https://mpc.hanzo.ai",
|
|
siteName: "Hanzo MPC",
|
|
type: "website",
|
|
},
|
|
twitter: {
|
|
card: "summary_large_image",
|
|
title: "Hanzo MPC",
|
|
description: "Multi-Party Computation for threshold signatures",
|
|
creator: "@hanzoai",
|
|
},
|
|
}
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
className={`${sans.variable} ${mono.variable}`}
|
|
suppressHydrationWarning
|
|
>
|
|
<body className="min-h-svh bg-background font-sans antialiased">
|
|
<RootProvider
|
|
search={{
|
|
enabled: true,
|
|
}}
|
|
theme={{
|
|
enabled: true,
|
|
defaultTheme: "dark",
|
|
}}
|
|
>
|
|
<div className="relative flex min-h-svh flex-col bg-background">
|
|
{children}
|
|
</div>
|
|
</RootProvider>
|
|
<Analytics />
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|