feat(ui): build responsive cookbook, editor and persistent cooking assistant
This commit is contained in:
1 parent
5d71d32e20
commit
a58516e424
29 files changed
+6430
No files matched your search
@@ -0,0 +1,38 @@
|
||||
import type { Metadata, Viewport } from 'next';
|
||||
import '@fontsource/dm-sans/400.css';
|
||||
import '@fontsource/dm-sans/500.css';
|
||||
import '@fontsource/dm-sans/600.css';
|
||||
import '@fontsource/dm-sans/700.css';
|
||||
import '@fontsource/fraunces/400.css';
|
||||
import '@fontsource/fraunces/500.css';
|
||||
import './globals.css';
|
||||
import { Shell } from '@/components/shell';
|
||||
export const metadata: Metadata = {
|
||||
title: { default: 'HamHam · Zuhause schmeckt’s am besten', template: '%s · HamHam' },
|
||||
description:
|
||||
'Dein persönliches Kochbuch. Lieblingsrezepte sammeln, clever planen und entspannt kochen.',
|
||||
manifest: '/manifest.webmanifest',
|
||||
appleWebApp: { capable: true, title: 'HamHam', statusBarStyle: 'default' },
|
||||
};
|
||||
export const viewport: Viewport = {
|
||||
width: 'device-width',
|
||||
initialScale: 1,
|
||||
viewportFit: 'cover',
|
||||
themeColor: '#365747',
|
||||
};
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="de" suppressHydrationWarning>
|
||||
<head>
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `try{let t=JSON.parse(localStorage.getItem('hamham:theme')||'"system"');document.documentElement.dataset.theme=t==='system'?(matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light'):t}catch{}`,
|
||||
}}
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<Shell>{children}</Shell>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user