import * as React from 'react'; import {defineMessages} from 'react-intl'; import {Grid} from '@trussworks/react-uswds'; import {FormattedMessage, useIntl} from 'gatsby-plugin-intl'; import AreasOfFocusList from '../components/areasOfFocusList'; import AlertWrapper from '../components/AlertWrapper'; import J40MainGridContainer from '../components/J40MainGridContainer'; import Layout from '../components/layout'; interface IndexPageProps { location: Location; } // markup const IndexPage = ({location}: IndexPageProps) => { const intl = useIntl(); const messages = defineMessages({ aboutHeader: { id: 'index.aboutContent.header', defaultMessage: 'About Justice40', description: 'h1 header on About page', }, presidentalLinkUri: { id: 'index.presidentalLinkUri', defaultMessage: 'https://www.whitehouse.gov/briefing-room/' + 'presidential-actions/2021/01/27/' + 'executive-order-on-tackling-the-climate-' + 'crisis-at-home-and-abroad/', description: 'Link url to presidential actions executive order. Part of paragraph 3', }, presidentalLinkLabel: { id: 'index.presidentalLinkLabel', defaultMessage: 'Executive Order on Tackling the Climate Crisis at Home and Abroad.', description: 'Link url to presidential actions executive order. Part of paragraph 3', }, transparentLabel: { id: 'index.section3.transparentLabel', defaultMessage: 'Transparent:', description: 'Italic label for 1st paragraph of section 3 on index page', }, inclusiveLabel: { id: 'index.section3.inclusiveLabel', defaultMessage: 'Inclusive:', description: 'Italic label for 2nd paragraph of section 3 on index page', }, iterativeLabel: { id: 'index.section3.iterativeLabel', defaultMessage: 'Iterative:', description: 'Italic label for 3rd paragraph of section 3 on index page', }, }); return (

{intl.formatMessage(messages.aboutHeader)}

{intl.formatMessage(messages.presidentalLinkLabel)} , }}/>

{intl.formatMessage(messages.transparentLabel)}, }}/>

{intl.formatMessage(messages.inclusiveLabel)}, }}/>

{intl.formatMessage(messages.iterativeLabel)}, }}/>

); }; export default IndexPage;