From ebf7baa1ed0076f8306c80e211e26c378855eb25 Mon Sep 17 00:00:00 2001 From: Ayo Ayco Date: Wed, 4 Sep 2024 20:06:55 +0200 Subject: [PATCH] refactor: rename layouts for App & Blog --- src/layouts/{Layout.astro => App.astro} | 36 +++++++--------------- src/layouts/{BlogPost.astro => Blog.astro} | 0 src/pages/404.astro | 6 ++-- src/pages/blog/[...slug].astro | 6 ++-- src/pages/index.astro | 6 ++-- 5 files changed, 20 insertions(+), 34 deletions(-) rename src/layouts/{Layout.astro => App.astro} (85%) rename src/layouts/{BlogPost.astro => Blog.astro} (100%) diff --git a/src/layouts/Layout.astro b/src/layouts/App.astro similarity index 85% rename from src/layouts/Layout.astro rename to src/layouts/App.astro index 0e6bdc7..12b7f8c 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/App.astro @@ -51,17 +51,15 @@ const appTitle = article?.title ? `${article.title} | Cozy` : 'Cozy';
-
- -
-
- -
-
- -
+ +
+
+
-
+
+ +
+
@@ -75,11 +73,9 @@ const appTitle = article?.title ? `${article.title} | Cozy` : 'Cozy'; } #app-wrapper { - width: 100%; - max-width: 650px; - padding: 0.5rem; - padding-bottom: 5em; - + padding: 0 0.5em 10em; + display: grid; + gap: 1em; &:has(#router-outlet #post) { #jumbotron { @@ -87,16 +83,6 @@ const appTitle = article?.title ? `${article.title} | Cozy` : 'Cozy'; } } } - - #main-content { - * { - margin: 1rem 0 0; - } - - #post-wrapper { - padding: 0 1rem; - } - }