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

Cleanup #674

Merged
merged 9 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from 6 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
28 changes: 0 additions & 28 deletions common/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,34 +135,6 @@ export const dataEngagements = [
},
"footer": null
}
,
{
"title": "Documentation",
"desc": "Access technical documentation for US GHG Center data services including a collection of code notebooks, and instructions for accessing data via API.",
"img": {
"src": new URL('./media/documentation.png', import.meta.url).href,
"alt": "image of colorful polygon against satellite landscape surface in brown"
},
"link": {
"url": "https://us-ghg-center.github.io/ghgc-docs/",
"text": "View more"
},
"footer": null
}
,
{
"title": "Documentation",
"desc": "Access technical documentation for US GHG Center data services including a collection of code notebooks, and instructions for accessing data via API.",
"img": {
"src": new URL('./media/documentation.png', import.meta.url).href,
"alt": "image of colorful polygon against satellite landscape surface in brown"
},
"link": {
"url": "https://us-ghg-center.github.io/ghgc-docs/",
"text": "View more"
},
"footer": null
}
];

export const customInterfaces = [
Expand Down
8 changes: 8 additions & 0 deletions common/keypoints.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from "$veda-ui/react";
import SmartLink from '$veda-ui-scripts/components/common/smart-link';

import { ExternalLinkFlag } from '$veda-ui-scripts/components/common/card/';

import {
Card,
CardHeader,
Expand Down Expand Up @@ -59,6 +61,12 @@ export default function Keypoints({
className: `border-0 position-relative card-shadow__hover margin-top-1 margin-right-2 ${cardType === 'cover' ? 'card__cover height-card-lg' : ''}`,
}}
>
{
!!datum.link.url.startsWith("http") &&
<div style={{cursor: "pointer"}}>
<ExternalLinkFlag />
</div>
}
<CardMedia imageClass={`${cardType === 'cover'? 'radius-lg bg-gray-30' : ''}`}>
<img src={datum.img.src} alt={datum.img.alt} className={`${cardType === 'cover' ? 'card-image__blend' : 'border-bottom border-gray-5'}`} />
</CardMedia>
Expand Down
10 changes: 3 additions & 7 deletions stories/epa-super-emitter.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
---
id: 'epa-super-emitter'
name: Advanced Technology to Detect Methane “Super Emitters” from Oil and Natural Gas Operations
description: ''
description: 'text TBA by EPA'
media:
src: ::file ./media/AdobeStock_550015657.png
alt: Image of plume from EMIT and AVIRIS-3 showing image swath width for each.
author:
name: NASA/JPL-Caltech. Example methane plumes as observed with EMIT and AVIRIS-3.
EMIT perched on the International Space Station provides an 80 km wide image swath at 60 m spatial resolution,
and AVIRIS-3 provides a narrower 3 km swath at 2 m spatial resolution when flying at 13,000 ft (figure is not to scale).
src: ::file ./methane/media/Gray_box.png
alt: gray box placeholder
isHidden: false
pubDate: 2024-12-05
taxonomy:
Expand Down
8 changes: 4 additions & 4 deletions stories/goes-validation.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: "geos-validation"
name: "GOES validation"
description: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book."
id: "goes-validation"
name: "NOAA's GOES Satellites Can Provide Quicker Detection of Methane Gas Leaks"
description: "Results of a new experiment show technology aboard NOAA’s GOES satellites can help scientists better detect emissions of methane – a potent greenhouse gas – as often as every seven seconds. This will provide faster, more complete data on the location and amount of methane emissions to enable more rapid and successful mitigation efforts."
isHidden: false
asLink:
url: https://www.pnas.org/doi/10.1073/pnas.2310797120
Expand All @@ -19,4 +19,4 @@ taxonomy:
- name: Gas
values:
- CH₄
---
---
Binary file removed stories/media/AdobeStock_550015657.png
Binary file not shown.
12 changes: 6 additions & 6 deletions stories/methane/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const stories = [
"alt": "the international space station in orbit over the earth with a zoomed in view of the EMIt instrument on the station"
},
"link": {
"url": "/stories/",
"url": "/stories/emit-extension-nasa-expands",
"text": "See more"
},
"footer": null
Expand All @@ -114,7 +114,7 @@ export const stories = [
"alt": "industrial smokestack background overlaid with connected points of light and human in foreground looking at the scene"
},
"link": {
"url": "/stories/",
"url": "/stories/nist-methane-intercomparisons",
"text": "See more"
},
"footer": null
Expand All @@ -127,7 +127,7 @@ export const stories = [
"alt": "view of wetland and brush/forest area from above"
},
"link": {
"url": "/stories/",
"url": "/stories/methane-inverse-models",
"text": "See more"
},
"footer": null
Expand All @@ -140,7 +140,7 @@ export const stories = [
"alt": "gray box"
},
"link": {
"url": "/stories/",
"url": "/stories/epa-super-emitter",
"text": "See more"
},
"footer": null
Expand All @@ -153,7 +153,7 @@ export const stories = [
"alt": "colorful regions representing methane plumes over brown surface as observed by GOES satellite"
},
"link": {
"url": "https://research.noaa.gov/",
"url": "https://www.pnas.org/doi/10.1073/pnas.2310797120",
"text": "See more"
},
"footer": null
Expand Down Expand Up @@ -243,4 +243,4 @@ export const datasets = [
},
"footer": null
}
]
]
Loading