-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathLoadingPopup.tsx
More file actions
23 lines (21 loc) · 875 Bytes
/
LoadingPopup.tsx
File metadata and controls
23 lines (21 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"use client";
import React from "react";
export default function LoadingPopup({ isLoading }: { isLoading: boolean }) {
if (!isLoading) return null;
return (
<div className="fixed inset-0 z-50 flex items-center justify-center bg-[#425D5F]/75 backdrop-blur-xs">
<div className="inline-flex flex-col rounded-3xl outline-4 outline-black shadow-[10px_10px_0_0_black] box-border items-center justify-center h-48 w-48 bg-[#A7D5D7]">
<div
className="w-16 h-16 animate-spin rounded-full mx-auto"
style={{
backgroundImage:
"conic-gradient(from 0deg, rgba(0,0,0,0), rgba(0,0,0,0.5))",
WebkitMaskImage:
"radial-gradient(circle, transparent 50%, black 51%)",
maskImage: "radial-gradient(circle, transparent 50%, black 51%)",
}}
/>
</div>
</div>
);
}