Adding in modal for card detail when card is clicked. Working through styling, and working with NextJS.

This commit is contained in:
Frank Delaguila
2022-11-04 15:40:07 -06:00
parent a7d15cc120
commit a036c449f7
6 changed files with 106 additions and 25 deletions

14
components/modal.tsx Normal file
View File

@@ -0,0 +1,14 @@
import { createPortal } from "react-dom";
import ClientOnlyPortal from "./ClientOnlyPortal";
export default function Modal({open}: { open: Function }) {
return (
<ClientOnlyPortal selector="#modal-root">
<div className='fixed bottom-0 container left-0 rounded-md modal'>
Hello
<button onClick={() => open(false)}>Close</button>
</div>
</ClientOnlyPortal>
);
}