-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodal.tsx
29 lines (28 loc) · 829 Bytes
/
modal.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"use client";
export default function Modal(props: any) {
return (
<div className="z-[100] absolute inset-y-0 inset-x-0 h-screen sm:top-14 md:max-w-2xl sm:inset-x-auto">
<div className="w-full h-12 sticky z-50 top-0 inset-x-0 py-1 font-medium text-lg backdrop-filter backdrop-blur-xl bg-opacity-80">
<div className="container h-full px-5 md:px-10">
<div className="-ml-2 w-fit h-full hover:cursor-pointer flex items-center">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
strokeWidth={1.5}
stroke="currentColor"
className="w-5 h-5"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M6 18L18 6M6 6l12 12"
/>
</svg>
</div>
</div>
</div>
{props.children}
</div>
);
}