mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-10-21 21:23:52 -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
|
@ -293,6 +293,8 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
<p>
|
||||
For general feedback, email
|
||||
<a
|
||||
class="usa-link usa-link--external"
|
||||
data-cy=""
|
||||
href="mailto:Screeningtool-Support@omb.eop.gov"
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
|
@ -382,7 +384,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
class="usa-footer__secondary-link"
|
||||
>
|
||||
<a
|
||||
class="footer-link-first-child"
|
||||
class="usa-link usa-link--external footer-link-first-child"
|
||||
data-cy="whitehouse-gov"
|
||||
href="https://www.whitehouse.gov/"
|
||||
rel="noreferrer"
|
||||
|
@ -395,6 +397,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
class="usa-footer__secondary-link"
|
||||
>
|
||||
<a
|
||||
class="usa-link usa-link--external"
|
||||
data-cy="freedom-of-information-act-(foia)"
|
||||
href="https://www.whitehouse.gov/ceq/foia"
|
||||
rel="noreferrer"
|
||||
|
@ -407,6 +410,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
class="usa-footer__secondary-link"
|
||||
>
|
||||
<a
|
||||
class="usa-link usa-link--external"
|
||||
data-cy="privacy-policy"
|
||||
href="https://www.whitehouse.gov/privacy/"
|
||||
rel="noreferrer"
|
||||
|
@ -434,7 +438,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
class="usa-footer__secondary-link"
|
||||
>
|
||||
<a
|
||||
class="footer-link-first-child"
|
||||
class="usa-link usa-link--external footer-link-first-child"
|
||||
data-cy="find-a-contact-at-usa-gov"
|
||||
href="https://www.usa.gov/"
|
||||
rel="noreferrer"
|
||||
|
@ -491,6 +495,10 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
type="button"
|
||||
>
|
||||
Help improve the site & data
|
||||
<img
|
||||
alt="launch icon"
|
||||
src="test-file-stub"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -319,8 +319,11 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
|
||||
In
|
||||
<a
|
||||
class="usa-link usa-link--external"
|
||||
data-cy=""
|
||||
href="https://www.whitehouse.gov/briefing-room/presidential-actions/2021/01/27/executive-order-on-tackling-the-climate-crisis-at-home-and-abroad/"
|
||||
target="blank"
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
Executive Order 14008
|
||||
</a>
|
||||
|
@ -395,8 +398,11 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
Read more about the Justice40 Initiative in President Biden’s
|
||||
|
||||
<a
|
||||
class="usa-link usa-link--external"
|
||||
data-cy=""
|
||||
href="https://www.whitehouse.gov/briefing-room/presidential-actions/2021/01/27/executive-order-on-tackling-the-climate-crisis-at-home-and-abroad/"
|
||||
target="blank"
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
Executive Order 14008
|
||||
</a>
|
||||
|
@ -587,7 +593,8 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
class="j40-aboutcard-sm-link"
|
||||
>
|
||||
<a
|
||||
class="j40-aboutcard-link"
|
||||
class="usa-link usa-link--external j40-aboutcard-link"
|
||||
data-cy=""
|
||||
href="mailto:Screeningtool-Support@omb.eop.gov"
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
|
@ -642,7 +649,8 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
class="j40-aboutcard-sm-link"
|
||||
>
|
||||
<a
|
||||
class="j40-aboutcard-link"
|
||||
class="usa-link usa-link--external j40-aboutcard-link"
|
||||
data-cy=""
|
||||
href="https://github.com/usds/justice40-tool"
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
|
@ -740,7 +748,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
class="usa-footer__secondary-link"
|
||||
>
|
||||
<a
|
||||
class="footer-link-first-child"
|
||||
class="usa-link usa-link--external footer-link-first-child"
|
||||
data-cy="whitehouse-gov"
|
||||
href="https://www.whitehouse.gov/"
|
||||
rel="noreferrer"
|
||||
|
@ -753,6 +761,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
class="usa-footer__secondary-link"
|
||||
>
|
||||
<a
|
||||
class="usa-link usa-link--external"
|
||||
data-cy="freedom-of-information-act-(foia)"
|
||||
href="https://www.whitehouse.gov/ceq/foia"
|
||||
rel="noreferrer"
|
||||
|
@ -765,6 +774,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
class="usa-footer__secondary-link"
|
||||
>
|
||||
<a
|
||||
class="usa-link usa-link--external"
|
||||
data-cy="privacy-policy"
|
||||
href="https://www.whitehouse.gov/privacy/"
|
||||
rel="noreferrer"
|
||||
|
@ -792,7 +802,7 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
class="usa-footer__secondary-link"
|
||||
>
|
||||
<a
|
||||
class="footer-link-first-child"
|
||||
class="usa-link usa-link--external footer-link-first-child"
|
||||
data-cy="find-a-contact-at-usa-gov"
|
||||
href="https://www.usa.gov/"
|
||||
rel="noreferrer"
|
||||
|
@ -849,6 +859,10 @@ exports[`rendering of the DatasetContainer checks if various text fields are vis
|
|||
type="button"
|
||||
>
|
||||
Help improve the site & data
|
||||
<img
|
||||
alt="launch icon"
|
||||
src="test-file-stub"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -4,6 +4,7 @@ import {useIntl, FormattedMessage} from 'gatsby-plugin-intl';
|
|||
|
||||
import J40MainGridContainer from '../components/J40MainGridContainer';
|
||||
import Layout from '../components/layout';
|
||||
import LinkTypeWrapper from '../components/LinkTypeWrapper';
|
||||
|
||||
import * as CONTACT_COPY from '../data/copy/contact';
|
||||
interface IContactPageProps {
|
||||
|
@ -32,12 +33,12 @@ const ContactPage = ({location}: IContactPageProps) => {
|
|||
defaultMessage={CONTACT_COPY.CONTACT_VIA_EMAIL.DEFAULT_MESSAGE}
|
||||
values={{
|
||||
general_email_address:
|
||||
<a
|
||||
href={`mailto:${CONTACT_COPY.FEEDBACK_EMAIL}`}
|
||||
target="_blank"
|
||||
rel="noreferrer">
|
||||
{CONTACT_COPY.FEEDBACK_EMAIL}
|
||||
</a>,
|
||||
<LinkTypeWrapper
|
||||
linkText= {CONTACT_COPY.FEEDBACK_EMAIL}
|
||||
internal= {false}
|
||||
url= {`mailto:${CONTACT_COPY.FEEDBACK_EMAIL}`}
|
||||
openUrlNewTab= {true}
|
||||
/>,
|
||||
}}/>
|
||||
</p>
|
||||
</Grid>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue