This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
import LanguagePicker from "../components/LanguagePicker.astro";
|
||||
import { AstroFont } from "astro-font";
|
||||
import Nav from "../components/Nav.astro";
|
||||
import { useTranslations } from "@i18n/utils";
|
||||
interface Props {
|
||||
title: string;
|
||||
width?: "full" | "compact";
|
||||
}
|
||||
const t = useTranslations(Astro.url);
|
||||
|
||||
const { title, width = "compact" } = Astro.props;
|
||||
---
|
||||
@@ -123,8 +125,14 @@ const { title, width = "compact" } = Astro.props;
|
||||
<main id="main-content" class="flex flex-col mt-4xl gap-y-2xl">
|
||||
<slot />
|
||||
</main>
|
||||
<footer class="px-4">
|
||||
<footer class="px-4 flex gap-8 mb-4">
|
||||
<LanguagePicker />
|
||||
<a
|
||||
href="https://git.max-richter.dev/max/website"
|
||||
class="flex gap-2 items-center"
|
||||
>
|
||||
<span class="i-tabler-brand-git"></span>{t("website-source")}
|
||||
</a>
|
||||
</footer>
|
||||
<style>
|
||||
.layout-compact {
|
||||
|
||||
Reference in New Issue
Block a user