mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-03 20:14:18 -07:00
Add external link icons & all outstanding changes from Living copy (#1173)
* Refactor Footer component - Make Footer component align to normal folder structure - Make links in Footer use LinkTypeWrapper, which will allow icon to be added to all external links in one place * Add Trussworks link to LinkTypeWrapper * Add icon to SurveyButton comp * Add launch icon to About page cards * Add launch icon to FederalRegister link * Refactor Methodology page - Add Source and Available for fields to dataset Cards - refactor data structure for dataset Cards to handle more than 1 source - update constants file - modify SASS for source list items - update snapshots * Add copy changes; How you can help and territories * Update methodology section with copy changes * Swap out all email links with <LinkTypeWrapper> - update tests
This commit is contained in:
parent
4c7d729cf7
commit
e677df794d
26 changed files with 1867 additions and 968 deletions
|
@ -2,6 +2,8 @@ import React from 'react';
|
|||
import {defineMessages} from 'react-intl';
|
||||
import {FormattedMessage} from 'gatsby-plugin-intl';
|
||||
|
||||
import LinkTypeWrapper from '../../components/LinkTypeWrapper';
|
||||
|
||||
export const EXEC_ORDER_LINK = 'https://www.whitehouse.gov/briefing-room/presidential-actions/2021/01/27/executive-order-on-tackling-the-climate-crisis-at-home-and-abroad/';
|
||||
|
||||
export const PAGE = defineMessages({
|
||||
|
@ -61,10 +63,12 @@ export const HEADING_1 = {
|
|||
tool identifies disadvantaged communities through publicly-available, nationally-consistent, and high-quality data.
|
||||
`}
|
||||
values={{
|
||||
eoLink:
|
||||
<a href={EXEC_ORDER_LINK} target={'blank'}>
|
||||
Executive Order 14008
|
||||
</a>,
|
||||
eoLink: <LinkTypeWrapper
|
||||
linkText={'Executive Order 14008'}
|
||||
internal={false}
|
||||
url={EXEC_ORDER_LINK}
|
||||
openUrlNewTab={true}
|
||||
/>,
|
||||
tacklingItalics: <i>Tackling the Climate Crisis at Home and Abroad</i>,
|
||||
}}
|
||||
/>,
|
||||
|
@ -80,10 +84,12 @@ export const HEADING_2 = {
|
|||
{eoLink} on {tacklingItalics}.
|
||||
`}
|
||||
values={{
|
||||
eoLink:
|
||||
<a href={EXEC_ORDER_LINK} target={'blank'}>
|
||||
Executive Order 14008
|
||||
</a>,
|
||||
eoLink: <LinkTypeWrapper
|
||||
linkText={'Executive Order 14008'}
|
||||
internal={false}
|
||||
url={EXEC_ORDER_LINK}
|
||||
openUrlNewTab={true}
|
||||
/>,
|
||||
tacklingItalics: <i>Tackling the Climate Crisis at Home and Abroad</i>,
|
||||
}}
|
||||
/>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue