-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Applicant landing page adjustments (HL-1033) (#2709)
* feat: Add Koros background to applicant landing page main heading * feat: Add checklist note to the benefit applicant front page * chore: Adjust benefit applicant landing page intro wording
- Loading branch information
1 parent
5c4c924
commit bb5a55d
Showing
8 changed files
with
170 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
frontend/benefit/applicant/src/components/prerequisiteReminder/PrerequisiteReminder.sc.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Card, IconInfoCircle, Link } from 'hds-react'; | ||
import styled from 'styled-components'; | ||
|
||
export const $PrerequisiteCard = styled(Card)` | ||
--background-color: ${(props) => props.theme.colors.fogMediumLight}; | ||
display: flex; | ||
gap: ${(props) => props.theme.spacing.m}; | ||
padding-bottom: ${(props) => props.theme.spacingLayout.m}; | ||
p { | ||
line-height: ${(props) => props.theme.lineHeight.l}; | ||
} | ||
`; | ||
|
||
export const $IconInfoCircle = styled(IconInfoCircle)` | ||
flex: 0 0 auto; | ||
&& { | ||
--icon-size: ${(props) => props.theme.spacingLayout.xl2}; | ||
} | ||
`; | ||
|
||
export const $Heading = styled.h2` | ||
font-weight: 300; | ||
font-size: ${(props) => props.theme.fontSize.heading.l}; | ||
`; | ||
|
||
export const $DownloadButtonContainer = styled.div` | ||
margin: ${(props) => props.theme.spacing.m} 0; | ||
`; | ||
|
||
export const $Link = styled(Link)` | ||
--link-color: ${(props) => props.theme.colors.black}; | ||
--link-visited-color: ${(props) => props.theme.colors.black}; | ||
`; |
51 changes: 51 additions & 0 deletions
51
frontend/benefit/applicant/src/components/prerequisiteReminder/PrerequisiteReminder.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { | ||
$DownloadButtonContainer, | ||
$Heading, | ||
$IconInfoCircle, | ||
$Link, | ||
$PrerequisiteCard, | ||
} from 'benefit/applicant/components/prerequisiteReminder/PrerequisiteReminder.sc'; | ||
import { Button, IconDownload } from 'hds-react'; | ||
import { NextPage } from 'next'; | ||
import { useTranslation } from 'next-i18next'; | ||
import React from 'react'; | ||
import Container from 'shared/components/container/Container'; | ||
import { openFileInNewTab } from 'shared/utils/file.utils'; | ||
|
||
const PrerequisiteReminder: NextPage = () => { | ||
const { t } = useTranslation(); | ||
|
||
return ( | ||
<Container> | ||
<$PrerequisiteCard> | ||
<$IconInfoCircle /> | ||
<div> | ||
<$Heading>{t('common:prerequisiteReminder.heading')}</$Heading> | ||
<p>{t('common:prerequisiteReminder.body')}</p> | ||
<$DownloadButtonContainer> | ||
<Button | ||
theme="black" | ||
variant="secondary" | ||
onClick={() => | ||
openFileInNewTab( | ||
t('common:prerequisiteReminder.downloadButton.href') | ||
) | ||
} | ||
iconLeft={<IconDownload />} | ||
> | ||
{t('common:prerequisiteReminder.downloadButton.label', '')} | ||
</Button> | ||
</$DownloadButtonContainer> | ||
<$Link | ||
href={t('common:prerequisiteReminder.moreDetailsLink.href')} | ||
openInNewTab | ||
> | ||
{t('common:prerequisiteReminder.moreDetailsLink.label')} | ||
</$Link> | ||
</div> | ||
</$PrerequisiteCard> | ||
</Container> | ||
); | ||
}; | ||
|
||
export default PrerequisiteReminder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters