Skip to content

Commit 17366f0

Browse files
committed
Merge remote-tracking branch 'upstream/dev' into migrate/contributors
2 parents 0a2d701 + 680e3ef commit 17366f0

File tree

24 files changed

+481
-364
lines changed

24 files changed

+481
-364
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@
3939
"@radix-ui/react-checkbox": "^1.1.1",
4040
"@radix-ui/react-compose-refs": "^1.1.0",
4141
"@radix-ui/react-dialog": "^1.1.1",
42+
"@radix-ui/react-dropdown-menu": "^2.1.1",
4243
"@radix-ui/react-navigation-menu": "^1.2.0",
4344
"@radix-ui/react-popover": "^1.1.1",
4445
"@radix-ui/react-portal": "^1.1.1",
4546
"@radix-ui/react-progress": "^1.1.0",
4647
"@radix-ui/react-radio-group": "^1.2.0",
4748
"@radix-ui/react-slot": "^1.1.0",
4849
"@radix-ui/react-switch": "^1.1.0",
50+
"@radix-ui/react-tabs": "^1.1.0",
4951
"@radix-ui/react-tooltip": "^1.1.2",
5052
"@radix-ui/react-visually-hidden": "^1.1.0",
5153
"@socialgouv/matomo-next": "^1.8.0",

public/content/developers/docs/nodes-and-clients/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,13 +194,13 @@ Learn more about it by reading its [documentation](https://github.com/ethereumjs
194194
There are multiple consensus clients (previously known as 'Eth2' clients) to support the [consensus upgrades](/roadmap/beacon-chain/). They are responsible for all consensus-related logic including the fork-choice algorithm, processing attestations and managing [proof-of-stake](/developers/docs/consensus-mechanisms/pos) rewards and penalties.
195195

196196
| Client | Language | Operating systems | Networks |
197-
| ------------------------------------------------------------- | ---------- | --------------------- | ----------------------------------------------------------------- | |
197+
| ------------------------------------------------------------- | ---------- | --------------------- | ----------------------------------------------------------------- |
198198
| [Lighthouse](https://lighthouse.sigmaprime.io/) | Rust | Linux, Windows, macOS | Beacon Chain, Goerli, Pyrmont, Sepolia, Ropsten, and more |
199199
| [Lodestar](https://lodestar.chainsafe.io/) | TypeScript | Linux, Windows, macOS | Beacon Chain, Goerli, Sepolia, Ropsten, and more |
200200
| [Nimbus](https://nimbus.team/) | Nim | Linux, Windows, macOS | Beacon Chain, Goerli, Sepolia, Ropsten, and more |
201201
| [Prysm](https://docs.prylabs.network/docs/getting-started/) | Go | Linux, Windows, macOS | Beacon Chain, Gnosis, Goerli, Pyrmont, Sepolia, Ropsten, and more |
202202
| [Teku](https://consensys.net/knowledge-base/ethereum-2/teku/) | Java | Linux, Windows, macOS | Beacon Chain, Gnosis, Goerli, Sepolia, Ropsten, and more |
203-
| [Grandine](https://docs.grandine.io/) (beta) | Rust | Linux, Windows, macOS | Beacon Chain, Goerli, Sepolia, and more
203+
| [Grandine](https://docs.grandine.io/) (beta) | Rust | Linux, Windows, macOS | Beacon Chain, Goerli, Sepolia, and more |
204204

205205
### Lighthouse {#lighthouse}
206206

src/components/AssetDownload/AssetDownloadArtist.tsx

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { useTranslation } from "next-i18next"
2-
import { Flex } from "@chakra-ui/react"
32

43
import Emoji from "@/components/Emoji"
5-
import Link from "@/components/Link"
6-
import Text from "@/components/OldText"
4+
5+
import { cn } from "@/lib/utils/cn"
6+
7+
import { Flex } from "../ui/flex"
8+
import { BaseLink } from "../ui/Link"
79

810
type AssetDownloadArtistProps = {
911
artistName: string
@@ -16,21 +18,13 @@ const AssetDownloadArtist = ({
1618
}: AssetDownloadArtistProps) => {
1719
const { t } = useTranslation("page-assets")
1820
return (
19-
<Flex
20-
mb="4"
21-
border="1px"
22-
borderTop="none"
23-
borderColor="white700"
24-
py="2"
25-
px="4"
26-
borderRadius="0 0 4px 4px"
27-
>
28-
<Flex me="2" fontSize="md" textColor="text300">
21+
<Flex className={cn("mb-4 border border-t-0", "rounded-b px-4 py-2")}>
22+
<Flex className="me-2">
2923
<Emoji text=":artist_palette:" className="me-2 text-2xl" />
3024
{t("page-assets-download-artist")}
3125
</Flex>
32-
{artistUrl && <Link href={artistUrl}>{artistName}</Link>}
33-
{!artistUrl && <Text m="0">{artistName}</Text>}
26+
{artistUrl && <BaseLink href={artistUrl}>{artistName}</BaseLink>}
27+
{!artistUrl && <p>{artistName}</p>}
3428
</Flex>
3529
)
3630
}

src/components/AssetDownload/AssetDownloadImage.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
import { Center } from "@chakra-ui/react"
1+
import { ImageProps } from "next/image"
22

3-
import { Image, type ImageProps } from "@/components/Image"
3+
import { TwImage } from "../Image"
4+
import { Center } from "../ui/flex"
45

56
interface AssetDownloadImageProps {
67
image: ImageProps["src"]
78
alt: string
89
}
910

1011
const AssetDownloadImage = ({ image, alt }: AssetDownloadImageProps) => (
11-
<Center border="1px" borderColor="white700" p="8" w="full">
12-
<Image src={image} alt={alt} w="full" alignSelf="center" />
12+
<Center className="w-full border p-8">
13+
<TwImage src={image} alt={alt} className="w-full self-center" />
1314
</Center>
1415
)
1516

src/components/AssetDownload/index.tsx

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
import { extname } from "path"
22

3-
import type { StaticImageData } from "next/image"
3+
import { BaseHTMLAttributes } from "react"
4+
import type { ImageProps, StaticImageData } from "next/image"
45
import { useTranslation } from "next-i18next"
5-
import { Box, Flex, type FlexProps } from "@chakra-ui/react"
66

77
import AssetDownloadArtist from "@/components/AssetDownload/AssetDownloadArtist"
88
import AssetDownloadImage from "@/components/AssetDownload/AssetDownloadImage"
9-
import { ButtonLink } from "@/components/Buttons"
10-
import type { ImageProps } from "@/components/Image"
11-
import OldHeading from "@/components/OldHeading"
129

10+
import { cn } from "@/lib/utils/cn"
1311
import { trackCustomEvent } from "@/lib/utils/matomo"
1412

13+
import { ButtonLink } from "../ui/buttons/Button"
14+
import { Flex, Stack } from "../ui/flex"
15+
1516
type AssetDownloadProps = {
1617
title: string
1718
alt: string
1819
artistName?: string
1920
artistUrl?: string
2021
image: ImageProps["src"]
2122
svgUrl?: string
22-
} & FlexProps
23+
} & BaseHTMLAttributes<HTMLDivElement>
2324

2425
const AssetDownload = ({
2526
alt,
@@ -28,6 +29,7 @@ const AssetDownload = ({
2829
image,
2930
svgUrl,
3031
title,
32+
className,
3133
...props
3234
}: AssetDownloadProps) => {
3335
const { t } = useTranslation(["page-assets"])
@@ -41,23 +43,18 @@ const AssetDownload = ({
4143
const imgSrc = (image as StaticImageData).src
4244

4345
return (
44-
<Flex
45-
flexDirection="column"
46-
justifyContent="space-between"
47-
m={4}
48-
p={0}
46+
<Stack
47+
className={cn("m-4 justify-between gap-0 p-0", className)}
4948
{...props}
5049
>
51-
<OldHeading as="h4" fontSize={{ base: "md", md: "xl" }} fontWeight="500">
52-
{title}
53-
</OldHeading>
54-
<Box>
50+
<h4 className="my-8 text-md font-medium md:text-xl">{title}</h4>
51+
<div>
5552
<AssetDownloadImage image={image} alt={alt} />
5653
{artistName && (
5754
<AssetDownloadArtist artistName={artistName} artistUrl={artistUrl} />
5855
)}
59-
</Box>
60-
<Flex gap={5} mt={4}>
56+
</div>
57+
<Flex className="mt-4 gap-5">
6158
<ButtonLink
6259
href={imgSrc}
6360
onClick={matomoHandler}
@@ -73,7 +70,7 @@ const AssetDownload = ({
7370
</ButtonLink>
7471
)}
7572
</Flex>
76-
</Flex>
73+
</Stack>
7774
)
7875
}
7976

src/components/BeaconChainActions.tsx

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,38 @@
11
import { useTranslation } from "next-i18next"
2-
import { Box, Flex } from "@chakra-ui/react"
32

43
import { ChildOnlyProp } from "@/lib/types"
54

6-
import { ButtonLink } from "@/components/Buttons"
75
import Card from "@/components/Card"
86
import CardList, { type CardListItem } from "@/components/CardList"
9-
import OldHeading from "@/components/OldHeading"
107
import Translation from "@/components/Translation"
118

9+
import { ButtonLink } from "./ui/buttons/Button"
10+
import { Flex } from "./ui/flex"
11+
1212
import beaconchain from "@/public/images/upgrades/beaconchainemoji.png"
1313
import beaconscan from "@/public/images/upgrades/etherscan.png"
1414

1515
const H3 = ({ children }: ChildOnlyProp) => (
16-
<OldHeading
17-
as="h3"
18-
fontSize="2xl"
19-
fontWeight="bold"
20-
mb={8}
21-
sx={{ a: { display: "none" } }}
22-
>
23-
{children}
24-
</OldHeading>
16+
<h3 className="mb-8 mt-10 text-2xl font-bold [&_a]:hidden">{children}</h3>
2517
)
2618

2719
const BeaconChainActions = () => {
2820
const { t } = useTranslation(["page-upgrades-index", "page-upgrades"])
2921

3022
const datapoints: CardListItem[] = [
3123
{
32-
title: t("consensus-beaconscan-title"),
24+
title: t("page-upgrades:consensus-beaconscan-title"),
3325
image: beaconscan,
3426
alt: "",
3527
link: "https://beaconscan.com",
36-
description: t("consensus-beaconscan-desc"),
28+
description: t("page-upgrades:consensus-beaconscan-desc"),
3729
},
3830
{
39-
title: t("consensus-beaconscan-in-title"),
31+
title: t("page-upgrades:consensus-beaconscan-in-title"),
4032
image: beaconchain,
4133
alt: "",
4234
link: "https://beaconcha.in",
43-
description: t("consensus-beaconcha-in-desc"),
35+
description: t("page-upgrades:consensus-beaconcha-in-desc"),
4436
},
4537
]
4638

@@ -64,35 +56,35 @@ const BeaconChainActions = () => {
6456
]
6557

6658
return (
67-
<Box mb={16}>
68-
<Flex flexDir={{ base: "column", md: "row" }} pt={4}>
59+
<div className="mb-16">
60+
<Flex className="flex-col pt-4 md:flex-row">
6961
<Card
7062
w="full"
7163
ms={0}
7264
me={{ base: 0, md: 4 }}
7365
mb={{ base: 8, md: 0 }}
7466
emoji=":money_with_wings:"
75-
title={t("consensus-become-staker")}
76-
description={t("consensus-become-staker-desc")}
67+
title={t("page-upgrades:consensus-become-staker")}
68+
description={t("page-upgrades:consensus-become-staker-desc")}
7769
>
78-
<ButtonLink mb={3} href="https://launchpad.ethereum.org">
70+
<ButtonLink className="mb-3" href="https://launchpad.ethereum.org">
7971
<Translation id="get-started" />
8072
</ButtonLink>
8173
<ButtonLink variant="outline" href="/staking/">
82-
<Translation id="page-upgrades-index-staking-learn" />
74+
<Translation id="page-upgrades-index:page-upgrades-index-staking-learn" />
8375
</ButtonLink>
8476
</Card>
8577
</Flex>
8678
<H3>
87-
<Translation id="consensus-explore" />
79+
<Translation id="page-upgrades:consensus-explore" />
8880
</H3>
8981

9082
<CardList items={datapoints} />
9183
<H3>
92-
<Translation id="read-more" />
84+
<Translation id="page-upgrades:read-more" />
9385
</H3>
9486
<CardList items={reads} />
95-
</Box>
87+
</div>
9688
)
9789
}
9890

0 commit comments

Comments
 (0)