Skip to content

Commit

Permalink
test cookie consent and site alert
Browse files Browse the repository at this point in the history
  • Loading branch information
paridhi-parajuli committed Jan 8, 2025
1 parent ee12e61 commit c3e7eb4
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .veda/ui
Submodule ui updated 35 files
+1 −4 .github/workflows/release.yml
+2 −5 app/scripts/components/common/banner/index.tsx
+3 −3 app/scripts/components/common/blocks/block-map.tsx
+2 −3 app/scripts/components/common/blocks/scrollytelling/index.tsx
+1 −1 app/scripts/components/common/cookie-consent/index.tsx
+3 −9 app/scripts/components/common/map/map-component.tsx
+3 −3 app/scripts/components/common/map/style-generators/basemap.tsx
+1 −1 app/scripts/components/common/page-header-legacy/nav-menu-item.tsx
+1 −1 app/scripts/components/common/page-header/index.tsx
+1 −2 app/scripts/components/common/page-header/nav/nav-dropdown-button.tsx
+5 −3 app/scripts/components/common/site-alert/index.tsx
+4 −1 app/scripts/components/common/uswds/index.tsx
+21 −27 app/scripts/components/exploration/components/dataset-selector-modal/index.tsx
+1 −1 app/scripts/components/exploration/components/datasets/colorRangeSlider/index.tsx
+1 −3 app/scripts/components/exploration/components/datasets/dataset-list-item.tsx
+1 −3 app/scripts/components/exploration/components/datasets/dataset-list.tsx
+22 −18 app/scripts/components/exploration/components/layer-info-modal.tsx
+3 −4 app/scripts/components/exploration/components/map/index.tsx
+3 −4 app/scripts/components/exploration/components/map/layer.tsx
+1 −3 app/scripts/components/exploration/components/timeline/timeline.tsx
+13 −16 app/scripts/components/exploration/container.tsx
+3 −4 app/scripts/components/exploration/hooks/use-analysis-data-request.ts
+1 −3 app/scripts/components/exploration/index.tsx
+0 −27 app/scripts/context/env-config.tsx
+118 −0 app/scripts/context/veda-ui-provider.tsx
+2 −2 app/scripts/index.ts
+17 −5 app/scripts/main.tsx
+37 −0 docs/development/RELEASE.md
+ docs/media/preview-pr.png
+ docs/media/workflow-screenshot.png
+3 −6 mock/veda.config.js
+1 −2 package.json
+13 −6 parcel-resolver-veda/index.js
+2 −1 tsconfig.json
+0 −5 yarn.lock
51 changes: 48 additions & 3 deletions 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 @@ -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: {
Expand Down Expand Up @@ -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
},
};

0 comments on commit c3e7eb4

Please sign in to comment.