Skip to content

Commit

Permalink
v1.0.1 (#263)
Browse files Browse the repository at this point in the history
# Changelog

## πŸŽ‰ Features
πŸ¦— 

## πŸš€ Improvements

- Add data source citation in Air-Sea COβ‚‚ Flux, ECCO-Darwin Model v5 dataset overview
- Update cover image in U.S. Gridded Anthropogenic Greenhouse Gas Emissions data insight
- Update website meta image to a clearer version

## πŸ› Fixes

- Fix user notebook URL for OCO-2 MIP Top-down COβ‚‚ Budgets dataset
- Fix broken external link to gas flaring photo
  • Loading branch information
slesaad authored Jan 11, 2024
1 parent c2c10d9 commit 8fcf1c5
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 17 deletions.
30 changes: 30 additions & 0 deletions overrides/common/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { NavLink } from "$veda-ui/react-router-dom";
import styled, { css } from "$veda-ui/styled-components";

const MouseEventStyle = css`
&:hover {
cursor: pointer;
}
&:focus {
outline: 3px solid #1565EF;
}
&:active {
color: black;
}
`

export const AccessibilityLink = styled(NavLink)`
text-decoration: underline;
${MouseEventStyle}
`;

export const AccessibilityMenuItem = styled(NavLink)`
text-decoration: none;
${MouseEventStyle}
&:hover {
text-decoration: underline;
}
&:active {
text-decoration: underline;
}
`;
8 changes: 2 additions & 6 deletions overrides/components/page-footer/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
import { useFeedbackModal } from "$veda-ui-scripts/components/common/layout-root";
import { useMediaQuery } from "$veda-ui-scripts/utils/use-media-query";
import Partners from "../../home/partners";
import { AccessibilityMenuItem } from "../../common/styles";

const FooterInner = styled.div`
display: flex;
Expand Down Expand Up @@ -58,15 +59,10 @@ const FooterMenu = styled.ul`
}
`;

const FooterMenuLink = styled(NavLink)`
const FooterMenuLink = styled(AccessibilityMenuItem)`
font-weight: ${themeVal("type.base.regular")};
text-decoration: none;
font-size: 0.875rem;
text-transform: ${themeVal("button.type.case")};
&:hover {
text-decoration: underline;
}
`;

const FooterContacts = styled.div`
Expand Down
11 changes: 3 additions & 8 deletions overrides/home/arrow-link.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
import React from "$veda-ui/react";
import { NavLink } from "$veda-ui/react-router-dom";
import styled from "$veda-ui/styled-components";
import { glsp, themeVal } from "$veda-ui/@devseed-ui/theme-provider";
import { CollecticonArrowRight } from "$veda-ui/@devseed-ui/collecticons";
import { AccessibilityLink } from "../common/styles";

const ArrowLinkCmp = styled(NavLink)`
const ArrowLinkCmp = styled(AccessibilityLink)`
display: flex;
align-items: center;
gap: ${glsp(0.5)};
color: ${themeVal("color.link")};
text-decoration: none;
pointer-events: all;
&:hover,
&:focus {
text-decoration: underline;
}
width: fit-content;
`;

export function ArrowLink(props) {
Expand Down
4 changes: 2 additions & 2 deletions stories/us-methane-sources.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ taxonomy:
src={new URL('./gas-flaring.png', import.meta.url).href}
alt="colorful gas flare from chimney against blue sky"
align="left"
attrAuthor="Leslie Von Pless"
attrUrl="https://www.nasa.gov/sites/default/files/thumbnails/image/1-permian-methane-von-pless-gas-flaring-photo-hi-rez-1041.jpg"
attrAuthor="Leslie Von Pless/Environmental Defense Fund (EDF)"
attrUrl="https://www.nasa.gov/wp-content/uploads/2021/06/1-permian-methane-von-pless-gas-flaring-photo-hi-rez-1041.jpg"
/>
<Caption> Gas flaring during oil and gas production is a known source of methane emissions </Caption>
</Figure>
Expand Down
2 changes: 1 addition & 1 deletion veda.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = {
button: {
type: {
case: "uppercase",
weight: 400,
weight: 500,
},
},
},
Expand Down

0 comments on commit 8fcf1c5

Please sign in to comment.