Files
zeekay 03ab975282 Send analytics from hanzo.community, and publish on push
The page mounts the docs.hanzo.ai wiring: @hanzo/event sends the pageview
to api.hanzo.ai/v1/event with project hanzo-community's publishable key,
startTags loads the site's GA4 and Meta tags from cloud once the visitor
consents, and @hanzo/ui/consent is the banner.

@hanzo/ui 8.29.12 is the first version this repo takes that has the
banner. It registers its gui config, so stacks type against the v5
shorthands, and the page moves to them. Its stylesheet is imported in the
layout; without it the export rendered unstyled. Overrides keep one gui
and one event client in the tree.

hanzo.yml and the hanzoai/ci caller type-check, build out/ and publish it
as Sites project hanzo-community on every push to main.
2026-10-25 19:21:03 -07:00

28 lines
801 B
TypeScript

import '@hanzo/ui/styles.css'
import type { Metadata } from 'next'
import { Hanzo } from '@hanzo/ui'
import { Analytics } from './analytics'
export const metadata: Metadata = {
metadataBase: new URL('https://hanzo.community'),
title: {
default: 'Hanzo Community',
template: '%s — Hanzo Community',
},
description:
'Join the Hanzo AI community. Connect with developers, researchers, and builders on Discord, forums, and events.',
}
/** `Analytics` sits inside `Hanzo` so the consent banner is themed. */
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" suppressHydrationWarning>
<body>
<Hanzo theme="dark">
<Analytics>{children}</Analytics>
</Hanzo>
</body>
</html>
)
}