add tutorial links (#2223)

This commit is contained in:
Vim 2023-05-24 15:33:46 -07:00 committed by GitHub
commit 980ed8f04a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 4 deletions

View file

@ -26,6 +26,7 @@ import commentIcon from // @ts-ignore
import githubIcon from // @ts-ignore
'/node_modules/uswds/dist/img/usa-icons/github.svg';
import {USE_DATA_TUTORIAL_LINK, USE_MAP_TUTORIAL_LINK} from '../data/copy/about';
interface IAboutPageProps {
location: Location;
@ -117,7 +118,11 @@ const AboutPage = ({location}: IAboutPageProps) => {
<AboutCard
size={'small'}
imgSrc={accountBalanceIcon}
header={intl.formatMessage(ABOUT_COPY.HOW_TO_USE_TOOL.USE_MAP_HEADING)}>
header={intl.formatMessage(ABOUT_COPY.HOW_TO_USE_TOOL.USE_MAP_HEADING)}
linkText={ABOUT_COPY.CONTENT.USE_MAP_TUTORIAL}
url={USE_MAP_TUTORIAL_LINK}
openUrlNewTab={true}
internal={false}>
<p>
{intl.formatMessage(ABOUT_COPY.HOW_TO_USE_TOOL.USE_MAP_PARA)}
</p>
@ -126,7 +131,11 @@ const AboutPage = ({location}: IAboutPageProps) => {
<AboutCard
size={'small'}
imgSrc={groupsIcon}
header={intl.formatMessage(ABOUT_COPY.HOW_TO_USE_TOOL.USE_DATA_HEADING)}>
header={intl.formatMessage(ABOUT_COPY.HOW_TO_USE_TOOL.USE_DATA_HEADING)}
linkText={ABOUT_COPY.CONTENT.USE_DATA_TUTORIAL}
url={USE_DATA_TUTORIAL_LINK}
openUrlNewTab={true}
internal={false}>
<p>
{ABOUT_COPY.CONTENT.USE_DATA_PARA}
</p>

View file

@ -573,7 +573,19 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
</p>
<div
class="j40-aboutcard-sm-link"
/>
>
<a
class="usa-link usa-link--external"
data-cy=""
href="https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/Using-the-CEJST-Tutorial.pdf"
rel="noreferrer"
target="_blank"
>
Download the CEJST tutorial (.pdf 9.6 MB)
</a>
</div>
</div>
</div>
<div
@ -628,7 +640,19 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
</p>
<div
class="j40-aboutcard-sm-link"
/>
>
<a
class="usa-link usa-link--external"
data-cy=""
href="https://static-data-screeningtool.geoplatform.gov/data-versions/1.0/data/score/downloadable/Using-the-CEJST-Spreadsheet-Tutorial.pdf"
rel="noreferrer"
target="_blank"
>
Download the spreadsheet tutorial (.pdf 5.4 MB)
</a>
</div>
</div>
</div>
<div