2021-11-10 00:20:34 +08:00
|
|
|
import styled from 'styled-components';
|
2022-02-15 04:20:50 +08:00
|
|
|
import Button from '/imports/ui/components/common/button/component';
|
2021-11-10 00:20:34 +08:00
|
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
2024-04-04 22:47:01 +08:00
|
|
|
import { jumboPaddingY, smPaddingY } from '/imports/ui/stylesheets/styled-components/general';
|
|
|
|
import {
|
|
|
|
fontSizeSmaller,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/typography';
|
|
|
|
import {
|
|
|
|
colorLink,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/palette';
|
2017-11-17 19:52:48 +08:00
|
|
|
|
2021-11-10 00:20:34 +08:00
|
|
|
const Help = styled.span`
|
2017-11-17 19:52:48 +08:00
|
|
|
display: flex;
|
|
|
|
flex-flow: column;
|
2024-04-04 22:47:01 +08:00
|
|
|
min-height: 10rem;
|
2021-11-10 00:20:34 +08:00
|
|
|
`;
|
2017-11-17 19:52:48 +08:00
|
|
|
|
2021-11-10 00:20:34 +08:00
|
|
|
const Text = styled.div`
|
2017-11-17 19:52:48 +08:00
|
|
|
text-align: center;
|
2024-04-04 22:47:01 +08:00
|
|
|
justify-content: center;
|
2017-11-17 19:52:48 +08:00
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
2021-11-10 00:20:34 +08:00
|
|
|
`;
|
|
|
|
|
|
|
|
const EnterAudio = styled.div`
|
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
2024-04-04 22:47:01 +08:00
|
|
|
margin-top: ${jumboPaddingY};
|
2021-11-10 00:20:34 +08:00
|
|
|
`;
|
2017-11-17 19:52:48 +08:00
|
|
|
|
2024-04-04 22:47:01 +08:00
|
|
|
const RetryButton = styled(Button)`
|
2017-11-17 19:52:48 +08:00
|
|
|
margin-right: 0.5rem;
|
2019-05-14 21:15:54 +08:00
|
|
|
margin-left: inherit;
|
2017-11-17 19:52:48 +08:00
|
|
|
|
2019-05-14 21:15:54 +08:00
|
|
|
[dir="rtl"] & {
|
|
|
|
margin-right: inherit;
|
|
|
|
margin-left: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2021-11-10 00:20:34 +08:00
|
|
|
@media ${smallOnly} {
|
2019-10-23 03:32:04 +08:00
|
|
|
margin-right: none;
|
2019-05-14 21:15:54 +08:00
|
|
|
margin-left: inherit;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
margin-right: inherit;
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
2017-11-17 19:52:48 +08:00
|
|
|
}
|
2021-11-10 00:20:34 +08:00
|
|
|
`;
|
|
|
|
|
2024-04-04 22:47:01 +08:00
|
|
|
const TroubleshootLink = styled.a`
|
|
|
|
color: ${colorLink};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const UnknownError = styled.label`
|
|
|
|
font-size: ${fontSizeSmaller};
|
|
|
|
justify-content: center;
|
|
|
|
text-align: center;
|
|
|
|
margin-top: ${smPaddingY};
|
|
|
|
margin-bottom: ${smPaddingY};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const PermissionHelpSteps = styled.ul`
|
|
|
|
text-align: left;
|
|
|
|
justify-content: center;
|
|
|
|
li {
|
|
|
|
margin-bottom: ${smPaddingY};
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2021-11-10 00:20:34 +08:00
|
|
|
export default {
|
|
|
|
Help,
|
|
|
|
Text,
|
|
|
|
EnterAudio,
|
2024-04-04 22:47:01 +08:00
|
|
|
RetryButton,
|
|
|
|
TroubleshootLink,
|
|
|
|
UnknownError,
|
|
|
|
PermissionHelpSteps,
|
2021-11-10 00:20:34 +08:00
|
|
|
};
|