From e78f420527ae6167ecabc2b4a35166c10fa64b42 Mon Sep 17 00:00:00 2001 From: Paridhi <073bct525.paridhi@pcampus.edu.np> Date: Tue, 7 Jan 2025 09:37:59 -0600 Subject: [PATCH 1/4] update veda-ui v5.11.5 --- .veda/ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.veda/ui b/.veda/ui index 743089f08..5772ab889 160000 --- a/.veda/ui +++ b/.veda/ui @@ -1 +1 @@ -Subproject commit 743089f08ef6bcb54d23c94414ed92183b6e26e9 +Subproject commit 5772ab889b2bb1814b2346673a036fe0acc792cd From ee12e6191d5e246417d59d146906dca77ceaa6ca Mon Sep 17 00:00:00 2001 From: Paridhi <073bct525.paridhi@pcampus.edu.np> Date: Tue, 7 Jan 2025 13:51:18 -0600 Subject: [PATCH 2/4] add temp banner --- veda.config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/veda.config.js b/veda.config.js index e751b0eeb..55164d367 100644 --- a/veda.config.js +++ b/veda.config.js @@ -90,11 +90,9 @@ module.exports = { "This dashboard is for exploring key datasets that provide insight into greenhouse gas sources, sinks, emissions, fluxes, and events.", // Temporary Banner Text/URL/expiry tempBanner: - "Read the new story on using EMIT and AVIRIS-3 for monitoring large methane emission events.", - tempBannerUrl: - "stories/emit-and-aviris-3", + "Temporary Banner", tempBannerExpires: - "2024-07-03T12:00:00-04:00" + "2025-07-03T12:00:00-04:00" }, theme: { From c3e7eb4087072464ad4f44bab025a6026a2df021 Mon Sep 17 00:00:00 2001 From: Paridhi <073bct525.paridhi@pcampus.edu.np> Date: Wed, 8 Jan 2025 10:27:52 -0600 Subject: [PATCH 3/4] test cookie consent and site alert --- .veda/ui | 2 +- veda.config.js | 51 +++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 49 insertions(+), 4 deletions(-) diff --git a/.veda/ui b/.veda/ui index 5772ab889..283ae3b84 160000 --- a/.veda/ui +++ b/.veda/ui @@ -1 +1 @@ -Subproject commit 5772ab889b2bb1814b2346673a036fe0acc792cd +Subproject commit 283ae3b84e8005b354d826c53518912865650f10 diff --git a/veda.config.js b/veda.config.js index 55164d367..6a1b8ca02 100644 --- a/veda.config.js +++ b/veda.config.js @@ -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, @@ -90,9 +105,11 @@ module.exports = { "This dashboard is for exploring key datasets that provide insight into greenhouse gas sources, sinks, emissions, fluxes, and events.", // Temporary Banner Text/URL/expiry tempBanner: - "Temporary Banner", + "Read the new story on using EMIT and AVIRIS-3 for monitoring large methane emission events.", + tempBannerUrl: + "stories/emit-and-aviris-3", tempBannerExpires: - "2025-07-03T12:00:00-04:00" + "2024-07-03T12:00:00-04:00" }, theme: { @@ -120,5 +137,33 @@ 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' } + } + }, + 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 + }, }; From a14614857f43a71fef7d8c88ce49454e86525455 Mon Sep 17 00:00:00 2001 From: Paridhi <073bct525.paridhi@pcampus.edu.np> Date: Wed, 8 Jan 2025 10:33:43 -0600 Subject: [PATCH 4/4] add banner --- veda.config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/veda.config.js b/veda.config.js index 6a1b8ca02..a6941a935 100644 --- a/veda.config.js +++ b/veda.config.js @@ -159,6 +159,18 @@ module.exports = { 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',