working animations
This commit is contained in:
@@ -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",
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user