mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
One app carried the Hanzo shell and twenty did not, so a reader crossing from base.hanzo.ai to zen.hanzo.ai left the ecosystem and landed somewhere that only resembled it. Five of those twenty had hand-rolled a footer of their own — sixteen lines of copyright and a repo link, written five separate times. Each app now loads the brand tokens before its own sheet, reports through docs-analytics under its own product name, and renders HanzoFooter from @hanzogui/shell — the same 6-column ecosystem footer, defined once, that apps/docs already used. A footer written inside a layout was chrome pretending to be content, and it is gone. A footer written inside a page is content pretending to be chrome: those keep their words and become sections, so each page has one contentinfo landmark instead of two. Three manifests listed @hanzo/font twice in the same object. Builds verified across the four shapes this repo has: a static export, a next.config.mjs app, a single-page app with no route groups, and one that already reported analytics. Every one renders exactly one footer. Co-authored-by: Hanzo Dev <[email protected]>
45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
// Brand tokens load before the app's own sheet so the theme can override
|
|
// where the two meet.
|
|
import '@hanzo/brand/styles/variables.css';
|
|
import './global.css';
|
|
import type { Viewport } from 'next';
|
|
import { baseUrl, createMetadata } from '@/lib/metadata';
|
|
import { Body } from '@/app/layout.client';
|
|
import { Provider } from './provider';
|
|
import type { ReactNode } from 'react';
|
|
import { TreeContextProvider } from '@hanzo/docs/ui/contexts/tree';
|
|
import { source } from '@/lib/source';
|
|
import { NextProvider } from '@hanzo/docs/core/framework/next';
|
|
import { Analytics } from '@hanzo/docs-analytics';
|
|
|
|
export const metadata = createMetadata({
|
|
title: {
|
|
template: '%s | Hanzo Bot',
|
|
default: 'Hanzo Bot — Your AI Team in a Box',
|
|
},
|
|
description: 'One bot. Every role. Every channel. Full-blown computer-using AI agent that runs free on your Mac or deploys to the cloud starting at $5/mo.',
|
|
metadataBase: baseUrl,
|
|
});
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: [
|
|
{ media: '(prefers-color-scheme: dark)', color: '#0A0A0A' },
|
|
{ media: '(prefers-color-scheme: light)', color: '#0A0A0A' },
|
|
],
|
|
};
|
|
|
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<Body>
|
|
<NextProvider>
|
|
<TreeContextProvider tree={source.getPageTree()}>
|
|
<Provider>{children}</Provider>
|
|
</TreeContextProvider>
|
|
</NextProvider>
|
|
<Analytics product="engine-docs" />
|
|
</Body>
|
|
</html>
|
|
);
|
|
}
|