feat: add a base layout for base HTML
This commit is contained in:
21
src/layouts/BaseLayout.astro
Normal file
21
src/layouts/BaseLayout.astro
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
import "../styles/global.css";
|
||||||
|
const { title } = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="de">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<meta name="color-scheme" content="light dark" />
|
||||||
|
<meta name="generator" content={Astro.generator} />
|
||||||
|
<title>{title}</title>
|
||||||
|
</head>
|
||||||
|
<body
|
||||||
|
class="flex min-h-screen flex-col justify-center p-6 sm:px-14 md:px-24 lg:px-32"
|
||||||
|
>
|
||||||
|
<slot />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -8,22 +8,10 @@ import KeyoxideLogo from "../images/Keyoxide.svg";
|
|||||||
import LinkedInLogo from "../images/LinkedIn.svg";
|
import LinkedInLogo from "../images/LinkedIn.svg";
|
||||||
import MatrixLogo from "../images/Matrix-logo.svg";
|
import MatrixLogo from "../images/Matrix-logo.svg";
|
||||||
import portrait from "../images/portrait.jpg";
|
import portrait from "../images/portrait.jpg";
|
||||||
import "../styles/global.css";
|
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<BaseLayout>
|
||||||
<html lang="de">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
||||||
<meta name="color-scheme" content="light dark" />
|
|
||||||
<meta name="generator" content={Astro.generator} />
|
|
||||||
<title>kmoschcau.de</title>
|
|
||||||
</head>
|
|
||||||
<body
|
|
||||||
class="flex min-h-screen flex-col justify-center p-6 sm:px-14 md:px-24 lg:px-32"
|
|
||||||
>
|
|
||||||
<main>
|
<main>
|
||||||
<article class="flex flex-col items-center gap-10">
|
<article class="flex flex-col items-center gap-10">
|
||||||
<Image
|
<Image
|
||||||
@@ -94,5 +82,4 @@ import "../styles/global.css";
|
|||||||
</nav>
|
</nav>
|
||||||
</article>
|
</article>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</BaseLayout>
|
||||||
</html>
|
|
||||||
|
|||||||
7
src/pages/skills.astro
Normal file
7
src/pages/skills.astro
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
import BaseLayout from "../layouts/BaseLayout.astro";
|
||||||
|
---
|
||||||
|
|
||||||
|
<BaseLayout>
|
||||||
|
<p>Skills</p>
|
||||||
|
</BaseLayout>
|
||||||
Reference in New Issue
Block a user