From f4a83f568a09067f7dfd1ed9bf322c81c8ed6f2b Mon Sep 17 00:00:00 2001 From: Kata Martin Date: Wed, 7 Aug 2024 10:00:14 -0400 Subject: [PATCH 1/3] Add new entries and logos for new press highlights --- components/press-logos/axios.js | 33 ++++++++++++++++++++++++++++++ components/press-logos/index.js | 2 ++ components/press-logos/politico.js | 22 ++++++++++++++++++++ data/press.js | 20 +++++++++--------- pages/press.js | 4 ++++ 5 files changed, 71 insertions(+), 10 deletions(-) create mode 100644 components/press-logos/axios.js create mode 100644 components/press-logos/politico.js diff --git a/components/press-logos/axios.js b/components/press-logos/axios.js new file mode 100644 index 00000000..6a7996b8 --- /dev/null +++ b/components/press-logos/axios.js @@ -0,0 +1,33 @@ +import { useThemeUI } from 'theme-ui' + +const Logo = () => { + const { theme } = useThemeUI() + + return ( + + + + + + + ) +} + +export default Logo diff --git a/components/press-logos/index.js b/components/press-logos/index.js index 0ef6db82..518d537f 100644 --- a/components/press-logos/index.js +++ b/components/press-logos/index.js @@ -9,3 +9,5 @@ export { default as Bloomberg } from './bloomberg' export { default as CNBC } from './cnbc' export { default as CBSNews } from './cbs-news' export { default as WashingtonPost } from './washington-post' +export { default as Axios } from './axios' +export { default as Politico } from './politico' diff --git a/components/press-logos/politico.js b/components/press-logos/politico.js new file mode 100644 index 00000000..8aef300c --- /dev/null +++ b/components/press-logos/politico.js @@ -0,0 +1,22 @@ +import { useThemeUI } from 'theme-ui' + +const Logo = () => { + const { theme } = useThemeUI() + + return ( + + + + ) +} + +export default Logo diff --git a/data/press.js b/data/press.js index 79116a24..d9d04dfa 100644 --- a/data/press.js +++ b/data/press.js @@ -1,6 +1,16 @@ import { Link } from '@carbonplan/components' const highlights = [ + { + source: 'Politico', + href: 'https://www.politico.com/newsletters/california-climate/2024/08/06/offsets-on-fire-00172970', + date: '08-06-2024', + }, + { + source: 'Axios', + href: 'https://www.axios.com/visuals/olympics-2024-paris-heat-climate', + date: '07-24-2024', + }, { source: 'Washington Post', href: 'https://www.washingtonpost.com/climate-environment/interactive/2023/extreme-heat-wet-bulb-globe-temperature/', @@ -16,16 +26,6 @@ const highlights = [ href: 'https://www.nationalgeographic.com/environment/article/forests-as-carbon-offsets-climate-change-has-other-plans', date: '05-04-2022', }, - { - source: 'Bloomberg', - href: 'https://www.bloomberg.com/news/articles/2022-04-07/the-biggest-crypto-effort-to-end-useless-carbon-offsets-is-backfiring?srnd=premium', - date: '04-07-2022', - }, - { - source: 'Los Angeles Times', - href: 'https://www.latimes.com/politics/story/2021-09-08/what-is-the-california-climate-credit-does-it-cut-pollution', - date: '09-08-2021', - }, ] const press = [ diff --git a/pages/press.js b/pages/press.js index 1b11ade5..935de5c4 100644 --- a/pages/press.js +++ b/pages/press.js @@ -14,9 +14,11 @@ import { import { Arrow } from '@carbonplan/icons' import { highlights, press } from '../data/press' import { + Axios, Bloomberg, LosAngelesTimes, NationalGeographic, + Politico, CBSNews, WashingtonPost, } from '../components/press-logos' @@ -46,6 +48,8 @@ const logos = { 'National Geographic': , 'CBS News': , 'Washington Post': , + Axios: , + Politico: , } const getColors = () => { From 77923aa396e3666bf3dd1d48252b566b56135f39 Mon Sep 17 00:00:00 2001 From: Kata Martin Date: Fri, 9 Aug 2024 13:00:47 -0400 Subject: [PATCH 2/3] Add Bloomberg entries --- data/press.js | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/data/press.js b/data/press.js index d9d04dfa..861c0d56 100644 --- a/data/press.js +++ b/data/press.js @@ -1,6 +1,11 @@ import { Link } from '@carbonplan/components' const highlights = [ + { + source: 'Bloomberg', + href: 'https://www.bloomberg.com/news/articles/2024-08-09/clashing-risk-predictions-cast-doubt-on-black-box-climate-models', + date: '08-09-2024', + }, { source: 'Politico', href: 'https://www.politico.com/newsletters/california-climate/2024/08/06/offsets-on-fire-00172970', @@ -21,14 +26,30 @@ const highlights = [ href: 'https://www.cbs.com/shows/video/M7H_yUdOiUw_E0fW5l_SP_V786PBhjI0/', date: '08-13-2022', }, - { - source: 'National Geographic', - href: 'https://www.nationalgeographic.com/environment/article/forests-as-carbon-offsets-climate-change-has-other-plans', - date: '05-04-2022', - }, ] const press = [ + { + source: ['Bloomberg'], + href: 'https://www.bloomberg.com/news/articles/2024-08-09/clashing-risk-predictions-cast-doubt-on-black-box-climate-models', + title: 'Clashing risk predictions cast doubt on black box climate models', + authors: ['Eric Roston'], + date: '08-09-2024', + format: 'print', + }, + { + source: ['Bloomberg'], + href: 'https://www.bloomberg.com/graphics/2024-flood-fire-climate-risk-analytics/', + title: 'The risky business of predicting where climate disaster will hit', + authors: [ + 'Eric Roston', + 'Krishna Karra', + 'Leslie Kaufman', + 'Sinduja Rangarajan', + ], + date: '08-09-2024', + format: 'print', + }, { source: ['Bloomberg'], href: 'https://www.bloomberg.com/news/articles/2024-08-06/a-third-of-all-carbon-credits-fail-to-get-key-stamp-of-approval?srnd=green', From ef053fdb0ee8dd04b15b1c568ff2f86b647a859b Mon Sep 17 00:00:00 2001 From: Kata Martin Date: Fri, 9 Aug 2024 13:17:05 -0400 Subject: [PATCH 3/3] Use gift links --- data/press.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/press.js b/data/press.js index 861c0d56..30724968 100644 --- a/data/press.js +++ b/data/press.js @@ -3,7 +3,7 @@ import { Link } from '@carbonplan/components' const highlights = [ { source: 'Bloomberg', - href: 'https://www.bloomberg.com/news/articles/2024-08-09/clashing-risk-predictions-cast-doubt-on-black-box-climate-models', + href: 'https://www.bloomberg.com/news/articles/2024-08-09/clashing-risk-predictions-cast-doubt-on-black-box-climate-models?accessToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb3VyY2UiOiJTdWJzY3JpYmVyR2lmdGVkQXJ0aWNsZSIsImlhdCI6MTcyMzIxOTI5MiwiZXhwIjoxNzIzODI0MDkyLCJhcnRpY2xlSWQiOiJTSFlLR0JEV1gyUFMwMCIsImJjb25uZWN0SWQiOiJGMkY1NTFERTc4ODA0RkJBOTk5NEFBMTQ5RTM1NjQ3RCJ9.EbJ-4RSfCLQYocKlLXB1r7Qbo_KKYYNHtobrtIELL_g', date: '08-09-2024', }, { @@ -31,7 +31,7 @@ const highlights = [ const press = [ { source: ['Bloomberg'], - href: 'https://www.bloomberg.com/news/articles/2024-08-09/clashing-risk-predictions-cast-doubt-on-black-box-climate-models', + href: 'https://www.bloomberg.com/news/articles/2024-08-09/clashing-risk-predictions-cast-doubt-on-black-box-climate-models?accessToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb3VyY2UiOiJTdWJzY3JpYmVyR2lmdGVkQXJ0aWNsZSIsImlhdCI6MTcyMzIxOTI5MiwiZXhwIjoxNzIzODI0MDkyLCJhcnRpY2xlSWQiOiJTSFlLR0JEV1gyUFMwMCIsImJjb25uZWN0SWQiOiJGMkY1NTFERTc4ODA0RkJBOTk5NEFBMTQ5RTM1NjQ3RCJ9.EbJ-4RSfCLQYocKlLXB1r7Qbo_KKYYNHtobrtIELL_g', title: 'Clashing risk predictions cast doubt on black box climate models', authors: ['Eric Roston'], date: '08-09-2024', @@ -39,7 +39,7 @@ const press = [ }, { source: ['Bloomberg'], - href: 'https://www.bloomberg.com/graphics/2024-flood-fire-climate-risk-analytics/', + href: 'https://www.bloomberg.com/graphics/2024-flood-fire-climate-risk-analytics/?accessToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzb3VyY2UiOiJTdWJzY3JpYmVyR2lmdGVkQXJ0aWNsZSIsImlhdCI6MTcyMzIxOTgwOCwiZXhwIjoxNzIzODI0NjA4LCJhcnRpY2xlSWQiOiJTSFlLR0VEV1gyUFMwMCIsImJjb25uZWN0SWQiOiI5RjJFMEMxNDRGQkY0Q0M1OUJCRDA3MzQ0QkI2RUZDNCJ9.v2mR0nS7tJbnNJ23UVEKn98Ev917FWYgcoWm7TttUJ4', title: 'The risky business of predicting where climate disaster will hit', authors: [ 'Eric Roston',