Erste brauchbare Version

This commit is contained in:
timg
2026-08-31 19:55:41 +02:00
parent 080c4d0f39
commit 892a4d4747
35 changed files with 7103 additions and 219 deletions
+36
View File
@@ -0,0 +1,36 @@
import { type ReactNode } from 'react';
import { type Metadata } from 'next';
import { getPreview } from '@/lib/preview';
import RefreshRouteOnSave from '@/components/RefreshRouteOnSave';
import EndPreview from '@/components/EndPreviewButton';
import '@/app/(app)/globals.css';
type Props = Readonly<{
children: ReactNode;
}>;
export const metadata: Metadata = {
title: {
default: '<Title>',
template: '%s | <Template>'
},
description: '<Description>',
keywords: [ '<Keyword>' ],
alternates: {
canonical: 'https://<domain>'
}
};
export default async function RootLayout({ children }: Props) {
const { isPreview } = await getPreview();
return (
<html lang="de" >
<body>
<RefreshRouteOnSave />
{children}
{isPreview && <EndPreview />}
</body>
</html>
);
}