2021-11-03 20:12:32 +08:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import { colorGrayDark, colorGray } from '/imports/ui/stylesheets/styled-components/palette';
|
|
|
|
import {
|
|
|
|
jumboPaddingY,
|
|
|
|
lgPaddingX,
|
|
|
|
lgPaddingY,
|
|
|
|
titlePositionLeft,
|
|
|
|
modalMargin,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/general';
|
|
|
|
import { fontSizeLarge } from '/imports/ui/stylesheets/styled-components/typography';
|
2022-02-15 23:54:55 +08:00
|
|
|
import Modal from '/imports/ui/components/common/modal/simple/component';
|
2022-02-15 04:20:50 +08:00
|
|
|
import Button from '/imports/ui/components/common/button/component';
|
2021-11-03 20:12:32 +08:00
|
|
|
|
|
|
|
const GuestPolicyModal = styled(Modal)`
|
2022-10-28 01:54:34 +08:00
|
|
|
padding: 1rem;
|
2021-11-03 20:12:32 +08:00
|
|
|
`;
|
|
|
|
|
|
|
|
const Container = styled.div`
|
|
|
|
margin: 0 ${modalMargin} ${lgPaddingX};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Header = styled.div`
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
border: none;
|
|
|
|
line-height: ${titlePositionLeft};
|
|
|
|
margin-bottom: ${lgPaddingY};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Title = styled.h2`
|
|
|
|
left: ${titlePositionLeft};
|
|
|
|
right: auto;
|
|
|
|
color: ${colorGrayDark};
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: ${fontSizeLarge};
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
left: auto;
|
|
|
|
right: ${titlePositionLeft};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Description = styled.div`
|
|
|
|
text-align: center;
|
|
|
|
color: ${colorGray};
|
|
|
|
margin-bottom: ${jumboPaddingY};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Content = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const GuestPolicyButton = styled(Button)`
|
|
|
|
width: 200px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 5px;
|
|
|
|
|
|
|
|
${({ disabled }) => disabled && `
|
|
|
|
& > span {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
`}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
GuestPolicyModal,
|
|
|
|
Container,
|
|
|
|
Header,
|
|
|
|
Title,
|
|
|
|
Description,
|
|
|
|
Content,
|
|
|
|
GuestPolicyButton,
|
|
|
|
};
|