Skip to content

Commit a56cac5

Browse files
authored
Merge branch 'staging' into fredriksvantes-patch-1
2 parents 3929b5b + 056a470 commit a56cac5

File tree

9 files changed

+114
-84
lines changed

9 files changed

+114
-84
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-org-website",
3-
"version": "9.4.1",
3+
"version": "9.4.2",
44
"license": "MIT",
55
"private": true,
66
"scripts": {

public/images/0xparc-logo.svg

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/data/mocks/rssData.json

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,66 @@
1-
[[{"pubDate":"Sat, 28 Sep 2024 00:00:00 +0000","title":"Making Ethereum alignment legible","link":"https://vitalik.ca/general/2024/09/28/alignment.html","imgSrc":"http://vitalik.ca/images/icon.png","source":"Vitalik Buterin's website","sourceUrl":"https://vitalik.ca/","sourceFeedUrl":"https://vitalik.eth.limo/feed.xml"}],[{"pubDate":"Fri, 13 Sep 2024 00:00:00 GMT","title":"4844 Data Challenge: Insights and Winners","link":"https://blog.ethereum.org/en/2024/09/13/4844-data-challenge","imgSrc":"https://storage.googleapis.com/ethereum-hackmd/upload_84404ba6ed463992c8eaee78610b3264.jpeg","source":"Ethereum Foundation Blog","sourceUrl":"https://blog.ethereum.org","sourceFeedUrl":"https://blog.ethereum.org/en/feed.xml"},{"pubDate":"Tue, 31 Dec 2013 18:00:37 GMT","title":"Bootstrapping A Decentralized Autonomous Corporation: Part I","link":"https://blog.ethereum.org/en/2013/12/31/bootstrapping-a-decentralized-autonomous-corporation-part-i","imgSrc":"https://blog.ethereum.org/images/posts/blackhole.jpg","source":"Ethereum Foundation Blog","sourceUrl":"https://blog.ethereum.org","sourceFeedUrl":"https://blog.ethereum.org/en/feed.xml"}],[{"pubDate":"Thu, 22 Aug 2024 00:00:00 +0000","title":"Xatu Consensus Layer P2P tables now available","link":"https://ethpandaops.io/posts/xatu-consensus-layer-p2p/","imgSrc":"https://ethpandaops.io/posts/xatu-consensus-layer-p2p/featured.png","source":"Posts 🤓 on ethPandaOps","sourceUrl":"https://ethpandaops.io/posts/","sourceFeedUrl":"https://ethpandaops.io/posts/index.xml"}],[{"pubDate":"Tue, 02 Jul 2024 00:00:00 GMT","title":"Staking Survey 2024","link":"https://paragraph.xyz/@ethstaker/staking-survey-2024","imgSrc":"https://storage.googleapis.com/papyrus_images/9a642b5e66cd993febd6e331cfa62de9.jpg","source":"ethstaker","sourceUrl":"https://paragraph.xyz/@ethstaker","sourceFeedUrl":"https://paragraph.xyz/api/blogs/rss/@ethstaker"}],[{"pubDate":"Tue, 30 Jul 2024 12:00:00 GMT","title":"Programmable Cryptography (Part 1)","link":"https://0xparc.org/blog/programmable-cryptography-1","imgSrc":"https://0xparc.org/favicon.f94d7815.png","source":"0xPARC","sourceUrl":"https://0xparc.org/blog","sourceFeedUrl":"https://rss.app/feeds/cWXGYts0ZM8C3F6t.xml"}]]
1+
[
2+
[
3+
{
4+
"pubDate": "Sat, 28 Sep 2024 00:00:00 +0000",
5+
"title": "Making Ethereum alignment legible",
6+
"link": "https://vitalik.ca/general/2024/09/28/alignment.html",
7+
"imgSrc": "http://vitalik.ca/images/icon.png",
8+
"source": "Vitalik Buterin's website",
9+
"sourceUrl": "https://vitalik.ca/",
10+
"sourceFeedUrl": "https://vitalik.eth.limo/feed.xml"
11+
}
12+
],
13+
[
14+
{
15+
"pubDate": "Fri, 13 Sep 2024 00:00:00 GMT",
16+
"title": "4844 Data Challenge: Insights and Winners",
17+
"link": "https://blog.ethereum.org/en/2024/09/13/4844-data-challenge",
18+
"imgSrc": "https://storage.googleapis.com/ethereum-hackmd/upload_84404ba6ed463992c8eaee78610b3264.jpeg",
19+
"source": "Ethereum Foundation Blog",
20+
"sourceUrl": "https://blog.ethereum.org",
21+
"sourceFeedUrl": "https://blog.ethereum.org/en/feed.xml"
22+
},
23+
{
24+
"pubDate": "Tue, 31 Dec 2013 18:00:37 GMT",
25+
"title": "Bootstrapping A Decentralized Autonomous Corporation: Part I",
26+
"link": "https://blog.ethereum.org/en/2013/12/31/bootstrapping-a-decentralized-autonomous-corporation-part-i",
27+
"imgSrc": "https://blog.ethereum.org/images/posts/blackhole.jpg",
28+
"source": "Ethereum Foundation Blog",
29+
"sourceUrl": "https://blog.ethereum.org",
30+
"sourceFeedUrl": "https://blog.ethereum.org/en/feed.xml"
31+
}
32+
],
33+
[
34+
{
35+
"pubDate": "Thu, 22 Aug 2024 00:00:00 +0000",
36+
"title": "Xatu Consensus Layer P2P tables now available",
37+
"link": "https://ethpandaops.io/posts/xatu-consensus-layer-p2p/",
38+
"imgSrc": "https://ethpandaops.io/posts/xatu-consensus-layer-p2p/featured.png",
39+
"source": "Posts 🤓 on ethPandaOps",
40+
"sourceUrl": "https://ethpandaops.io/posts/",
41+
"sourceFeedUrl": "https://ethpandaops.io/posts/index.xml"
42+
}
43+
],
44+
[
45+
{
46+
"pubDate": "Tue, 02 Jul 2024 00:00:00 GMT",
47+
"title": "Staking Survey 2024",
48+
"link": "https://paragraph.xyz/@ethstaker/staking-survey-2024",
49+
"imgSrc": "https://storage.googleapis.com/papyrus_images/9a642b5e66cd993febd6e331cfa62de9.jpg",
50+
"source": "ethstaker",
51+
"sourceUrl": "https://paragraph.xyz/@ethstaker",
52+
"sourceFeedUrl": "https://paragraph.xyz/api/blogs/rss/@ethstaker"
53+
}
54+
],
55+
[
56+
{
57+
"pubDate": "Thu, 27 Dec 2024 12:00:00 GMT",
58+
"title": "Solidity Developer Survey 2024 is Live!",
59+
"link": "https://soliditylang.org/blog/2024/12/27/solidity-developer-survey-2024-announcement/",
60+
"imgSrc": "/images/solidity-banner.png",
61+
"source": "Solidity",
62+
"sourceUrl": "https://soliditylang.org/blog",
63+
"sourceFeedUrl": "https://soliditylang.org/feed.xml"
64+
}
65+
]
66+
]

src/data/published.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"date":"2025-01-08"}
1+
{"date":"2025-01-29"}

src/lib/constants.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ export const RSS_DISPLAY_COUNT = 6
186186

187187
export const VITALIK_FEED = "https://vitalik.eth.limo/feed.xml"
188188
export const SOLIDITY_FEED = "https://soliditylang.org/feed.xml"
189-
export const _0X_PARC_FEED = "https://rss.app/feeds/cWXGYts0ZM8C3F6t.xml"
190189

191190
export const COMMUNITY_BLOGS: CommunityBlog[] = [
192191
{
@@ -206,8 +205,8 @@ export const COMMUNITY_BLOGS: CommunityBlog[] = [
206205
feed: "https://raw.githubusercontent.com/eth-educators/github-actions/refs/heads/main/_data/blog_data.xml",
207206
},
208207
{
208+
name: "0xPARC",
209209
href: "https://0xparc.org/blog",
210-
feed: _0X_PARC_FEED,
211210
},
212211
{
213212
href: "https://www.attestant.io/posts/",

src/lib/utils/rss.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { _0X_PARC_FEED, SOLIDITY_FEED, VITALIK_FEED } from "../constants"
1+
import { SOLIDITY_FEED, VITALIK_FEED } from "../constants"
22
import type { RSSItem } from "../types"
33

44
export const sortByPubDate = (items: RSSItem[]) =>
@@ -27,11 +27,6 @@ export const postProcess = (rssItems: RSSItem[]) =>
2727
...item,
2828
imgSrc: "/images/solidity-banner.png",
2929
}
30-
case _0X_PARC_FEED:
31-
return {
32-
...item,
33-
imgSrc: "/images/0xparc-logo.svg",
34-
}
3530
default:
3631
return item
3732
}

src/pages/learn.tsx

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import DocLink from "@/components/DocLink"
1212
import FeedbackCard from "@/components/FeedbackCard"
1313
import { HubHero } from "@/components/Hero"
1414
import type { HubHeroProps } from "@/components/Hero/HubHero"
15-
import { Image, type ImageProps } from "@/components/Image"
15+
import { type ImageProps, TwImage } from "@/components/Image"
1616
import LeftNavBar from "@/components/LeftNavBar"
1717
import MainArticle from "@/components/MainArticle"
1818
import { ContentContainer } from "@/components/MdComponents"
@@ -121,6 +121,10 @@ const H3 = ({ children, ...props }: HTMLAttributes<HTMLHeadingElement>) => (
121121
</h3>
122122
)
123123

124+
const ImageHeight200 = ({ src, alt }: ImageProps) => (
125+
<TwImage className="h-[200px] w-auto" src={src} alt={alt} />
126+
)
127+
124128
export const getStaticProps = (async ({ locale }) => {
125129
const requiredNamespaces = getRequiredNamespacesForPage("/learn")
126130

@@ -197,11 +201,6 @@ const LearnPage = () => {
197201
],
198202
}
199203

200-
const height200: Partial<ImageProps> = {
201-
height: 200,
202-
style: { width: "auto", objectFit: "cover" },
203-
}
204-
205204
return (
206205
<div className="relative w-full">
207206
<PageMetadata
@@ -236,10 +235,9 @@ const LearnPage = () => {
236235
>
237236
<>
238237
<CardImage>
239-
<Image
238+
<ImageHeight200
240239
src={whatIsEth}
241240
alt={t("what-is-ethereum-card-image-alt")}
242-
{...height200}
243241
/>
244242
</CardImage>
245243
<ButtonLink href="/what-is-ethereum/">
@@ -253,7 +251,7 @@ const LearnPage = () => {
253251
>
254252
<>
255253
<CardImage>
256-
<Image src={eth} alt="" {...height200} />
254+
<ImageHeight200 src={eth} alt="" />
257255
</CardImage>
258256
<ButtonLink href="/eth/">
259257
{t("what-is-eth-card-title")}
@@ -266,7 +264,7 @@ const LearnPage = () => {
266264
>
267265
<>
268266
<CardImage>
269-
<Image src={impact} alt="" {...height200} />
267+
<ImageHeight200 src={impact} alt="" />
270268
</CardImage>
271269
<ButtonLink href="/web3/">
272270
{t("what-is-web3-card-title")}
@@ -305,10 +303,9 @@ const LearnPage = () => {
305303
>
306304
<>
307305
<CardImage>
308-
<Image
306+
<ImageHeight200
309307
src={wallet}
310308
alt={t("what-is-a-wallet-card-alt")}
311-
{...height200}
312309
/>
313310
</CardImage>
314311
<ButtonLink href="/wallets/">
@@ -322,7 +319,7 @@ const LearnPage = () => {
322319
>
323320
<>
324321
<CardImage>
325-
<Image src={futureTransparent} alt="" {...height200} />
322+
<ImageHeight200 src={futureTransparent} alt="" />
326323
</CardImage>
327324
<ButtonLink href="/wallets/find-wallet/">
328325
{t("find-a-wallet-button")}
@@ -335,7 +332,7 @@ const LearnPage = () => {
335332
>
336333
<>
337334
<CardImage>
338-
<Image src={Layer2LearnHero} alt="" {...height200} />
335+
<ImageHeight200 src={Layer2LearnHero} alt="" />
339336
</CardImage>
340337
<ButtonLink href="/layer-2/networks">
341338
{t("ethereum-networks-card-button")}
@@ -359,7 +356,7 @@ const LearnPage = () => {
359356
</UnorderedList>
360357
</Stack>
361358
<div className="self-end">
362-
<Image src={newRings} alt="" maxW={265} />
359+
<TwImage className="max-w-[265px]" src={newRings} alt="" />
363360
</div>
364361
</Flex>
365362

@@ -394,7 +391,7 @@ const LearnPage = () => {
394391
>
395392
<>
396393
<CardImage>
397-
<Image src={financeTransparent} alt="" {...height200} />
394+
<ImageHeight200 src={financeTransparent} alt="" />
398395
</CardImage>
399396
<ButtonLink href="/defi/">
400397
{t("defi-card-button")}
@@ -407,7 +404,7 @@ const LearnPage = () => {
407404
>
408405
<>
409406
<CardImage>
410-
<Image src={stablecoins} alt="" {...height200} />
407+
<ImageHeight200 src={stablecoins} alt="" />
411408
</CardImage>
412409
<ButtonLink href="/stablecoins/">
413410
{t("stablecoins-card-button")}
@@ -420,11 +417,7 @@ const LearnPage = () => {
420417
>
421418
<>
422419
<CardImage>
423-
<Image
424-
src={infrastructureTransparent}
425-
alt=""
426-
{...height200}
427-
/>
420+
<ImageHeight200 src={infrastructureTransparent} alt="" />
428421
</CardImage>
429422
<ButtonLink href="/nft/">{t("nft-card-button")}</ButtonLink>
430423
</>
@@ -435,7 +428,7 @@ const LearnPage = () => {
435428
>
436429
<>
437430
<CardImage>
438-
<Image src={dao} alt="" {...height200} />
431+
<ImageHeight200 src={dao} alt="" />
439432
</CardImage>
440433
<ButtonLink href="/dao/">{t("dao-card-button")}</ButtonLink>
441434
</>
@@ -446,7 +439,7 @@ const LearnPage = () => {
446439
>
447440
<>
448441
<CardImage>
449-
<Image src={developersEthBlocks} alt="" {...height200} />
442+
<ImageHeight200 src={developersEthBlocks} alt="" />
450443
</CardImage>
451444
<ButtonLink href="/dapps/">
452445
{t("dapp-card-button")}
@@ -509,7 +502,7 @@ const LearnPage = () => {
509502
>
510503
<>
511504
<CardImage>
512-
<Image src={rhino} alt="" {...height200} />
505+
<ImageHeight200 src={rhino} alt="" />
513506
</CardImage>
514507
<ButtonLink href="/staking/">
515508
{t("staking-ethereum-card-button")}
@@ -522,7 +515,7 @@ const LearnPage = () => {
522515
>
523516
<>
524517
<CardImage>
525-
<Image src={ethereumInside} alt="" {...height200} />
518+
<ImageHeight200 src={ethereumInside} alt="" />
526519
</CardImage>
527520
<ButtonLink href="/run-a-node/">
528521
{t("run-a-node-card-title")}
@@ -544,7 +537,7 @@ const LearnPage = () => {
544537
>
545538
<>
546539
<CardImage>
547-
<Image src={hackathon} alt="" {...height200} />
540+
<ImageHeight200 src={hackathon} alt="" />
548541
</CardImage>
549542
<ButtonLink href="/energy-consumption/">
550543
{t("energy-consumption-card-button")}
@@ -557,7 +550,7 @@ const LearnPage = () => {
557550
>
558551
<>
559552
<CardImage>
560-
<Image src={merge} alt="" {...height200} />
553+
<ImageHeight200 src={merge} alt="" />
561554
</CardImage>
562555
<ButtonLink href="/roadmap/">
563556
{t("ethereum-upgrades-card-button")}
@@ -570,7 +563,7 @@ const LearnPage = () => {
570563
>
571564
<>
572565
<CardImage>
573-
<Image src={financeTransparent} alt="" {...height200} />
566+
<ImageHeight200 src={financeTransparent} alt="" />
574567
</CardImage>
575568
<ButtonLink href="/whitepaper/">
576569
{t("ethereum-whitepaper-card-button")}
@@ -616,10 +609,9 @@ const LearnPage = () => {
616609
>
617610
<>
618611
<CardImage>
619-
<Image
612+
<ImageHeight200
620613
src={enterprise}
621614
alt={t("community-hub-card-alt")}
622-
{...height200}
623615
/>
624616
</CardImage>
625617
<ButtonLink href="/community/">
@@ -633,7 +625,7 @@ const LearnPage = () => {
633625
>
634626
<>
635627
<CardImage>
636-
<Image src={dogeComputer} alt="" {...height200} />
628+
<ImageHeight200 src={dogeComputer} alt="" />
637629
</CardImage>
638630
<ButtonLink href="/community/get-involved/">
639631
{t("get-involved-card-title")}
@@ -646,7 +638,7 @@ const LearnPage = () => {
646638
>
647639
<>
648640
<CardImage>
649-
<Image src={impact} alt="" {...height200} />
641+
<ImageHeight200 src={impact} alt="" />
650642
</CardImage>
651643
<ButtonLink href="/community/online/">
652644
{t("online-communities-card-button")}

src/pages/staking/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ import type {
1313
} from "@/lib/types"
1414

1515
import { List as ButtonDropdownList } from "@/components/ButtonDropdown"
16-
import ButtonLink, {
17-
type ButtonLinkProps,
18-
} from "@/components/Buttons/ButtonLink"
1916
import Card from "@/components/Card"
2017
import ExpandableCard from "@/components/ExpandableCard"
2118
import FeedbackCard from "@/components/FeedbackCard"
@@ -28,6 +25,10 @@ import StakingCommunityCallout from "@/components/Staking/StakingCommunityCallou
2825
import StakingHierarchy from "@/components/Staking/StakingHierarchy"
2926
import StakingStatsBox from "@/components/Staking/StakingStatsBox"
3027
import Translation from "@/components/Translation"
28+
import {
29+
ButtonLink,
30+
type ButtonLinkProps,
31+
} from "@/components/ui/buttons/Button"
3132
import { Divider } from "@/components/ui/divider"
3233
import { Flex, Stack, VStack } from "@/components/ui/flex"
3334
import InlineLink from "@/components/ui/Link"

0 commit comments

Comments
 (0)