mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-09-03 22:42:15 -07:00
Implement downloads page and May 25th timed copy changes (#1653)
* Add initial side nav * Add Download page as a sub-page under Meth&Data - udpate S3 file path in .envs - remove the DownloadPacket component - move download copy from methodology to download - modify header to use two types of navs: -- mobile (with sub-pages) and -- desktop (without subpages) - create a SubPageNav component - add SubPagNav to Meth and Download page - update snapshots - add global CSS overide to remove minus sign on mobile nav link accordion as it's permanently open * Remove the update tag above Public eng button * Make the 3rd bullet on explore page update on 5/25 * Make the RFI box text change after 5/25/22 * Update site with RFI expired copy, remove Alerts - add Spanish translations - update snapshots * Fix typo on XLS file path * Refactor HowYouCanHelp to standard form * Add custom download links with icons - add new DownloadLink compnent - add Spanish translations * Update download file sizes * Allow meth&data nav link to collapse on mobile
This commit is contained in:
parent
ef46af00f8
commit
226017654a
46 changed files with 966 additions and 1720 deletions
|
@ -4,37 +4,64 @@ import {useIntl} from 'gatsby-plugin-intl';
|
|||
|
||||
import J40MainGridContainer from '../components/J40MainGridContainer';
|
||||
import Layout from '../components/layout';
|
||||
import PublicEngageButton from '../components/PublicEngageButton';
|
||||
import SubPageNav from '../components/SubPageNav';
|
||||
import {useWindowSize} from 'react-use';
|
||||
|
||||
import * as DOWNLOADS_COPY from '../data/copy/downloads';
|
||||
|
||||
import * as CONSTANTS from '../data/constants';
|
||||
interface IDownloadsPageProps {
|
||||
location: Location;
|
||||
}
|
||||
|
||||
const DownloadsPage = ({location}: IDownloadsPageProps) => {
|
||||
const intl = useIntl();
|
||||
const {width} = useWindowSize();
|
||||
|
||||
return (
|
||||
<Layout location={location} title={intl.formatMessage(DOWNLOADS_COPY.PAGE_INTRO.PAGE_TILE)}>
|
||||
|
||||
<J40MainGridContainer>
|
||||
|
||||
<h1>{intl.formatMessage(DOWNLOADS_COPY.PAGE_INTRO.PAGE_HEADING1)}</h1>
|
||||
<section className={'page-heading'}>
|
||||
<h1>{intl.formatMessage(DOWNLOADS_COPY.PAGE_INTRO.PAGE_HEADING1)}</h1>
|
||||
<PublicEngageButton />
|
||||
</section>
|
||||
|
||||
<Grid desktop={{col: 8}}>
|
||||
<h2>{intl.formatMessage(DOWNLOADS_COPY.PAGE_INTRO.PAGE_HEADING2)}</h2>
|
||||
<p>
|
||||
{intl.formatMessage(DOWNLOADS_COPY.PAGE_INTRO.PAGE_DESCRIPTION1)}
|
||||
</p>
|
||||
<p>
|
||||
{DOWNLOADS_COPY.DOWNLOAD_LINKS.EXCEL}
|
||||
</p>
|
||||
<p>
|
||||
{DOWNLOADS_COPY.DOWNLOAD_LINKS.CSV}
|
||||
</p>
|
||||
<p>
|
||||
{DOWNLOADS_COPY.DOWNLOAD_LINKS.SHAPE}
|
||||
</p>
|
||||
<Grid row gap className={'j40-mb5-mt3'}>
|
||||
|
||||
<Grid col={12} tablet={{col: 8}}>
|
||||
<h2>{intl.formatMessage(DOWNLOADS_COPY.PAGE_INTRO.PAGE_HEADING2)}</h2>
|
||||
<p>
|
||||
{intl.formatMessage(DOWNLOADS_COPY.PAGE_INTRO.PAGE_DESCRIPTION1)}
|
||||
</p>
|
||||
<p>
|
||||
{DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK1}
|
||||
</p>
|
||||
<p>
|
||||
{DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK2}
|
||||
</p>
|
||||
<p>
|
||||
{DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK3}
|
||||
</p>
|
||||
<p>
|
||||
{DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK4}
|
||||
</p>
|
||||
<p>
|
||||
{DOWNLOADS_COPY.DOWNLOAD_LINKS.LINK5}
|
||||
</p>
|
||||
</Grid>
|
||||
|
||||
{/* Second column */}
|
||||
<Grid col={12} tablet={{col: 1}}>
|
||||
{/* Spacer column */}
|
||||
</Grid>
|
||||
|
||||
{/* Third column - Only show the SubPagNav component on desktop width */}
|
||||
{width > CONSTANTS.USWDS_BREAKPOINTS.DESKTOP ?
|
||||
<Grid col={12} tablet={{col: 3}}>
|
||||
<SubPageNav activeSubPageIndex={2}/>
|
||||
</Grid> : ''}
|
||||
</Grid>
|
||||
|
||||
</J40MainGridContainer>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue