diff --git a/src/components/Background.astro b/src/components/Background.astro
index 3b0a8ff..b3ac9bc 100644
--- a/src/components/Background.astro
+++ b/src/components/Background.astro
@@ -35,18 +35,13 @@
if (themeToggle && overlay) {
themeToggle.addEventListener('click', () => {
- // Add transitioning class to optimize performance
document.documentElement.classList.add('theme-transitioning');
- // Fade in overlay
overlay.style.opacity = '0.15';
overlay.style.transition = 'opacity 0.3s ease';
setTimeout(() => {
- // Fade out overlay
overlay.style.opacity = '0';
-
- // Remove transitioning class after animation completes
setTimeout(() => {
document.documentElement.classList.remove('theme-transitioning');
}, 700);
diff --git a/src/components/ThemeToggle.astro b/src/components/ThemeToggle.astro
index 252bcdc..7e1c85e 100644
--- a/src/components/ThemeToggle.astro
+++ b/src/components/ThemeToggle.astro
@@ -52,19 +52,6 @@
function setupThemeToggle() {
const themeToggles = document.querySelectorAll('[data-theme-toggle]');
- // Check for dark mode preference at the system level
- const prefersDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
-
- // Check for saved theme preference or use the system preference
- const currentTheme = localStorage.getItem('theme') || (prefersDarkMode ? 'dark' : 'light');
-
- // Apply the theme on initial load
- if (currentTheme === 'dark') {
- document.documentElement.classList.add('dark');
- } else {
- document.documentElement.classList.remove('dark');
- }
-
// Create theme switch overlay element if it doesn't exist
if (!document.querySelector('.theme-switch-overlay')) {
const overlay = document.createElement('div');
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro
deleted file mode 100644
index 90219c9..0000000
--- a/src/layouts/Base.astro
+++ /dev/null
@@ -1,17 +0,0 @@
----
-import Layout from './Layout.astro';
-
-import directus from '../../lib/directus';
-import { readSingleton } from '@directus/sdk';
-
-const global = await directus.request(readSingleton('global'));
-
-export interface Props {
- title: string;
- description?: string;
-}
----
-
-