expressjs -> nextjs
This commit is contained in:
28
nextjs/app/layout.js
Normal file
28
nextjs/app/layout.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import { Manrope, Space_Grotesk } from 'next/font/google';
|
||||
|
||||
import './globals.css';
|
||||
|
||||
const bodyFont = Manrope({
|
||||
subsets: ['latin'],
|
||||
variable: '--font-body',
|
||||
weight: ['400', '500', '600', '700'],
|
||||
});
|
||||
|
||||
const headingFont = Space_Grotesk({
|
||||
subsets: ['latin'],
|
||||
variable: '--font-heading',
|
||||
weight: ['500', '700'],
|
||||
});
|
||||
|
||||
export const metadata = {
|
||||
title: 'Dateiverwaltung',
|
||||
description: 'Dateiuploads und Admin-Verwaltung mit Next.js',
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }) {
|
||||
return (
|
||||
<html lang="de" className={`${bodyFont.variable} ${headingFont.variable}`}>
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user