mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-09-07 10:51:00 -07:00
Refactor layout (#486)
* Refactor to move `<DatasetContainer>` out of layout * `<DatasetContainer>` is now in the methodology page. Starting the review there will help understand the motive for this change. * Fixed 404 page which seems way out of date. * Use row/col grid syntax
This commit is contained in:
parent
9a9d5fdf7f
commit
73a205dc48
7 changed files with 285 additions and 216 deletions
|
@ -1,6 +1,8 @@
|
|||
import * as React from 'react';
|
||||
import Layout from '../components/layout';
|
||||
import J40MainGridContainer from '../components/J40MainGridContainer';
|
||||
import {FormattedMessage} from 'gatsby-plugin-intl';
|
||||
import {Grid} from '@trussworks/react-uswds';
|
||||
|
||||
interface ContactPageProps {
|
||||
location: Location;
|
||||
|
@ -11,39 +13,45 @@ const ContactPage = ({location}: ContactPageProps) => {
|
|||
const techemail = 'screeningtool.support@usds.gov';
|
||||
|
||||
return (<Layout location={location}>
|
||||
<section className={'usa-prose'}>
|
||||
<h2><FormattedMessage
|
||||
id={'contact.pageheader'}
|
||||
description={'H2 header for contact page'}
|
||||
defaultMessage={'Contact'}/></h2>
|
||||
<h3><FormattedMessage
|
||||
id={'contact.sectionheader'}
|
||||
description={'Heading for page to allow users to contact project maintainers'}
|
||||
defaultMessage={'Email us'}/></h3>
|
||||
<J40MainGridContainer>
|
||||
<Grid row><Grid col>
|
||||
<section className={'usa-prose'}>
|
||||
<h2><FormattedMessage
|
||||
id={'contact.pageheader'}
|
||||
description={'H2 header for contact page'}
|
||||
defaultMessage={'Contact'}/></h2>
|
||||
<h3><FormattedMessage
|
||||
id={'contact.sectionheader'}
|
||||
description={'Heading for page to allow users to contact project maintainers'}
|
||||
defaultMessage={'Email us'}/></h3>
|
||||
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id={'contact.general'}
|
||||
description={'Contact page body text'}
|
||||
defaultMessage={`
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id={'contact.general'}
|
||||
description={'Contact page body text'}
|
||||
defaultMessage={`
|
||||
For general feedback, email {general_email_address}
|
||||
`}
|
||||
values={{
|
||||
general_email_address: <a href={`mailto:${generalemail}`}>{generalemail}</a>,
|
||||
}}/>
|
||||
</p>
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id={'contact.general'}
|
||||
description={'Contact page body text'}
|
||||
defaultMessage={`
|
||||
values={{
|
||||
general_email_address:
|
||||
<a href={`mailto:${generalemail}`}>{generalemail}</a>,
|
||||
}}/>
|
||||
</p>
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id={'contact.general'}
|
||||
description={'Contact page body text'}
|
||||
defaultMessage={`
|
||||
For technical support, email {tech_email_address}
|
||||
`}
|
||||
values={{
|
||||
tech_email_address: <a href={`mailto:${techemail}`}>{techemail}</a>,
|
||||
}}/>
|
||||
</p>
|
||||
</section>
|
||||
values={{
|
||||
tech_email_address:
|
||||
<a href={`mailto:${techemail}`}>{techemail}</a>,
|
||||
}}/>
|
||||
</p>
|
||||
</section>
|
||||
</Grid></Grid>
|
||||
</J40MainGridContainer>
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue