-
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.
[Issues 720, 721] Research Page Methodology and Archetypes (#813)
* research page method and archetype with test and stories
- Loading branch information
1 parent
2f948fc
commit a31e0ba
Showing
20 changed files
with
370 additions
and
58 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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
import { useTranslation } from "next-i18next"; | ||
import Image from "next/image"; | ||
import { Grid } from "@trussworks/react-uswds"; | ||
|
||
import ContentLayout from "src/components/ContentLayout"; | ||
import embarrassed from "../../../public/img/noun-embarrassed.svg"; | ||
import goal from "../../../public/img/noun-goal.svg"; | ||
import hiring from "../../../public/img/noun-hiring.svg"; | ||
import leadership from "../../../public/img/noun-leadership.svg"; | ||
|
||
const ResearchArchetypes = () => { | ||
const { t } = useTranslation("common", { keyPrefix: "Research" }); | ||
|
||
return ( | ||
<ContentLayout | ||
title={t("archetypes.title")} | ||
data-testid="research-archetypes-content" | ||
titleSize="m" | ||
bottomBorder="dark" | ||
> | ||
<Grid> | ||
<p className="usa-intro">{t("archetypes.paragraph_1")}</p> | ||
</Grid> | ||
<Grid | ||
className="margin-bottom-2 tablet-lg:margin-bottom-4" | ||
row | ||
gap="sm" | ||
tabletLg={{ col: 6 }} | ||
> | ||
<Grid col={3} className="text-center"> | ||
<Image | ||
className="height-auto margin-top-1" | ||
style={{ filter: "invert(33%)" }} | ||
src={embarrassed as string} | ||
alt="embarrased" | ||
priority={false} | ||
/> | ||
</Grid> | ||
<Grid col={9}> | ||
<p className="usa-intro margin-top-0"> | ||
{t("archetypes.novice.paragraph_1")} | ||
</p> | ||
<p className="margin-top-0 font-sans-md line-height-sans-4 desktop-lg:line-height-sans-6"> | ||
{t("archetypes.novice.paragraph_2")} | ||
</p> | ||
</Grid> | ||
</Grid> | ||
<Grid | ||
className="margin-bottom-2 tablet-lg:margin-bottom-4" | ||
row | ||
gap="sm" | ||
tabletLg={{ col: 6 }} | ||
> | ||
<Grid col={3} className="text-center"> | ||
<Image | ||
className="height-auto margin-top-1" | ||
style={{ filter: "invert(33%)" }} | ||
src={leadership as string} | ||
alt="leadership" | ||
priority={false} | ||
/> | ||
</Grid> | ||
<Grid col={9}> | ||
<p className="usa-intro margin-top-0"> | ||
{t("archetypes.collaborator.paragraph_1")} | ||
</p> | ||
<p className="margin-top-0 font-sans-md line-height-sans-4 desktop-lg:line-height-sans-6"> | ||
{t("archetypes.collaborator.paragraph_2")} | ||
</p> | ||
</Grid> | ||
</Grid> | ||
<Grid | ||
className="margin-bottom-2 tablet-lg:margin-bottom-4" | ||
row | ||
gap="sm" | ||
tabletLg={{ col: 6 }} | ||
> | ||
<Grid tabletLg={{ col: 3 }} className="text-center"> | ||
<Image | ||
className="height-auto margin-top-1" | ||
style={{ filter: "invert(33%)" }} | ||
src={goal as string} | ||
alt="goal" | ||
priority={false} | ||
/> | ||
</Grid> | ||
<Grid tabletLg={{ col: 9 }}> | ||
<p className="usa-intro margin-top-0"> | ||
{t("archetypes.maestro.paragraph_1")} | ||
</p> | ||
<p className="margin-top-0 font-sans-md line-height-sans-4 desktop-lg:line-height-sans-6"> | ||
{t("archetypes.maestro.paragraph_2")} | ||
</p> | ||
</Grid> | ||
</Grid> | ||
<Grid | ||
className="margin-bottom-2 tablet-lg:margin-bottom-4" | ||
row | ||
gap="sm" | ||
tabletLg={{ col: 6 }} | ||
> | ||
<Grid tabletLg={{ col: 3 }} className="text-center"> | ||
<Image | ||
className="height-auto margin-top-1" | ||
style={{ filter: "invert(33%)" }} | ||
src={hiring as string} | ||
alt="hiring" | ||
priority={false} | ||
/> | ||
</Grid> | ||
<Grid tabletLg={{ col: 9 }}> | ||
<p className="usa-intro margin-top-0"> | ||
{t("archetypes.supervisor.paragraph_1")} | ||
</p> | ||
<p className="margin-top-0 font-sans-md line-height-sans-4 desktop-lg:line-height-sans-6"> | ||
{t("archetypes.supervisor.paragraph_2")} | ||
</p> | ||
</Grid> | ||
</Grid> | ||
</ContentLayout> | ||
); | ||
}; | ||
|
||
export default ResearchArchetypes; |
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,25 @@ | ||
import { useTranslation } from "next-i18next"; | ||
import { Grid } from "@trussworks/react-uswds"; | ||
|
||
import ContentLayout from "src/components/ContentLayout"; | ||
|
||
const ResearchIntro = () => { | ||
const { t } = useTranslation("common", { keyPrefix: "Research" }); | ||
|
||
return ( | ||
<ContentLayout | ||
title={t("intro.title")} | ||
data-testid="research-intro-content" | ||
paddingTop={false} | ||
bottomBorder="light" | ||
> | ||
<Grid> | ||
<p className="tablet-lg:font-sans-xl line-height-sans-3 usa-intro margin-top-2"> | ||
{t("intro.content")} | ||
</p> | ||
</Grid> | ||
</ContentLayout> | ||
); | ||
}; | ||
|
||
export default ResearchIntro; |
Oops, something went wrong.