Skip to content

Commit 25bb224

Browse files
authored
Merge pull request #11228 from ethereum/dev
2 parents 350e289 + 0c9db3c commit 25bb224

File tree

883 files changed

+49466
-13056
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

883 files changed

+49466
-13056
lines changed

.all-contributorsrc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10523,6 +10523,42 @@
1052310523
"contributions": [
1052410524
"bug"
1052510525
]
10526+
},
10527+
{
10528+
"login": "0xMimir",
10529+
"name": "0xMimir",
10530+
"avatar_url": "https://avatars.githubusercontent.com/u/108837858?v=4",
10531+
"profile": "https://github.com/0xMimir",
10532+
"contributions": [
10533+
"content"
10534+
]
10535+
},
10536+
{
10537+
"login": "bilaljawed",
10538+
"name": "Bilal",
10539+
"avatar_url": "https://avatars.githubusercontent.com/u/17548944?v=4",
10540+
"profile": "https://github.com/bilaljawed",
10541+
"contributions": [
10542+
"content"
10543+
]
10544+
},
10545+
{
10546+
"login": "ilanolkies",
10547+
"name": "Ilan",
10548+
"avatar_url": "https://avatars.githubusercontent.com/u/36084092?v=4",
10549+
"profile": "https://ilanolkies.com",
10550+
"contributions": [
10551+
"content"
10552+
]
10553+
},
10554+
{
10555+
"login": "umededoteth",
10556+
"name": "umede",
10557+
"avatar_url": "https://avatars.githubusercontent.com/u/122288558?v=4",
10558+
"profile": "https://mirror.xyz/umede.eth",
10559+
"contributions": [
10560+
"content"
10561+
]
1052610562
}
1052710563
],
1052810564
"contributorsPerLine": 7,

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,12 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
16431643
<td align="center" valign="top" width="14.28%"><a href="https://linktr.ee/kritik"><img src="https://avatars.githubusercontent.com/u/57076429?v=4?s=100" width="100px;" alt="kritik sah"/><br /><sub><b>kritik sah</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Akritik-sah" title="Bug reports">🐛</a></td>
16441644
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Fuliggine"><img src="https://avatars.githubusercontent.com/u/56844974?v=4?s=100" width="100px;" alt="Fuliggine"/><br /><sub><b>Fuliggine</b></sub></a><br /><a href="#content-Fuliggine" title="Content">🖋</a></td>
16451645
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Omsify"><img src="https://avatars.githubusercontent.com/u/87442202?v=4?s=100" width="100px;" alt="Omsify"/><br /><sub><b>Omsify</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AOmsify" title="Bug reports">🐛</a></td>
1646+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/0xMimir"><img src="https://avatars.githubusercontent.com/u/108837858?v=4?s=100" width="100px;" alt="0xMimir"/><br /><sub><b>0xMimir</b></sub></a><br /><a href="#content-0xMimir" title="Content">🖋</a></td>
1647+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/bilaljawed"><img src="https://avatars.githubusercontent.com/u/17548944?v=4?s=100" width="100px;" alt="Bilal"/><br /><sub><b>Bilal</b></sub></a><br /><a href="#content-bilaljawed" title="Content">🖋</a></td>
1648+
</tr>
1649+
<tr>
1650+
<td align="center" valign="top" width="14.28%"><a href="https://ilanolkies.com"><img src="https://avatars.githubusercontent.com/u/36084092?v=4?s=100" width="100px;" alt="Ilan"/><br /><sub><b>Ilan</b></sub></a><br /><a href="#content-ilanolkies" title="Content">🖋</a></td>
1651+
<td align="center" valign="top" width="14.28%"><a href="https://mirror.xyz/umede.eth"><img src="https://avatars.githubusercontent.com/u/122288558?v=4?s=100" width="100px;" alt="umede"/><br /><sub><b>umede</b></sub></a><br /><a href="#content-umededoteth" title="Content">🖋</a></td>
16461652
</tr>
16471653
</tbody>
16481654
</table>

docs/best-practices.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,11 @@ export const query = graphql`
229229
`
230230
// These query results get passed as an object `props.data` to your component
231231
```
232+
233+
### Using custom `GatsbyImage`
234+
235+
[GatsbyImage](https://www.gatsbyjs.com/plugins/gatsby-plugin-image/) is the component of choice to handle responsive images processed through graphql. However, we use a custom version of this component that is properly optimized with Chakra. This way we can use style props from Chakra but still be able to forward common or GatsbyImage-specific props to the Gatsby component for correct usage and rendering.
236+
237+
```tsx
238+
import GatsbyImage from "./components/GatsbyImage"
239+
```

i18n/config.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
"langDir": "ltr",
88
"dateFormat": "MM/DD/YYYY"
99
},
10+
{
11+
"code": "am",
12+
"crowdinCode": "am",
13+
"name": "Amharic",
14+
"localName": "አማርኛ",
15+
"langDir": "ltr",
16+
"dateFormat": "MM/DD/YYYY"
17+
},
1018
{
1119
"code": "ar",
1220
"crowdinCode": "ar",
@@ -23,6 +31,14 @@
2331
"langDir": "ltr",
2432
"dateFormat": "MM/DD/YYYY"
2533
},
34+
{
35+
"code": "be",
36+
"crowdinCode": "be",
37+
"name": "Belarusian",
38+
"localName": "беларускі",
39+
"langDir": "ltr",
40+
"dateFormat": "MM/DD/YYYY"
41+
},
2642
{
2743
"code": "bg",
2844
"crowdinCode": "bg",
@@ -39,6 +55,14 @@
3955
"langDir": "ltr",
4056
"dateFormat": "MM/DD/YYYY"
4157
},
58+
{
59+
"code": "bs",
60+
"crowdinCode": "bs",
61+
"name": "Bosnian",
62+
"localName": "босански",
63+
"langDir": "ltr",
64+
"dateFormat": "MM/DD/YYYY"
65+
},
4266
{
4367
"code": "ca",
4468
"crowdinCode": "ca",
@@ -159,6 +183,14 @@
159183
"langDir": "ltr",
160184
"dateFormat": "MM/DD/YYYY"
161185
},
186+
{
187+
"code": "hy-am",
188+
"crowdinCode": "hy-AM",
189+
"name": "Armenian",
190+
"localName": "հայերեն",
191+
"langDir": "ltr",
192+
"dateFormat": "MM/DD/YYYY"
193+
},
162194
{
163195
"code": "id",
164196
"crowdinCode": "id",
@@ -215,6 +247,14 @@
215247
"langDir": "ltr",
216248
"dateFormat": "MM/DD/YYYY"
217249
},
250+
{
251+
"code": "kn",
252+
"crowdinCode": "kn",
253+
"name": "Kannada",
254+
"localName": "ಕನ್ನಡ",
255+
"langDir": "ltr",
256+
"dateFormat": "MM/DD/YYYY"
257+
},
218258
{
219259
"code": "ko",
220260
"crowdinCode": "ko",
@@ -375,6 +415,14 @@
375415
"langDir": "ltr",
376416
"dateFormat": "MM/DD/YYYY"
377417
},
418+
{
419+
"code": "tk",
420+
"crowdinCode": "tk",
421+
"name": "Turkmen",
422+
"localName": "türkmen",
423+
"langDir": "ltr",
424+
"dateFormat": "MM/DD/YYYY"
425+
},
378426
{
379427
"code": "th",
380428
"crowdinCode": "th",

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": "7.21.0",
3+
"version": "7.22.0",
44
"description": "Website of ethereum.org",
55
"main": "index.js",
66
"repository": "git@github.com:ethereum/ethereum-org-website.git",

src/@chakra-ui/gatsby-plugin/styles.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,30 @@ const styles = {
2929
},
3030
// imported global CSS styles for list items
3131
li: {
32-
"margin-bottom": "calc(1.45rem / 2)",
32+
marginBottom: "calc(1.45rem / 2)",
3333
},
3434
"ol li": {
35-
"padding-left": "0",
35+
paddingInlineStart: "0",
3636
},
3737
"ul li": {
38-
"padding-left": "0",
38+
paddingInlineStart: "0",
3939
},
4040
"li > ol": {
41-
"margin-left": "1.45rem",
42-
"margin-bottom": "calc(1.45rem / 2)",
43-
"margin-top": "calc(1.45rem / 2)",
41+
marginInlineStart: "1.45rem",
42+
marginBottom: "calc(1.45rem / 2)",
43+
marginTop: "calc(1.45rem / 2)",
4444
},
4545
"li > ul": {
46-
"margin-left": "1.45rem",
47-
"margin-bottom": "calc(1.45rem / 2)",
48-
"margin-top": "calc(1.45rem / 2)",
46+
marginInlineStart: "1.45rem",
47+
marginBottom: "calc(1.45rem / 2)",
48+
marginTop: "calc(1.45rem / 2)",
4949
},
5050

5151
"li *:last-child": {
52-
"margin-bottom": "0",
52+
marginBottom: "0",
5353
},
5454
"li > p": {
55-
"margin-bottom": "calc(1.45rem / 2)",
55+
marginBottom: "calc(1.45rem / 2)",
5656
},
5757
// Anchor tag styles
5858
// Selected specifically for mdx rendered side icon link

src/assets/wallets/linen.png

195 Bytes
Loading

src/components/ActionCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@ import {
1010
useColorModeValue,
1111
LinkBoxProps,
1212
} from "@chakra-ui/react"
13-
import { GatsbyImage, IGatsbyImageData } from "gatsby-plugin-image"
13+
import { IGatsbyImageData } from "gatsby-plugin-image"
1414

1515
import Text from "./OldText"
1616
import { BaseLink } from "./Link"
17+
import GatsbyImage from "./GatsbyImage"
1718

1819
const linkBoxFocusStyles: BoxProps = {
1920
borderRadius: "base",
@@ -77,9 +78,8 @@ const ActionCard: React.FC<IProps> = ({
7778
boxShadow="inset 0px -1px 0px rgba(0, 0, 0, 0.1)"
7879
>
7980
{!isImageURL && (
80-
<Image
81+
<GatsbyImage
8182
alt={alt || ""}
82-
as={GatsbyImage}
8383
maxH="257px"
8484
maxW={{ base: "311px", sm: "372px" }}
8585
minW="100px"

src/components/AssetDownload/AssetDownloadImage.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react"
2-
import { Center, Img } from "@chakra-ui/react"
3-
import { GatsbyImage } from "gatsby-plugin-image"
2+
import { Center } from "@chakra-ui/react"
3+
import GatsbyImage from "../GatsbyImage"
44

55
import { getImage, ImageDataLike } from "../../utils/image"
66

@@ -13,8 +13,7 @@ const AssetDownloadImage = ({ image, alt }: Props) => {
1313
return (
1414
<Center border="1px" borderColor="white700" p={8} w="100%">
1515
{image && (
16-
<Img
17-
as={GatsbyImage}
16+
<GatsbyImage
1817
image={getImage(image)!}
1918
alt={alt}
2019
w="100%"

src/components/BugBountyPoints.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useState, useEffect } from "react"
22
import { useTheme } from "@emotion/react"
33
import { useStaticQuery, graphql } from "gatsby"
4-
import { GatsbyImage } from "gatsby-plugin-image"
54
import { Box, Flex, Icon } from "@chakra-ui/react"
65
import axios from "axios"
76

@@ -11,6 +10,7 @@ import InlineLink from "./Link"
1110
import Tooltip from "./Tooltip"
1211
import Text from "./OldText"
1312
import OldHeading from "./OldHeading"
13+
import GatsbyImage from "./GatsbyImage"
1414

1515
import { getImage } from "../utils/image"
1616
import { MdInfoOutline } from "react-icons/md"
@@ -175,21 +175,13 @@ const BugBountyPoints: React.FC<IProps> = () => {
175175
</Text>
176176
</Flex>
177177
<Flex align="center" wrap="wrap">
178-
<GatsbyImage
179-
image={getImage(data.dai)!}
180-
style={{ marginRight: "0.5rem" }}
181-
alt=""
182-
/>
178+
<GatsbyImage image={getImage(data.dai)!} alt="" me="2" />
183179
<Text fontSize="xl" m={0} mr={4}>
184180
{pointsInDAI} DAI
185181
</Text>
186182
</Flex>
187183
<Flex align="center" wrap="wrap">
188-
<GatsbyImage
189-
image={getImage(ethImage)!}
190-
style={{ marginRight: "0.5rem" }}
191-
alt=""
192-
/>
184+
<GatsbyImage image={getImage(ethImage)!} alt="" me="2" />
193185
<Text fontSize="xl" m={0} mr={4}>
194186
{pointsInETH} ETH
195187
</Text>

0 commit comments

Comments
 (0)