From 5b7ccf0b671e2999b62befc729a3e517a0433728 Mon Sep 17 00:00:00 2001 From: Bertrand Yuan Date: Mon, 15 Dec 2025 23:48:10 +0800 Subject: initial commit -- the front-end prototype The initial code is base on Anirudh's work. More to see at: https://github.com/techwithanirudh/shadcn-blog Therefore, the code in this commit is under MIT license. --- src/app/layout.tsx | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/app/layout.tsx (limited to 'src/app/layout.tsx') diff --git a/src/app/layout.tsx b/src/app/layout.tsx new file mode 100644 index 0000000..c7d2aaf --- /dev/null +++ b/src/app/layout.tsx @@ -0,0 +1,52 @@ +import { createMetadata } from '@/lib/metadata'; +import type { Viewport } from 'next'; +import { Geist, Geist_Mono } from 'next/font/google'; +import type { ReactNode } from 'react'; +import '@/styles/globals.css'; +import 'katex/dist/katex.css'; +import { baseUrl } from '@/lib/constants'; +import { Body } from './layout.client'; +import { description as homeDescription } from './layout.config'; +import { Provider } from './provider'; + +const geistSans = Geist({ + variable: '--font-geist-sans', + subsets: ['latin'], +}); + +const geistMono = Geist_Mono({ + variable: '--font-geist-mono', + subsets: ['latin'], +}); + +export const metadata = createMetadata({ + title: { + template: '%s | Blog', + default: 'Blog', + }, + description: homeDescription, + metadataBase: baseUrl, +}); + +export const viewport: Viewport = { + themeColor: [ + { media: '(prefers-color-scheme: dark)', color: '#0A0A0A' }, + { media: '(prefers-color-scheme: light)', color: '#fff' }, + ], +}; + +const RootLayout = ({ children }: { children: ReactNode }) => { + return ( + + + {children} + + + ); +}; + +export default RootLayout; -- cgit v1.2.3