Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Do not merge] Test/sitealert banner #693

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .veda/ui
Submodule ui updated 105 files
57 changes: 56 additions & 1 deletion veda.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,21 @@ let subNavItems = [
},
]

const defaultGuidance = {
left: {
title: 'Official websites use .gov',
text: 'A **.gov** website belongs to an official government organization in the United States.',
iconAlt: 'Dot gov icon',
icon: '/img/icon-dot-gov.svg'
},
right: {
title: 'Secure .gov websites use HTTPS',
text: "A **lock icon** or **https://** means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.",
iconAlt: 'HTTPS icon',
icon: '/img/icon-https.svg'
}
};

if (config.GOOGLE_FORM) {
subNavItems = [
...subNavItems,
Expand Down Expand Up @@ -122,5 +137,45 @@ module.exports = {
navItems: {
mainNavItems: defaultMenuLinks,
subNavItems: subNavItems
}
},
cookieConsentForm: {
title: 'Cookie Consent',
copy: 'We use cookies to enhance your browsing experience and to help us understand how our website is used. These cookies allow us to collect data on site usage and improve our services based on your interactions. To learn more about it, see our [Privacy Policy](https://www.nasa.gov/privacy/#cookies)',
theme: {
card: {
backgroundColor: '#2276ac',
sideBarColor: '#175074',
textColor: 'White',
linkColor: '#175074'
},
acceptButton: {
default: { backgroundColor: '#175074', textColor: 'white' },
hover: { backgroundColor: '#2c3e50', textColor: '#white' }
},
declineButton: {
default: { borderColor: '#175074', textColor: '#175074' },
hover: { borderColor: '#2c3e50', textColor: '#2c3e50' }
},
iconColor: { default: 'White', hover: '#175074' }
}
},
banner: {
headerText: 'An official website of the United States government',
headerActionText: "Here's how you know",
ariaLabel: 'Banner for official government website',
flagImgSrc: '/img/us_flag_small.png',
flagImgAlt: 'US flag',
leftGuidance: defaultGuidance.left,
rightGuidance: defaultGuidance.right,
className: '',
defaultIsOpen: false,
contentId: 'gov-banner-content'
},
siteAlert: {
content: `[Discover insights on how the COVID-19 pandemic](stories/life-of-water) impacted air quality worldwide, observed through NASA's satellite data.`,
expires: '2026-08-03T12:00:00-04:00',
type: 'info',
slim: true,
showIcon: true
},
};
Loading