From ccb33a00d00eec15a36287741ce61dba251b23a5 Mon Sep 17 00:00:00 2001 From: Felix Hoffmann Date: Wed, 15 Nov 2023 23:39:55 +0100 Subject: [PATCH] refactor: update spacing for layout --- src/layouts/Layout.astro | 17 +---------------- src/pages/index.astro | 2 +- src/pages/projects/[slug].astro | 2 +- src/pages/projects/index.astro | 5 +---- 4 files changed, 4 insertions(+), 22 deletions(-) diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 0efbe20..f0eb6af 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -17,27 +17,12 @@ import Navbar from "@/components/general/Navbar.astro"; import { info } from "@/data/info"; import { SEO } from "astro-seo"; -function getSpacing(spacing?: "sm" | "md" | "lg") { - switch (spacing) { - case "sm": - return "space-y-16"; - case "md": - return "space-y-20"; - case "lg": - return "space-y-24"; - default: - return "space-y-20"; - } -} - interface Props { frontmatter: { title?: string; description: string; ogImageUrl?: string; label: string }; - spacing?: "sm" | "md" | "lg"; } const { frontmatter: { title, description, ogImageUrl, label }, - spacing, } = Astro.props; --- @@ -87,7 +72,7 @@ const { /> -
+