improves in light mode

This commit is contained in:
karenvicent committed 2025-07-28 16:28:44 -04:00
1 parent dd6e7b7e7e
commit 1a5f16c4e3
12 files changed
+88 -17

No files matched your search

@@ -1,8 +1,8 @@
import { useTheme } from "@emotion/react";
import Box from "@mui/material/Box";
import Skeleton from "../../assets/Images/create-placeholder.svg?react";
import Background from "../../assets/Images/background-grid.svg?react";
import SkeletonDark from "../../assets/Images/create-placeholder-dark.svg?react";
import OutputAnimation from "../../assets/Animations/output.gif";
import { useSelector } from "react-redux";
const FallbackBackground = () => {
const theme = useTheme();
@@ -10,7 +10,18 @@ const FallbackBackground = () => {
return (
<>
{mode === "light" ? (
<Skeleton style={{ zIndex: 1 }} />
<Box
component="img"
src={OutputAnimation}
Background="transparent"
alt="Loading animation"
sx={{
zIndex: 1,
border: "none",
borderRadius: theme.spacing(8),
width: "100%",
}}
/>
) : (
<SkeletonDark style={{ zIndex: 1 }} />
)}
@@ -7,9 +7,9 @@ const FallbackContainer = ({ children, type }) => {
return (
<Box
border={1}
borderColor={theme.palette.primary.lowContrast}
borderColor={theme.palette.container.border}
borderRadius={theme.shape.borderRadius}
backgroundColor={theme.palette.primary.main}
backgroundColor={theme.palette.container.background}
overflow="hidden"
sx={{
display: "flex",
@@ -9,7 +9,7 @@ const FallbackTitle = ({ title }) => {
alignSelf="center"
component="h1"
marginY={theme.spacing(4)}
color={theme.palette.primary.contrastTextTertiary}
color={theme.palette.primary.contrastText}
>
{title}
</Typography>