2021-01-27 06:12:32 +00:00
|
|
|
import styled from "styled-components";
|
2019-12-16 08:49:10 +00:00
|
|
|
import { Link } from "react-router-dom";
|
|
|
|
|
import Form from "components/editorComponents/Form";
|
|
|
|
|
import { Card } from "@blueprintjs/core";
|
2023-05-19 18:37:06 +00:00
|
|
|
import { FormGroup, getTypographyByKey } from "design-system-old";
|
2019-12-16 08:49:10 +00:00
|
|
|
|
|
|
|
|
export const AuthContainer = styled.section`
|
2020-01-28 11:46:04 +00:00
|
|
|
position: absolute;
|
|
|
|
|
width: 100%;
|
2021-01-27 06:12:32 +00:00
|
|
|
height: ${(props) => `calc(100vh - ${props.theme.headerHeight})`};
|
|
|
|
|
background-color: ${(props) => props.theme.colors.auth.background};
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const AuthCardContainer = styled.div`
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: ${(props) => props.theme.authCard.padding}px 0;
|
2019-12-16 08:49:10 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const AuthCard = styled(Card)`
|
2021-01-27 06:12:32 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
background-color: ${(props) => props.theme.colors.auth.cardBackground};
|
|
|
|
|
padding: ${(props) => props.theme.spaces[15]}px 64px;
|
|
|
|
|
width: ${(props) => props.theme.authCard.width}px;
|
|
|
|
|
border: none;
|
2021-10-04 15:34:37 +00:00
|
|
|
box-shadow: none;
|
|
|
|
|
border-radius: 0;
|
2021-01-27 06:12:32 +00:00
|
|
|
h1 {
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin: 0;
|
2022-11-16 04:32:00 +00:00
|
|
|
${getTypographyByKey("cardHeader")}
|
2021-01-27 06:12:32 +00:00
|
|
|
color: ${(props) => props.theme.colors.auth.headingText};
|
|
|
|
|
}
|
|
|
|
|
& .form-message-container {
|
|
|
|
|
width: ${(props) => props.theme.authCard.formMessageWidth}px;
|
|
|
|
|
align-self: center;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
.form-message-container ~ .form-message-container {
|
|
|
|
|
margin-top: ${(props) => props.theme.spaces[4]}px;
|
|
|
|
|
}
|
|
|
|
|
& > div {
|
|
|
|
|
margin-bottom: ${(props) => props.theme.spaces[14]}px;
|
|
|
|
|
}
|
|
|
|
|
& > div:last-child,
|
|
|
|
|
& > div:empty {
|
|
|
|
|
margin-bottom: 0;
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const AuthCardHeader = styled.header`
|
|
|
|
|
& {
|
|
|
|
|
h1 {
|
2020-12-24 04:32:25 +00:00
|
|
|
font-size: ${(props) => props.theme.fontSizes[6]}px;
|
2021-01-27 06:12:32 +00:00
|
|
|
white-space: nowrap;
|
2021-10-04 15:34:37 +00:00
|
|
|
font-weight: 500;
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
|
|
|
|
h5 {
|
2020-12-24 04:32:25 +00:00
|
|
|
font-size: ${(props) => props.theme.fontSizes[4]}px;
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
2020-12-24 04:32:25 +00:00
|
|
|
margin-bottom: ${(props) => props.theme.authCard.dividerSpacing}px;
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2021-01-28 07:20:09 +00:00
|
|
|
export const AuthCardNavLink = styled(Link)`
|
|
|
|
|
border-bottom: 1px solid transparent;
|
2021-10-04 15:34:37 +00:00
|
|
|
color: ${(props) => props.theme.colors.auth.link};
|
2021-01-28 07:20:09 +00:00
|
|
|
&:hover {
|
|
|
|
|
border-bottom: 1px solid ${(props) => props.theme.colors.auth.link};
|
|
|
|
|
text-decoration: none;
|
2021-10-04 15:34:37 +00:00
|
|
|
color: ${(props) => props.theme.colors.auth.link};
|
2021-01-28 07:20:09 +00:00
|
|
|
}
|
|
|
|
|
`;
|
2019-12-16 08:49:10 +00:00
|
|
|
|
|
|
|
|
export const AuthCardFooter = styled.footer`
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 100%;
|
|
|
|
|
justify-content: space-evenly;
|
|
|
|
|
align-items: baseline;
|
2020-12-24 04:32:25 +00:00
|
|
|
margin-top: ${(props) => props.theme.authCard.dividerSpacing}px;
|
2019-12-16 08:49:10 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const AuthCardBody = styled.div`
|
|
|
|
|
& a {
|
2020-12-24 04:32:25 +00:00
|
|
|
margin-top: ${(props) => props.theme.spaces[8]}px;
|
|
|
|
|
font-size: ${(props) => props.theme.fontSizes[2]}px;
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2021-01-27 06:12:32 +00:00
|
|
|
export const SpacedForm = styled(Form)``;
|
2019-12-16 08:49:10 +00:00
|
|
|
|
|
|
|
|
export const SpacedSubmitForm = styled.form`
|
2024-04-17 16:16:44 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 12px;
|
2023-05-19 18:37:06 +00:00
|
|
|
&& .bp3-label {
|
|
|
|
|
color: var(--ads-v2-color-fg);
|
|
|
|
|
margin-bottom: var(--ads-v2-spaces-2);
|
|
|
|
|
}
|
2020-02-24 09:35:11 +00:00
|
|
|
& a {
|
2020-12-24 04:32:25 +00:00
|
|
|
font-size: ${(props) => props.theme.fontSizes[3]}px;
|
2020-02-24 09:35:11 +00:00
|
|
|
}
|
2020-10-05 07:05:20 +00:00
|
|
|
&:only-child {
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
}
|
2024-04-17 16:16:44 +00:00
|
|
|
.bp3-form-group {
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const EmailFormWrapper = styled.div`
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 12px;
|
2019-12-16 08:49:10 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const FormActions = styled.div`
|
|
|
|
|
display: flex;
|
2020-02-24 09:35:11 +00:00
|
|
|
& button {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
2019-12-16 08:49:10 +00:00
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: baseline;
|
|
|
|
|
& > label {
|
2020-12-24 04:32:25 +00:00
|
|
|
margin-right: ${(props) => props.theme.spaces[11]}px;
|
2019-12-16 08:49:10 +00:00
|
|
|
}
|
|
|
|
|
`;
|
2021-01-27 06:12:32 +00:00
|
|
|
|
|
|
|
|
export const SignUpLinkSection = styled.div`
|
2022-11-16 04:32:00 +00:00
|
|
|
${getTypographyByKey("cardSubheader")}
|
2021-01-27 06:12:32 +00:00
|
|
|
color: ${(props) => props.theme.colors.auth.text};
|
|
|
|
|
text-align: center;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const ForgotPasswordLink = styled.div`
|
2022-11-16 04:32:00 +00:00
|
|
|
${getTypographyByKey("cardSubheader")}
|
2021-01-27 06:12:32 +00:00
|
|
|
color: ${(props) => props.theme.colors.auth.text};
|
|
|
|
|
text-align: center;
|
|
|
|
|
& a {
|
|
|
|
|
color: ${(props) => props.theme.colors.auth.text};
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const FormMessagesContainer = styled.div`
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
`;
|
2021-10-04 15:34:37 +00:00
|
|
|
|
|
|
|
|
export const BlackAuthCardNavLink = styled(AuthCardNavLink)`
|
|
|
|
|
color: #000;
|
|
|
|
|
border-bottom: 1px solid transparent;
|
|
|
|
|
&:hover {
|
|
|
|
|
color: #000;
|
|
|
|
|
border-bottom: 1px solid #000;
|
|
|
|
|
}
|
|
|
|
|
`;
|
2023-05-19 18:37:06 +00:00
|
|
|
|
|
|
|
|
export const StyledFormGroup = styled(FormGroup)`
|
|
|
|
|
&& .bp3-label {
|
|
|
|
|
color: var(--ads-v2-color-fg);
|
|
|
|
|
margin-bottom: var(--ads-v2-spaces-2);
|
|
|
|
|
}
|
|
|
|
|
`;
|
2024-04-17 16:16:44 +00:00
|
|
|
|
|
|
|
|
export const OrWithLines = styled.div`
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
|
|
&::before,
|
|
|
|
|
&::after {
|
|
|
|
|
background-color: var(--ads-v2-color-border);
|
|
|
|
|
content: "";
|
|
|
|
|
display: inline-block;
|
|
|
|
|
height: 1px;
|
|
|
|
|
position: relative;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
width: 50%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
|
right: 0.5em;
|
|
|
|
|
margin-left: -50%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
|
left: 0.5em;
|
|
|
|
|
margin-right: -50%;
|
|
|
|
|
}
|
|
|
|
|
`;
|