Datenschutz und Impressum hinzugefügt
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 9s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 9s
This commit is contained in:
35
src/layouts/MainLayout.astro
Normal file
35
src/layouts/MainLayout.astro
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
// src/layouts/MainLayout.astro
|
||||
import Header from "../components/Header.astro";
|
||||
import Footer from "../components/Footer.astro";
|
||||
import '../styles/global.css';
|
||||
|
||||
interface Props {
|
||||
title?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
const {
|
||||
title = "iten.pro | Engineering",
|
||||
description = "Portfolio und Projekte",
|
||||
} = Astro.props;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="de" class="scroll-smooth">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={description} />
|
||||
</head>
|
||||
<body class="flex flex-col min-h-screen">
|
||||
<Header />
|
||||
|
||||
<main class="flex-grow container mx-auto px-6 py-12">
|
||||
<slot />
|
||||
</main>
|
||||
|
||||
<Footer />
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user