diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index 305a3c9..24d5c01 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -11,12 +11,17 @@ import SocialIcons from "./SocialIcons.astro";---
class="flex flex-col items-center justify-center gap-y-2 sm:flex-row sm:justify-between"
>
+
Next Post
- {nextPost?.data.title || 'Latest post!'}
+
+ {nextPost?.data.title || 'Latest post!'}
+
-
-
Previous Post
-
{prevPost?.data.title || 'Last post!'}
+
+ Previous Post
+
+ {prevPost?.data.title || 'Last post!'}
+
-
- {heading.text}
-
- {
- heading.subheadings.length > 0 && (
-
- {heading.subheadings.map((subheading: Heading) => (
-
- ))}
-
- )
- }
-
diff --git a/src/components/ThemeToggle.astro b/src/components/ThemeToggle.astro
new file mode 100644
index 0000000..88d4a39
--- /dev/null
+++ b/src/components/ThemeToggle.astro
@@ -0,0 +1,85 @@
+---
+import { Button } from "@/components/ui/button";
+import { Icon } from "astro-icon/components";
+---
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/ui/mode-toggle.tsx b/src/components/ui/mode-toggle.tsx
deleted file mode 100644
index 0e171d9..0000000
--- a/src/components/ui/mode-toggle.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import { Button } from "@/components/ui/button";
-import { Moon, Sun } from "lucide-react";
-import * as React from "react";
-
-export function ModeToggle() {
- const [theme, setTheme] = React.useState<"theme-light" | "dark" | "system">(
- "theme-light",
- );
-
- React.useEffect(() => {
- const isDarkMode = document.documentElement.classList.contains("dark");
- setTheme(isDarkMode ? "dark" : "theme-light");
- }, []);
-
- React.useEffect(() => {
- const isDark = theme === "dark";
-
- document.documentElement.classList.add("disable-transitions");
- document.documentElement.classList[isDark ? "add" : "remove"]("dark");
-
- window
- .getComputedStyle(document.documentElement)
- .getPropertyValue("opacity");
-
- requestAnimationFrame(() => {
- document.documentElement.classList.remove("disable-transitions");
- });
- }, [theme]);
-
- const toggleTheme = () => {
- setTheme(theme === "dark" ? "theme-light" : "dark");
- };
-
- return (
-
- );
-}
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index 87e692c..8546e70 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -1,4 +1,10 @@
---
+import "@/styles/callout.css";
+import "@/styles/global.css";
+import "@/styles/typography.css";
+import "@fontsource-variable/geist";
+import "@fontsource-variable/geist-mono";
+
import Footer from "@/components/Footer.astro";
import Head from "@/components/Head.astro";
import Header from "@/components/Header.astro";
@@ -19,7 +25,7 @@ const { title, description } = Astro.props;
diff --git a/src/styles/global.css b/src/styles/global.css
index aa3767b..43fc2c6 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -86,7 +86,6 @@
}
}
- .disable-transitions,
.disable-transitions * {
@apply transition-none!;
}