2022-03-15 22:54:33 +08:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import {
|
|
|
|
colorPrimary,
|
|
|
|
colorWhite,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/palette';
|
|
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
|
|
|
import Button from '/imports/ui/components/common/button/component';
|
2023-03-20 21:13:35 +08:00
|
|
|
import ModalSimple from '/imports/ui/components/common/modal/simple/component';
|
2022-03-15 22:54:33 +08:00
|
|
|
import ModalStyles from '/imports/ui/components/common/modal/simple/styles';
|
|
|
|
|
|
|
|
const Content = styled.div`
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: .5rem 0 .5rem 0;
|
2022-04-26 03:57:11 +08:00
|
|
|
overflow: hidden;
|
|
|
|
min-height: 30rem;
|
2022-03-15 22:54:33 +08:00
|
|
|
`;
|
|
|
|
|
2023-03-20 21:13:35 +08:00
|
|
|
const LayoutModal = styled(ModalSimple)`
|
2022-03-15 22:54:33 +08:00
|
|
|
padding: 1rem;
|
2022-04-26 03:57:11 +08:00
|
|
|
min-height: 44rem;
|
2022-03-15 22:54:33 +08:00
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
height: unset;
|
|
|
|
min-height: 22.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
${({ isPhone }) => isPhone && `
|
|
|
|
min-height: 100%;
|
|
|
|
min-width: 100%;
|
|
|
|
border-radius: 0;
|
|
|
|
`}
|
|
|
|
|
|
|
|
${ModalStyles.Content} {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const BodyContainer = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const IconSvg = styled.img`
|
|
|
|
height: 8rem;
|
|
|
|
border-radius: 5px;
|
|
|
|
margin: 5px;
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
height: 3rem;
|
|
|
|
margin: 1px;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const LayoutBtn = styled(Button)`
|
|
|
|
display: flex;
|
|
|
|
box-shadow: unset !important;
|
|
|
|
background-color: ${colorWhite};
|
|
|
|
border: ${colorWhite} solid 6px;
|
|
|
|
align-items: center;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: 0 !important;
|
|
|
|
margin: 0.5rem 1rem 1rem 1rem;
|
|
|
|
width: fit-content;
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
margin: 0.5rem;
|
|
|
|
border: ${colorWhite} solid 4px;
|
|
|
|
border-radius: 10px;
|
|
|
|
width: fit-content;
|
|
|
|
}
|
2022-09-29 22:58:55 +08:00
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:hover {
|
|
|
|
border: ${colorPrimary} solid 6px;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
2022-03-15 22:54:33 +08:00
|
|
|
|
|
|
|
${({ active }) => (active === 'true') && `
|
|
|
|
border: ${colorPrimary} solid 6px;
|
|
|
|
border-radius: 5px;
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
border: ${colorPrimary} solid 4px;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
`};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const ButtonLayoutContainer = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
@media ${smallOnly} {
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const ButtonsContainer = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
flex-wrap: unset;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const ButtonBottomContainer = styled.div`
|
|
|
|
align-self: end;
|
|
|
|
padding-right: 3rem;
|
|
|
|
padding-top: 1rem;
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
align-self: center;
|
|
|
|
padding-right: unset;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const LabelLayoutNames = styled.label`
|
|
|
|
text-align: center;
|
|
|
|
margin: 0 0 0.1rem 0;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const BottomButton = styled(Button)`
|
|
|
|
margin: 0 0.5rem;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const PushContainer = styled.div`
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 1rem 0 1rem 0;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const LabelPushLayout = styled.div`
|
|
|
|
padding-right: 0.5rem;
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
Content,
|
|
|
|
LayoutModal,
|
|
|
|
BodyContainer,
|
|
|
|
IconSvg,
|
|
|
|
LayoutBtn,
|
|
|
|
ButtonLayoutContainer,
|
|
|
|
ButtonsContainer,
|
|
|
|
ButtonBottomContainer,
|
|
|
|
LabelLayoutNames,
|
|
|
|
BottomButton,
|
|
|
|
PushContainer,
|
|
|
|
LabelPushLayout,
|
|
|
|
};
|