working animations

This commit is contained in:
2026-03-13 22:18:44 +01:00
parent d71bb5d26e
commit 4293eef824
8 changed files with 44 additions and 45 deletions

View File

@@ -102,7 +102,10 @@ export default function AnimatedBackgroundContainer({
const [mounted, setMounted] = useState(false);
const { resolvedTheme } = useTheme();
const isDark = resolvedTheme === "dark";
let isDark = resolvedTheme === "dark";
if (resolvedTheme == undefined) {
isDark = true;
}
const palette = isDark ? PALETTES.dark : PALETTES.light;
/* Spawn particles */
@@ -264,7 +267,6 @@ export default function AnimatedBackgroundContainer({
minHeight: "100vh",
width: "100%",
overflow: "hidden",
backgroundColor: palette.base,
transition: "background-color 0.6s ease",
}}
>