diff --git a/fwt/components/Modal.tsx b/fwt/components/Modal.tsx new file mode 100644 index 0000000..70068fa --- /dev/null +++ b/fwt/components/Modal.tsx @@ -0,0 +1,27 @@ +import '../styles/Modal.sass' +import { type JSXElement, Show, createSignal } from 'solid-js' + +interface Props { + children: JSXElement + background?: string + color?: string + border?: string +} + +export default (props: Props) => { + return ( + <> + + + + + + + + + ) +} diff --git a/fwt/styles/Modal.sass b/fwt/styles/Modal.sass new file mode 100644 index 0000000..9f8368d --- /dev/null +++ b/fwt/styles/Modal.sass @@ -0,0 +1,20 @@ +@use '/src/styles/variables.sass' as vars +@use 'sass:color' + +.modal + display: flex + justify-content: center + align-items: center + position: fixed + top: 0 + left: 0 + width: 100% + height: 100% + backdrop-filter: blur(20px) + background-color: rgba(color.adjust(vars.$background, $blackness: 5%), 0.6) + z-index: 999 + + &__content + border-radius: 8px + padding: 2rem + position: relative