Fix misc stuff from lighthouse (#81)

* Fix misc stuff from lighthouse

- Icons in list were resizing to be too small.
- Added robots.txt (full exclude for now)
- Add favicon.ico placeholder
- Added page title using helmet (react-helmet + gatsby-plugin-react-helmet)
Note: not sure if react-helmet can be in dev section of package.json?

* Move helmet to header file
- Moved  `<Helmet><title>{title}</title></Helmet>` to Header.
- Added ts support for Helmet.
* Fix title header
This commit is contained in:
TomNUSDS 2021-05-28 17:07:50 -07:00 committed by GitHub
commit 9f3a030fd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 58 additions and 2 deletions

View file

@ -1,6 +1,7 @@
import React from 'react';
import {GovBanner, Header, Title, PrimaryNav} from '@trussworks/react-uswds';
import {useIntl, Link} from 'gatsby-plugin-intl';
import {Helmet} from 'react-helmet';
const headerLinks = [
<Link to="/" key="/">Home</Link>,
@ -13,9 +14,14 @@ const J40Header = () => {
description: 'Title of the project'});
return (
<>
<Helmet>
<meta charSet="utf-8" />
<title>{title}</title>
</Helmet>
<GovBanner />
<Header>
<Title>
<Title className={'usa-hero__heading j40-title'}>
{title}
</Title>
<PrimaryNav items={headerLinks}/>