mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-29 07:01:44 +00:00
A version written into a manifest is written into every manifest that wants it, which is how eslint came to exist in a hundred and four forms across this estate and how a package came to resolve twice at run time. The catalog moves the number out of the manifest: a manifest names the package, the workspace names the version. Four are held below their latest because the newer release cannot be used, and the reason is recorded rather than the version alone: @noble/hashes 2 renamed every subpath the web3 stack imports, @splinetool/runtime 2 depends on a package that was never published, @dynamic-labs 5.4.1 the same, and react-resizable-panels 3 points its types condition at the bundle. Co-authored-by: Hanzo Dev <[email protected]>
94 lines
3.1 KiB
TypeScript
94 lines
3.1 KiB
TypeScript
import type { ReactNode } from 'react';
|
|
import Link from 'next/link';
|
|
import { MessageSquare, BookOpen } from 'lucide-react'
|
|
import { Github } from '@hanzo/ui/brands';
|
|
import { brand } from '../../lib/config';
|
|
|
|
export default function HomeLayout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<>
|
|
{/* Navigation */}
|
|
<header className="sticky top-0 z-40 border-b border-fd-border bg-fd-background/80 backdrop-blur-sm">
|
|
<div className="max-w-6xl mx-auto px-6 h-16 flex items-center justify-between">
|
|
<Link href="/" className="font-bold text-lg">
|
|
{brand.shortName}
|
|
</Link>
|
|
<nav className="flex items-center gap-6">
|
|
<Link
|
|
href="/docs"
|
|
className="text-fd-muted-foreground hover:text-fd-foreground transition-colors"
|
|
>
|
|
Browse
|
|
</Link>
|
|
{brand.forumUrl && (
|
|
<a
|
|
href={brand.forumUrl}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="text-fd-muted-foreground hover:text-fd-foreground transition-colors"
|
|
>
|
|
Forum
|
|
</a>
|
|
)}
|
|
{brand.githubRepo && (
|
|
<a
|
|
href={brand.githubRepo}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="text-fd-muted-foreground hover:text-fd-foreground transition-colors"
|
|
>
|
|
GitHub
|
|
</a>
|
|
)}
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
|
|
{children}
|
|
|
|
{/* Footer */}
|
|
<footer className="border-t border-fd-border py-12 px-6">
|
|
<div className="max-w-4xl mx-auto">
|
|
<div className="flex flex-col md:flex-row justify-between items-center gap-6">
|
|
<div className="text-fd-muted-foreground text-sm">
|
|
{brand.name} - Open Governance
|
|
</div>
|
|
<div className="flex items-center gap-6">
|
|
{brand.githubRepo && (
|
|
<a
|
|
href={brand.githubRepo}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="text-fd-muted-foreground hover:text-fd-foreground transition-colors"
|
|
>
|
|
<Github className="h-5 w-5" />
|
|
</a>
|
|
)}
|
|
{brand.forumUrl && (
|
|
<a
|
|
href={brand.forumUrl}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="text-fd-muted-foreground hover:text-fd-foreground transition-colors"
|
|
>
|
|
<MessageSquare className="h-5 w-5" />
|
|
</a>
|
|
)}
|
|
{brand.docsUrl && (
|
|
<a
|
|
href={brand.docsUrl}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
className="text-fd-muted-foreground hover:text-fd-foreground transition-colors"
|
|
>
|
|
<BookOpen className="h-5 w-5" />
|
|
</a>
|
|
)}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</>
|
|
);
|
|
}
|