adding functions for loading indicator

This commit is contained in:
Miguel Ocampo Paniagua 2026-03-01 22:47:21 -08:00
parent 0708cfbc02
commit 48abcc33ff
11 changed files with 8059 additions and 829 deletions

View file

@ -0,0 +1,13 @@
export default function LoadingIndicator({ label = "Loading" }: { label?: string }) {
return (
<div
role="status"
aria-label={label}
className="fixed inset-0 z-50 flex items-center justify-center bg-black/40"
>
// change the size of the indicater and color
<div className="h-12 w-12 animate-spin rounded-full border-4 border-white border-t-transparent" />
<span className="sr-only">{label}</span>
</div>
);
}