Skip to content

Commit 081cc1e

Browse files
authored
Merge pull request #11143 from ethereum/staging
Deploy: v7.21.0
2 parents c0939b4 + 350e289 commit 081cc1e

File tree

372 files changed

+51614
-8261
lines changed

Some content is hidden

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

372 files changed

+51614
-8261
lines changed

.all-contributorsrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10496,6 +10496,33 @@
1049610496
"contributions": [
1049710497
"content"
1049810498
]
10499+
},
10500+
{
10501+
"login": "kritik-sah",
10502+
"name": "kritik sah",
10503+
"avatar_url": "https://avatars.githubusercontent.com/u/57076429?v=4",
10504+
"profile": "https://linktr.ee/kritik",
10505+
"contributions": [
10506+
"bug"
10507+
]
10508+
},
10509+
{
10510+
"login": "Fuliggine",
10511+
"name": "Fuliggine",
10512+
"avatar_url": "https://avatars.githubusercontent.com/u/56844974?v=4",
10513+
"profile": "https://github.com/Fuliggine",
10514+
"contributions": [
10515+
"content"
10516+
]
10517+
},
10518+
{
10519+
"login": "Omsify",
10520+
"name": "Omsify",
10521+
"avatar_url": "https://avatars.githubusercontent.com/u/87442202?v=4",
10522+
"profile": "https://github.com/Omsify",
10523+
"contributions": [
10524+
"bug"
10525+
]
1049910526
}
1050010527
],
1050110528
"contributorsPerLine": 7,

.storybook/i18next.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const ns = [
1414
"common",
1515
"glossary",
1616
"page-about",
17+
"page-index",
1718
"page-upgrades",
1819
"page-developers-index",
1920
]

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,6 +1640,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
16401640
<tr>
16411641
<td align="center" valign="top" width="14.28%"><a href="https://github.com/blazingrome"><img src="https://avatars.githubusercontent.com/u/136898739?v=4?s=100" width="100px;" alt="blazingrome"/><br /><sub><b>blazingrome</b></sub></a><br /><a href="#content-blazingrome" title="Content">🖋</a></td>
16421642
<td align="center" valign="top" width="14.28%"><a href="https://github.com/etan-status"><img src="https://avatars.githubusercontent.com/u/89844309?v=4?s=100" width="100px;" alt="Etan Kissling"/><br /><sub><b>Etan Kissling</b></sub></a><br /><a href="#content-etan-status" title="Content">🖋</a></td>
1643+
<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>
1644+
<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>
1645+
<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>
16431646
</tr>
16441647
</tbody>
16451648
</table>

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.20.1",
3+
"version": "7.21.0",
44
"description": "Website of ethereum.org",
55
"main": "index.js",
66
"repository": "[email protected]:ethereum/ethereum-org-website.git",

src/@chakra-ui/gatsby-plugin/components/Badge.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const baseStyle = defineMergeStyles(defaultBaseStyle, {
1010
fontWeight: "initial",
1111
py: 1,
1212
px: 2,
13+
lineHeight: "1.6rem",
1314
textTransform: "uppercase",
1415
})
1516

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { defineStyle, defineStyleConfig } from "@chakra-ui/react"
2+
import { headingDefaultTheme } from "./components.utils"
3+
4+
const { sizes: defaultSizes } = headingDefaultTheme
5+
6+
const lineHeightScale = {
7+
"4xl": "6xs",
8+
"3xl": ["5xs", null, "6xs"],
9+
"2xl": ["5xs", null, "4xs"],
10+
xl: ["3xs", null, "2xs"],
11+
lg: ["3xs", null, "2xs"],
12+
md: "xs",
13+
sm: "base",
14+
xs: "base",
15+
}
16+
17+
/*
18+
* Instead of rewriting the entire sizes object, take the existing value from the
19+
* default theme and replace the lineHeight values.
20+
*/
21+
const sizes = Object.entries(defaultSizes || {}).reduceRight(
22+
(acc, [key, value]) => {
23+
return {
24+
...acc,
25+
[key]: defineStyle({
26+
...value,
27+
lineHeight: lineHeightScale[key],
28+
}),
29+
}
30+
},
31+
{
32+
...defaultSizes,
33+
}
34+
)
35+
36+
export const Heading = defineStyleConfig({
37+
...headingDefaultTheme,
38+
sizes,
39+
})

src/@chakra-ui/gatsby-plugin/components/Link.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { defineStyleConfig } from "@chakra-ui/react"
2+
import components from "."
23
import { defineMergeStyles, linkDefaultTheme } from "./components.utils"
4+
import { Text } from "./Text"
35

46
export const Link = defineStyleConfig({
57
baseStyle: defineMergeStyles(linkDefaultTheme.baseStyle, {
@@ -22,4 +24,5 @@ export const Link = defineStyleConfig({
2224
},
2325
},
2426
}),
27+
sizes: Text.sizes,
2528
})
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import { defineStyle, defineStyleConfig } from "@chakra-ui/react"
2+
3+
const sizes = {
4+
"6xl": defineStyle({
5+
fontSize: "6xl",
6+
lineHeight: "4xs",
7+
}),
8+
"5xl": defineStyle({
9+
fontSize: "5xl",
10+
lineHeight: "4xs",
11+
}),
12+
"4xl": defineStyle({
13+
fontSize: "4xl",
14+
lineHeight: "sm",
15+
}),
16+
"3xl": defineStyle({
17+
fontSize: "3xl",
18+
lineHeight: "sm",
19+
}),
20+
"2xl": defineStyle({
21+
fontSize: "2xl",
22+
lineHeight: "sm",
23+
}),
24+
xl: defineStyle({
25+
fontSize: "xl",
26+
lineHeight: "sm",
27+
}),
28+
lg: defineStyle({
29+
fontSize: "lg",
30+
lineHeight: "base",
31+
}),
32+
md: defineStyle({
33+
fontSize: "md",
34+
lineHeight: "base",
35+
}),
36+
sm: defineStyle({
37+
fontSize: "sm",
38+
lineHeight: "base",
39+
}),
40+
xs: defineStyle({
41+
fontSize: "xs",
42+
lineHeight: "base",
43+
}),
44+
}
45+
46+
export const Text = defineStyleConfig({
47+
sizes,
48+
})

src/@chakra-ui/gatsby-plugin/components/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import { Alert } from "./Alert"
22
import { Avatar } from "./Avatar"
33
import { Badge } from "./Badge"
44
import { Button } from "./Button"
5+
import { Heading } from "./Heading"
56
import { Link } from "./Link"
67
import { Tag } from "./Tag"
78
import { Modal } from "./Modal"
89
import { Checkbox } from "./Checkbox"
910
import { Progress } from "./Progress"
1011
import { Tabs } from "./Tabs"
12+
import { Text } from "./Text"
1113
import { Table } from "./Table"
1214
import { Radio } from "./Radio"
1315
import { Select } from "./Select"
@@ -41,7 +43,7 @@ export default {
4143
Drawer: drawerDefaultTheme,
4244
Form: formDefaultTheme,
4345
FormLabel: formLabelDefaultTheme,
44-
Heading: headingDefaultTheme,
46+
Heading,
4547
Input,
4648
Link,
4749
Menu: menuDefaultTheme,
@@ -54,4 +56,5 @@ export default {
5456
Table,
5557
Tabs,
5658
Tag,
59+
Text,
5760
}

src/@chakra-ui/gatsby-plugin/foundations/typography.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ const typography = {
66
},
77

88
lineHeights: {
9-
"5xs": 1.1,
10-
"4xs": 1.15,
11-
"3xs": 1.2,
9+
"6xs": 1.1,
10+
"5xs": 1.15,
11+
"4xs": 1.2,
12+
"3xs": 1.25,
1213
"2xs": 1.35,
1314
xs: 1.4,
1415
sm: 1.5,

0 commit comments

Comments
 (0)