Skip to content

Commit

Permalink
feat: small tweaks to login styles (HL-940) (#2340)
Browse files Browse the repository at this point in the history
* feat: stylize login

* fix: increase footer content margin
  • Loading branch information
sirtawast authored Oct 16, 2023
1 parent 1e0f251 commit 4fd815e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from 'styled-components';

export const $FooterWrapper = styled.div`
margin-top: ${(props) => props.theme.spacing.m};
margin-top: ${(props) => props.theme.spacing.xl};
`;
24 changes: 24 additions & 0 deletions frontend/benefit/applicant/src/components/pages/Login.sc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { $Grid } from 'shared/components/forms/section/FormSection.sc';
import { respondAbove } from 'shared/styles/mediaQueries';
import styled from 'styled-components';

export const $LoginGrid = styled($Grid)`
max-width: 486px;
h1 {
font-size: var(--fontsize-heading-l);
${respondAbove('xs')`
font-weight: 400;
font-size: var(--fontsize-heading-xl-mobile);
`}
${respondAbove('sm')`
font-size: var(--fontsize-heading-xl);
`}
}
p {
font-size: 1.15em;
}
`;
19 changes: 10 additions & 9 deletions frontend/benefit/applicant/src/pages/login.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
$Heading,
$Hr,
$Paragraph,
$Subheading,
Expand All @@ -18,13 +17,15 @@ import { useTranslation } from 'next-i18next';
import React, { useEffect } from 'react';
import { useQueryClient } from 'react-query';
import Container from 'shared/components/container/Container';
import Heading from 'shared/components/forms/heading/Heading';
import {
$Grid,
$GridCell,
} from 'shared/components/forms/section/FormSection.sc';
import getServerSideTranslations from 'shared/i18n/get-server-side-translations';
import { removeLocalStorageItem } from 'shared/utils/localstorage.utils';

import { $LoginGrid } from '../components/pages/Login.sc';
import { LOCAL_STORAGE_KEYS } from '../constants';

type NotificationProps =
Expand Down Expand Up @@ -67,8 +68,8 @@ const Login: NextPage = () => {

return (
<Container>
<$Grid>
<$GridCell $colSpan={6}>
<$LoginGrid>
<$GridCell $colSpan={12}>
{notificationProps && (
<Notification
type={notificationProps.type}
Expand All @@ -78,13 +79,13 @@ const Login: NextPage = () => {
{notificationProps.content}
</Notification>
)}
<$Heading>{t('common:login.heading')}</$Heading>
<Heading as="h1" size="xl" header={t('common:login.heading')} />
<$Paragraph>{t('common:login.infoText1')}</$Paragraph>
<$Hr />
<$Subheading>{t('common:login.subheading1')}</$Subheading>
<$Paragraph>{t('common:login.infoText2')}</$Paragraph>
<$Grid>
<$GridCell $colSpan={8}>
<$Grid columns={16}>
<$GridCell $colSpan={14}>
<Button
theme="coat"
fullWidth
Expand All @@ -99,8 +100,8 @@ const Login: NextPage = () => {
<$Hr />
<$Subheading>{t('common:login.subheading2')}</$Subheading>
<$Paragraph>{t('common:login.infoText3')}</$Paragraph>
<$Grid>
<$GridCell $colSpan={8}>
<$Grid columns={16}>
<$GridCell $colSpan={14}>
<Button
theme="coat"
variant="secondary"
Expand All @@ -124,7 +125,7 @@ const Login: NextPage = () => {
{t('common:login.infoContent')}
</Notification>
</$GridCell>
</$Grid>
</$LoginGrid>
</Container>
);
};
Expand Down

0 comments on commit 4fd815e

Please sign in to comment.