-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue 717] Process page milestones section (#815)
* Add ProcessMethodology.tsx and update process.tsx, common.json --------- Co-authored-by: Sammy <[email protected]>
- Loading branch information
1 parent
b8bdff7
commit 512742e
Showing
4 changed files
with
130 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
import { ExternalRoutes } from "src/constants/routes"; | ||
|
||
import { Trans, useTranslation } from "next-i18next"; | ||
import Link from "next/link"; | ||
import { Button, Grid, Icon } from "@trussworks/react-uswds"; | ||
|
||
import ContentLayout from "src/components/ContentLayout"; | ||
|
||
const ProcessMethodology = () => { | ||
const { t } = useTranslation("common", { keyPrefix: "Process" }); | ||
|
||
return ( | ||
<> | ||
<Grid className="grid-container padding-top-1 tablet:padding-top-3 desktop-lg:padding-top-6 padding-bottom-0 tablet:padding-bottom-0 desktop-lg:padding-bottom-0"> | ||
<strong className="tablet-lg:font-sans-lg tablet-lg:margin-bottom-05"> | ||
{t("milestones.tag")} | ||
</strong> | ||
</Grid> | ||
<ContentLayout | ||
title={t("milestones.title_1")} | ||
data-testid="process-methodology-content" | ||
titleSize="m" | ||
bottomBorder="none" | ||
> | ||
<Grid tabletLg={{ col: 6 }}> | ||
<p className="usa-intro">{t("milestones.paragraph_1")}</p> | ||
</Grid> | ||
<Grid tabletLg={{ col: 6 }}> | ||
<h3 className="tablet-lg:font-sans-lg tablet-lg:margin-bottom-05"> | ||
{t("milestones.sub_title_1")} | ||
</h3> | ||
<p className="margin-top-0 font-sans-md line-height-sans-4 desktop-lg:line-height-sans-6"> | ||
{t("milestones.sub_paragraph_1")} | ||
</p> | ||
<h3 className="tablet-lg:font-sans-lg margin-top-4 margin-bottom-2"> | ||
{t("milestones.sub_title_2")} | ||
</h3> | ||
<p className="margin-top-0 font-sans-md line-height-sans-4 desktop-lg:line-height-sans-6"> | ||
{t("milestones.sub_paragraph_2")} | ||
</p> | ||
<Link href={ExternalRoutes.MILESTONES} passHref> | ||
<Button className="margin-bottom-4" type="button" size="big"> | ||
{t("milestones.cta_1")}{" "} | ||
<Icon.Launch | ||
className="text-middle" | ||
size={4} | ||
aria-label="launch" | ||
/> | ||
</Button> | ||
</Link> | ||
</Grid> | ||
</ContentLayout> | ||
<ContentLayout | ||
title={t("milestones.title_2")} | ||
data-testid="process-methodology-content" | ||
paddingTop={false} | ||
titleSize="m" | ||
bottomBorder="none" | ||
> | ||
<Grid tabletLg={{ col: 6 }}> | ||
<p className="usa-intro">{t("milestones.paragraph_2")}</p> | ||
</Grid> | ||
<Grid tabletLg={{ col: 6 }}> | ||
<h3 className="tablet-lg:font-sans-lg tablet-lg:margin-bottom-05"> | ||
{t("milestones.sub_title_3")} | ||
</h3> | ||
<p className="margin-top-0 font-sans-md line-height-sans-4 desktop-lg:line-height-sans-6"> | ||
<Trans | ||
t={t} | ||
i18nKey="milestones.sub_paragraph_3" | ||
components={{ | ||
LinkToGrants: ( | ||
<a | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href={ExternalRoutes.GRANTS_HOME} | ||
/> | ||
), | ||
}} | ||
/> | ||
</p> | ||
<p className="margin-top-0 font-sans-md line-height-sans-4 desktop-lg:line-height-sans-6"> | ||
<Trans | ||
t={t} | ||
i18nKey="milestones.sub_paragraph_4" | ||
components={{ | ||
LinkToNewsletter: <Link href="/newsletter" />, | ||
}} | ||
/> | ||
</p> | ||
<Link href={ExternalRoutes.MILESTONES} passHref> | ||
<Button className="margin-bottom-4" type="button" size="big"> | ||
{t("milestones.cta_2")}{" "} | ||
<Icon.Launch | ||
className="text-middle" | ||
size={4} | ||
aria-label="launch" | ||
/> | ||
</Button> | ||
</Link> | ||
</Grid> | ||
</ContentLayout> | ||
</> | ||
); | ||
}; | ||
|
||
export default ProcessMethodology; |
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