Files
Checkmate/client/src/Components/design-elements/EmptyStateIllustration.tsx
T

214 lines
3.0 KiB
TypeScript
Raw Normal View History

interface EmptyStateIllustrationProps {
width?: number | string;
height?: number | string;
}
export const EmptyStateIllustration = ({
width = 160,
height = 120,
}: EmptyStateIllustrationProps) => {
return (
<svg
viewBox="0 0 160 120"
width={width}
height={height}
aria-hidden="true"
>
<defs>
<linearGradient
id="emptyStateCardFade"
x1="0"
y1="0"
x2="0"
y2="1"
>
<stop
offset="0%"
stopColor="white"
stopOpacity="1"
/>
<stop
offset="65%"
stopColor="white"
stopOpacity="1"
/>
<stop
offset="100%"
stopColor="white"
stopOpacity="0.35"
/>
</linearGradient>
<mask
id="emptyStateCardMask"
maskUnits="userSpaceOnUse"
x="0"
y="0"
width="160"
height="120"
>
<rect
x="0"
y="0"
width="160"
height="120"
fill="url(#emptyStateCardFade)"
/>
</mask>
</defs>
<g
stroke="#CBD5E1"
strokeWidth="0.75"
>
<line
x1="16"
y1="0"
x2="16"
y2="120"
/>
<line
x1="56"
y1="0"
x2="56"
y2="120"
strokeDasharray="3 3"
/>
<line
x1="104"
y1="0"
x2="104"
y2="120"
strokeDasharray="3 3"
/>
<line
x1="144"
y1="0"
x2="144"
y2="120"
/>
<line
x1="0"
y1="12"
x2="160"
y2="12"
/>
<line
x1="0"
y1="44"
x2="160"
y2="44"
strokeDasharray="3 3"
/>
<line
x1="0"
y1="76"
x2="160"
y2="76"
strokeDasharray="3 3"
/>
<line
x1="0"
y1="108"
x2="160"
y2="108"
/>
</g>
<g mask="url(#emptyStateCardMask)">
<rect
x="38"
y="22"
width="92"
height="42"
rx="6"
fill="#F5F7FA"
stroke="#D5DBE3"
strokeWidth="0.5"
/>
<rect
x="48"
y="32"
width="14"
height="22"
rx="2"
fill="#B6C2CF"
opacity="0.5"
/>
<rect
x="68"
y="34"
width="50"
height="2.5"
rx="1.25"
fill="#B6C2CF"
opacity="0.7"
/>
<rect
x="68"
y="42"
width="38"
height="2.5"
rx="1.25"
fill="#B6C2CF"
opacity="0.55"
/>
<rect
x="68"
y="50"
width="44"
height="2.5"
rx="1.25"
fill="#B6C2CF"
opacity="0.55"
/>
<rect
x="22"
y="50"
width="92"
height="42"
rx="6"
fill="#EEF4FE"
stroke="#7DA8E8"
strokeWidth="0.5"
strokeOpacity="0.4"
/>
<rect
x="32"
y="60"
width="14"
height="22"
rx="2"
fill="#7DA8E8"
opacity="0.35"
/>
<rect
x="52"
y="62"
width="50"
height="2.5"
rx="1.25"
fill="#7DA8E8"
opacity="0.55"
/>
<rect
x="52"
y="70"
width="38"
height="2.5"
rx="1.25"
fill="#7DA8E8"
opacity="0.4"
/>
<rect
x="52"
y="78"
width="44"
height="2.5"
rx="1.25"
fill="#7DA8E8"
opacity="0.4"
/>
</g>
</svg>
);
};