2021-11-04 01:01:50 +08:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import {
|
|
|
|
borderSize,
|
|
|
|
borderRadius,
|
|
|
|
smPaddingY,
|
2022-11-09 01:51:36 +08:00
|
|
|
mdPaddingX,
|
2021-11-04 01:01:50 +08:00
|
|
|
} from '/imports/ui/stylesheets/styled-components/general';
|
|
|
|
import {
|
|
|
|
colorText,
|
|
|
|
colorGrayLighter,
|
|
|
|
colorGray,
|
|
|
|
colorBlueLight,
|
|
|
|
colorPrimary,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/palette';
|
2022-11-11 02:09:21 +08:00
|
|
|
import { fontSizeSmall } from '/imports/ui/stylesheets/styled-components/typography';
|
2023-03-20 21:08:35 +08:00
|
|
|
import ModalSimple 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-04 01:01:50 +08:00
|
|
|
|
|
|
|
const UrlError = styled.div`
|
|
|
|
color: red;
|
|
|
|
padding: 1em 0 2.5em 0;
|
|
|
|
|
|
|
|
${({ animations }) => animations && `
|
|
|
|
transition: 1s;
|
|
|
|
`}
|
|
|
|
`;
|
|
|
|
|
2023-03-20 21:08:35 +08:00
|
|
|
const ExternalVideoModal = styled(ModalSimple)`
|
2022-10-28 01:54:34 +08:00
|
|
|
padding: 1rem;
|
2021-11-04 01:01:50 +08:00
|
|
|
min-height: 23rem;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Content = styled.div`
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 0;
|
|
|
|
margin-right: auto;
|
|
|
|
margin-left: auto;
|
|
|
|
width: 100%;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const VideoUrl = styled.div`
|
|
|
|
margin: 0 ${borderSize} 0 ${borderSize};
|
|
|
|
|
|
|
|
& > label {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > label input {
|
|
|
|
display: block;
|
|
|
|
margin: 10px 0 10px 0;
|
|
|
|
padding: 0.4em;
|
|
|
|
color: ${colorText};
|
|
|
|
line-height: 2rem;
|
|
|
|
width: 100%;
|
|
|
|
font-family: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
border: 1px solid ${colorGrayLighter};
|
|
|
|
border-radius: ${borderRadius};
|
|
|
|
|
|
|
|
${({ animations }) => animations && `
|
|
|
|
transition: box-shadow .2s;
|
|
|
|
`}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
border-radius: ${borderSize};
|
|
|
|
box-shadow: 0 0 0 ${borderSize} ${colorBlueLight}, inset 0 0 0 1px ${colorPrimary};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
& > span {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
const ExternalVideoNote = styled.div`
|
|
|
|
color: ${colorGray};
|
|
|
|
font-size: ${fontSizeSmall};
|
|
|
|
font-style: italic;
|
|
|
|
padding-top: ${smPaddingY};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const StartButton = styled(Button)`
|
|
|
|
display: flex;
|
|
|
|
align-self: center;
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > i {
|
|
|
|
color: #3c5764;
|
|
|
|
}
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2022-11-09 01:51:36 +08:00
|
|
|
bottom: ${mdPaddingX};
|
2021-11-04 01:01:50 +08:00
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
UrlError,
|
|
|
|
ExternalVideoModal,
|
|
|
|
Content,
|
|
|
|
VideoUrl,
|
|
|
|
ExternalVideoNote,
|
|
|
|
StartButton,
|
|
|
|
};
|