diff --git a/client/src/Components/design-elements/EmptyState.tsx b/client/src/Components/design-elements/EmptyState.tsx index d6795e1e9..97b0d6166 100644 --- a/client/src/Components/design-elements/EmptyState.tsx +++ b/client/src/Components/design-elements/EmptyState.tsx @@ -17,6 +17,7 @@ interface EmptyStateProps { secondaryText?: string; secondaryHref?: string; compact?: boolean; + fullscreen?: boolean; alert?: ReactNode; children?: ReactNode; } @@ -30,6 +31,7 @@ export const EmptyState = ({ secondaryText, secondaryHref, compact = false, + fullscreen = false, alert, children, }: EmptyStateProps) => { @@ -78,6 +80,7 @@ export const EmptyState = ({ alignItems="center" justifyContent="center" sx={{ + ...(fullscreen && { minHeight: "65vh" }), py: theme.spacing(LAYOUT.XXL), px: theme.spacing(LAYOUT.MD), textAlign: "center", diff --git a/client/src/Components/design-elements/EmptyStateIllustration.tsx b/client/src/Components/design-elements/EmptyStateIllustration.tsx index e8f74ed88..ba69ede84 100644 --- a/client/src/Components/design-elements/EmptyStateIllustration.tsx +++ b/client/src/Components/design-elements/EmptyStateIllustration.tsx @@ -1,12 +1,37 @@ +import { useTheme } from "@mui/material/styles"; + interface EmptyStateIllustrationProps { width?: number | string; height?: number | string; } +const PALETTE = { + light: { + grid: "#CBD5E1", + backFill: "#F5F7FA", + backStroke: "#D5DBE3", + backInner: "#B6C2CF", + frontFill: "#EEF4FE", + frontStroke: "#7DA8E8", + frontInner: "#7DA8E8", + }, + dark: { + grid: "#3A4452", + backFill: "#475569", + backStroke: "#64748B", + backInner: "#CBD5E1", + frontFill: "#1E40AF", + frontStroke: "#60A5FA", + frontInner: "#DBEAFE", + }, +}; + export const EmptyStateIllustration = ({ width = 160, height = 120, }: EmptyStateIllustrationProps) => { + const theme = useTheme(); + const p = theme.palette.mode === "dark" ? PALETTE.dark : PALETTE.light; return (