Skip to content

Commit

Permalink
Learn Page - Newsletters (#337)
Browse files Browse the repository at this point in the history
* Newsletter section added in learn page
* Newsletter link added
  • Loading branch information
siddharth0248 authored Apr 17, 2024
1 parent 89ec450 commit 4b3925a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
9 changes: 8 additions & 1 deletion custom-pages/learn/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: "
---

import { EventsComponent } from './component'
import { NEWS_ITEMS, EVENT_ITEMS } from './learn-page-content'
import { NEWS_ITEMS, EVENT_ITEMS, NEWSLETTER_ITEMS } from './learn-page-content'
import AnchorScroll from './AnchorScroll'

import { SUBSCRIPTION_URL } from "../../constants";
Expand Down Expand Up @@ -50,6 +50,13 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque vel nunc mauris
</Block>


<Block>
<Prose>
## Newsletters
<EventsComponent items={NEWSLETTER_ITEMS} />
</Prose>
</Block>

{/* <Block>
<Prose>
## Learn More
Expand Down
13 changes: 13 additions & 0 deletions custom-pages/learn/learn-page-content.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
export const NEWSLETTER_ITEMS = [
{
name: 'The inaugural US GHG Center Newsletter',
asLink : {
url: 'https://myemail-api.constantcontact.com/US-GHG-Center-Newsletter.html?soid=1141171816352&aid=TCM2bjPR30g'
},
media: {
src: new URL('./media/news/newsletter.jpg', import.meta.url).href,
alt: 'March 2024'
},
description: 'Volume 1.1, March 2024'
}
]
export const NEWS_ITEMS = [
{
name: 'US GHG Center announced at COP28',
Expand Down
Binary file added custom-pages/learn/media/news/newsletter.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b3925a

Please sign in to comment.