feat(org): Ported components to mjs and named exports
This commit is contained in:
parent
37f7833983
commit
595417a23b
118 changed files with 836 additions and 852 deletions
20
sites/shared/components/modal.mjs
Normal file
20
sites/shared/components/modal.mjs
Normal file
|
@ -0,0 +1,20 @@
|
|||
export const Modal = ({ cancel, children }) => (
|
||||
<div
|
||||
className={`
|
||||
fixed top-0 left-0 right-0 w-screen h-screen
|
||||
bg-neutral bg-opacity-80 z-30
|
||||
hover:cursor-pointer flex flex-col justify-center
|
||||
`}
|
||||
onClick={cancel}
|
||||
>
|
||||
<div
|
||||
className="m-auto text-neutral-content lightbox"
|
||||
style={{
|
||||
maxHeight: 'calc(100vh - 6rem)',
|
||||
maxWidth: 'calc(100vw - 6rem)',
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue