mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-03 03:44:18 -07:00
More tweaks from today's meeting (#87)
Just playing with layout. - Inverted header - updated snapshot - adjusted column widths - Update J40Footer.spec.tsx.snap
This commit is contained in:
parent
426f596c7a
commit
f9ac170c6a
5 changed files with 175 additions and 134 deletions
|
@ -1,30 +1,34 @@
|
|||
import React from 'react';
|
||||
import {GovBanner, Header, Title, PrimaryNav} from '@trussworks/react-uswds';
|
||||
import {useIntl, Link} from 'gatsby-plugin-intl';
|
||||
import {useIntl} from 'gatsby-plugin-intl';
|
||||
import {Helmet} from 'react-helmet';
|
||||
|
||||
const headerLinks = [
|
||||
<Link to="/" key="/">Home</Link>,
|
||||
<></>,
|
||||
];
|
||||
|
||||
const J40Header = () => {
|
||||
const intl = useIntl();
|
||||
const title = intl.formatMessage({id: '71L0pp',
|
||||
const title = intl.formatMessage({
|
||||
id: '71L0pp',
|
||||
defaultMessage: 'Justice40',
|
||||
description: 'Title of the project'});
|
||||
description: 'Title of the project',
|
||||
});
|
||||
return (
|
||||
<>
|
||||
<Helmet>
|
||||
<meta charSet="utf-8" />
|
||||
<meta charSet="utf-8"/>
|
||||
<title>{title}</title>
|
||||
</Helmet>
|
||||
|
||||
<GovBanner />
|
||||
<Header>
|
||||
<Title className={'usa-hero__heading j40-title'}>
|
||||
{title}
|
||||
</Title>
|
||||
<PrimaryNav items={headerLinks}/>
|
||||
<GovBanner/>
|
||||
<Header className={'j40-header'} basic={true} role={'banner'}>
|
||||
<div className="usa-nav-container">
|
||||
<div className="usa-navbar">
|
||||
<Title className={'j40-title'}>{title}</Title>
|
||||
</div>
|
||||
<PrimaryNav items={headerLinks}/>
|
||||
</div>
|
||||
</Header>
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue