import styled from 'styled-components' import { rem, zIndex } from '../../style/function.style' export const ModalContainer = styled.div<{ show: boolean }>` position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: ${zIndex('modal')}; display: ${props => props.show ? 'block' : 'none'} ` export const ModalMask = styled.div` position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.3); z-index: 0; ` export const ModalContent = styled.div` position: absolute; box-sizing: border-box; width: ${rem(590)}; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; border-radius: ${rem(32)}; background-color: #ffffff; ` export const ModalContentBg = styled.div` width: 100%; border-radius: ${rem(32)}; padding: ${rem(64)} ${rem(64)} ${rem(48)}; background: url('https://lofter.lf127.net/1637147910275/popup_directive_pattern.png') no-repeat; background-size: cover; position: relative; ` export const ModalClose = styled.img` width: ${rem(60)}; height: ${rem(108)}; position: absolute; top: ${rem(-108)}; right: 0; ` export const Title = styled.div` font-weight: 500; font-size: ${rem(30)}; line-height: ${rem(42)}; color: #2E2E2E; text-align: center; ` export const Button = styled.div` width: 100%; display: flex; justify-content: center; align-items: center; border-radius: ${rem(60)}; background: #14C4BC; font-weight: 500; font-size: ${rem(32)}; line-height: ${rem(46)}; color: #ffffff; height: ${rem(88)}; margin-top: ${rem(36)}; &:active { opacity: 0.7; } `