1
0
Fork 0
freesewing/sites/shared/components/loader.mjs

21 lines
514 B
JavaScript
Raw Normal View History

import { Spinner } from 'shared/components/spinner.mjs'
2022-10-12 20:40:08 +02:00
export const Loader = () => (
2022-10-12 20:40:08 +02:00
<div
className={`
fixed top-0 left-0 right-0 w-screen h-screen
hover:cursor-pointer flex flex-col justify-center
`}
>
<div
2023-01-27 20:39:09 +01:00
className="m-auto lightbox bg-neutral bg-opacity-0 p-4 mask mask-squircle"
2022-10-12 20:40:08 +02:00
style={{
maxHeight: 'calc(100vh - 6rem)',
maxWidth: 'calc(100vw - 6rem)',
}}
>
2023-01-27 20:39:09 +01:00
<Spinner className="h-12 w-12 animate-spin text-primary" />
2022-10-12 20:40:08 +02:00
</div>
</div>
)