The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import Link from "next/link"; |
| 2 | import "./globals.css"; |
| 3 | |
| 4 | export const metadata = { |
| 5 | title: "vinext on Cloudflare", |
| 6 | }; |
| 7 | |
| 8 | const pageLinks = [ |
| 9 | ["/", "Home"], |
| 10 | ["/static", "Static"], |
| 11 | ["/isr", "Cached"], |
| 12 | ["/use-cache", "use cache"], |
| 13 | ["/notes", "Notes"], |
| 14 | ] as const; |
| 15 | |
| 16 | export default function RootLayout({ children }: { children: React.ReactNode }) { |
| 17 | return ( |
| 18 | <html lang="en"> |
| 19 | <body className="bg-slate-50 p-8 text-slate-900"> |
| 20 | <nav className="mb-8 flex flex-wrap gap-x-4 gap-y-2 text-sm"> |
| 21 | {pageLinks.map(([href, label]) => ( |
| 22 | <Link key={href} className="underline" href={href}> |
| 23 | {label} |
| 24 | </Link> |
| 25 | ))} |
| 26 | </nav> |
| 27 | {children} |
| 28 | </body> |
| 29 | </html> |
| 30 | ); |
| 31 | } |