j40-cejst-2/client/src/data/copy/common.tsx
Vim b1adc1f69f
Add beta site banner (#802)
* Add new BetaBanner and remove legacy Alerts

- add BetaBanner component and test
- update AboutCard test
- remove AlertWrapper component, copy and tests
- remove AlertWrapper from all pages
- add BetaBanner copy and intl
- update logo and color
- add styles using USWDS tokens to globals.scss

* Add Beta pill to header

- refactor Header to use Grid and USWDS
- refactor global.scss to use Grid and USWDS
- updates snapshots

* Move styles from global to modules

- move BetaBanner styles from global to modules
- move J40Header to a folder component and module styles
- add J40Header unit test
- add a design-system.scss file that allows USWDS styles in modules
- updates snapshots

* Update en.json file

* Trigger Build

* Add initial Spanish content

- add README for translation team
- add createSpanishJson script
- add initial version of es.json
- add a spanish string variable to test translation

* Add retry and timeout config to stalled test

* Remove redundant test cases for AboutCard

- update snapshot

* Update BetaBanner description
2021-10-21 14:56:32 -07:00

114 lines
3 KiB
TypeScript

import {defineMessages} from 'react-intl';
// Beta Banner
export const BETA_BANNER = defineMessages({
TITLE: {
id: 'banner.beta.title',
defaultMessage: 'This is a Beta site.',
description: 'the main title of the beta banner',
},
INFO: {
id: 'banner.beta.info',
defaultMessage: `It is an early, in-progress version of the tool with limited data
sets that will be continuously updated.`,
description: 'the main info of the beta banner',
},
});
// Header
export const HEADER = defineMessages({
TITLE_LINE_1: {
id: 'header.title.line1',
defaultMessage: `Climate and Economic Justice`,
description: 'Title in nav header line 1 of 2',
},
TITLE_LINE_2: {
id: 'header.title.line2',
defaultMessage: `Screening Tool`,
description: 'Title in nav header line 2 of 2',
},
ABOUT: {
id: 'header.about',
defaultMessage: 'About',
description: 'Header navigate item to the about page',
},
EXPLORE: {
id: 'header.explore',
defaultMessage: 'Explore the tool',
description: 'Header navigate item to the Explore the tool page',
},
METHODOLOGY: {
id: 'header.methodology',
defaultMessage: 'Data & methodology',
description: 'Header navigate item to the Methodology page',
},
CONTACT: {
id: 'header.contact',
defaultMessage: 'Contact',
description: 'Header navigate item to the Contact page',
},
});
// Footer
export const FOOTER = defineMessages({
ARIA_LABEL: {
id: 'footer.arialabel',
defaultMessage: 'Footer navigation',
description: 'aria-label text for whole footer',
},
TITLE: {
id: 'footer.logo.title',
defaultMessage: 'Council on Environmental Quality',
description: 'Footer under logo',
},
MORE_INFO: {
id: 'footer.moreinfoheader',
defaultMessage: 'More information',
description: 'Footer column header',
},
WHITEHOUSE: {
id: 'footer.whitehouselink',
defaultMessage: 'Whitehouse.gov',
description: 'Footer Whitehouse.gov link text',
},
FOIA: {
id: 'footer.foialink',
defaultMessage: 'Freedom of Information Act (FOIA)',
description: 'Footer FOIA link text',
},
PRIVACY: {
id: 'footer.privacylink',
defaultMessage: 'Privacy Policy',
description: 'Footer privacy policy link text',
},
LOGO_ALT: {
id: 'footer.whitehouselogoalt',
defaultMessage: 'Whitehouse logo',
description: 'Footer Whitehouse logo alt text',
},
QUESTIONS: {
id: 'footer.questionsheader',
defaultMessage: 'Have a question about government services?',
description: 'Footer column header',
},
CONTACT_LINK: {
id: 'footer.findcontactlink',
defaultMessage: 'Find a contact at USA.gov',
description: 'Footer find contact link text',
},
CONTACT: {
id: 'footer.contactheader',
defaultMessage: 'Contact',
description: 'Footer column header',
},
});
export const FOOTER_CEQ_ADDRESS = {
NAME: 'Council on Environmental Quality',
STREET: '730 Jackson Pl NW',
CITY_STATE: 'Washington, D.C. 20506',
PHONE: '(202) 395-5750',
}
;