From d8a20e3032a0ce97b6ddc29840e135eda9b3f43c Mon Sep 17 00:00:00 2001
From: seth
Date: Mon, 8 Apr 2024 22:58:22 -0400
Subject: refactor; use plain css
---
src/layouts/Base.astro | 37 +++++++++++++++++++++++++++++++++++++
src/layouts/Index.astro | 11 +++++++++++
src/layouts/Page.astro | 22 +++++-----------------
3 files changed, 53 insertions(+), 17 deletions(-)
create mode 100644 src/layouts/Base.astro
create mode 100644 src/layouts/Index.astro
(limited to 'src/layouts')
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro
new file mode 100644
index 0000000..6ec66c5
--- /dev/null
+++ b/src/layouts/Base.astro
@@ -0,0 +1,37 @@
+---
+import "@fontsource-variable/noto-sans";
+import "@fontsource/noto-sans-mono";
+
+import NavBar from "@components/NavBar.astro";
+import "@styles/main.css";
+
+const { title, description } = Astro.props.frontmatter || Astro.props;
+---
+
+
+
+
+
+ {title}
+
+
+
+
+
+
+ getchoo's website 🚀
+
+
+
+
+
+
+
+
+
diff --git a/src/layouts/Index.astro b/src/layouts/Index.astro
new file mode 100644
index 0000000..b8e1945
--- /dev/null
+++ b/src/layouts/Index.astro
@@ -0,0 +1,11 @@
+---
+import Base from "@layouts/Base.astro";
+import Gifs from "@components/Gifs.astro";
+
+const { title, description } = Astro.props.frontmatter;
+---
+
+
+
+
+
diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro
index d8e216b..72512e2 100644
--- a/src/layouts/Page.astro
+++ b/src/layouts/Page.astro
@@ -1,20 +1,8 @@
---
-import Footer from "@components/Footer.astro";
-import Head from "@components/Head.astro";
-import Nav from "@components/Nav.astro";
-
-const { frontmatter } = Astro.props;
+import Base from "@layouts/Base.astro";
+const { title, description } = Astro.props.frontmatter || Astro.props;
---
-
-
-
-
- getchoo's website 🚀
-
-
-
-
-
+
+
+
--
cgit v1.2.3