TS fix, Hero styles
This commit is contained in:
@@ -9,10 +9,20 @@ const Container = styled.div`
|
|||||||
position: relative;
|
position: relative;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
min-height: 80vh;
|
min-height: 75vh;
|
||||||
|
|
||||||
section {
|
section {
|
||||||
padding: 2rem 6rem;
|
padding: 2rem 6rem;
|
||||||
|
@media screen and (max-width: 800px) {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
aside {
|
||||||
|
padding: 0 6rem;
|
||||||
|
@media screen and (max-width: 800px) {
|
||||||
|
padding: 2rem 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& > div {
|
& > div {
|
||||||
|
|||||||
@@ -42,8 +42,6 @@ const Aside = styled.aside<{ colors: string }>`
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
padding: 0 6rem;
|
|
||||||
|
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@@ -69,11 +67,6 @@ const Aside = styled.aside<{ colors: string }>`
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
letter-spacing: 0.1rem;
|
letter-spacing: 0.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media screen and (max-width: 800px) {
|
|
||||||
margin: 48px auto;
|
|
||||||
}
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const textColors = (bgColor: Colors) => {
|
const textColors = (bgColor: Colors) => {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ const Buttons = styled.div<{row?: boolean}>`
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
display: contents;
|
display: contents;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
|||||||
@@ -122,15 +122,15 @@ const SignUpPageView: React.FC<SignUpPageViewProps> = ({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const form = signUpForm !== null
|
const form = signUpForm ? renderForm() : <>Loading...</>;
|
||||||
? renderForm()
|
|
||||||
: <>Loading...</>;
|
|
||||||
|
|
||||||
const signups = signUpForm && signUpForm.signups ? renderList(signUpForm) : null;
|
const signups = signUpForm && signUpForm.signups ? renderList(signUpForm) : null;
|
||||||
return (
|
return (
|
||||||
<StyledSection>
|
<StyledSection>
|
||||||
<h1>
|
<h1>
|
||||||
{signUpForm?.title_fi || ""}
|
{signUpForm && (
|
||||||
|
signUpForm.title_fi
|
||||||
|
)}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user