diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 0f00213..90f92f5 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -6,10 +6,11 @@ import Header from "../components/Header.astro"; interface Props { title: string; description: string; - contentClass?: string; + contentLayout?: "default" | "fill-height"; } -const { title, description, contentClass = "" } = Astro.props; +const { title, description, contentLayout = "default" } = Astro.props; +const contentClass = contentLayout === "fill-height" ? "flex-1" : "py-12"; --- @@ -24,7 +25,7 @@ const { title, description, contentClass = "" } = Astro.props;
-
+