add loading animation to resource page

This commit is contained in:
Brandon Egger
2023-08-24 09:52:38 -05:00
parent 4c49950122
commit b839278366
3 changed files with 28 additions and 2 deletions

View File

@ -0,0 +1,25 @@
import Image from "next/image";
export const LoadingBarChart = ({
width,
height,
}: {
width: number;
height: number;
}) => {
return (
<div className="my-16 grid h-full w-full place-items-center">
<div className="h-fit w-fit animate-pulse rounded-xl border border-stone-400 bg-stone-100 p-4 drop-shadow-xl">
<Image
alt="loading content"
src="./loading/bar-chart.svg"
width={width}
height={height}
/>
<p className="text-center italic text-stone-400">
page content loading
</p>
</div>
</div>
);
};