Skip to content

Commit 2885897

Browse files
authored
Merge branch 'dev' into sept26Farsi
2 parents 87fe436 + 2e04925 commit 2885897

File tree

547 files changed

+23736
-4764
lines changed

Some content is hidden

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

547 files changed

+23736
-4764
lines changed

.all-contributorsrc

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10577,6 +10577,78 @@
1057710577
"contributions": [
1057810578
"content"
1057910579
]
10580+
},
10581+
{
10582+
"login": "Coderoostr",
10583+
"name": "Marcos González",
10584+
"avatar_url": "https://avatars.githubusercontent.com/u/103231131?v=4",
10585+
"profile": "https://coderoostr.com",
10586+
"contributions": [
10587+
"doc"
10588+
]
10589+
},
10590+
{
10591+
"login": "natpicone",
10592+
"name": "Natalino Picone",
10593+
"avatar_url": "https://avatars.githubusercontent.com/u/4753402?v=4",
10594+
"profile": "https://chainlabo.com",
10595+
"contributions": [
10596+
"content"
10597+
]
10598+
},
10599+
{
10600+
"login": "hammadsaedi",
10601+
"name": "Hammad Saaedi",
10602+
"avatar_url": "https://avatars.githubusercontent.com/u/71373419?v=4",
10603+
"profile": "https://github.com/hammadsaedi",
10604+
"contributions": [
10605+
"content"
10606+
]
10607+
},
10608+
{
10609+
"login": "srn08",
10610+
"name": "Shaunak Nagrecha",
10611+
"avatar_url": "https://avatars.githubusercontent.com/u/105499798?v=4",
10612+
"profile": "https://github.com/srn08",
10613+
"contributions": [
10614+
"bug"
10615+
]
10616+
},
10617+
{
10618+
"login": "schwindtkevin",
10619+
"name": "Kevin Schwindt",
10620+
"avatar_url": "https://avatars.githubusercontent.com/u/1700789?v=4",
10621+
"profile": "https://github.com/schwindtkevin",
10622+
"contributions": [
10623+
"content"
10624+
]
10625+
},
10626+
{
10627+
"login": "robertkodra",
10628+
"name": "Robert",
10629+
"avatar_url": "https://avatars.githubusercontent.com/u/36516516?v=4",
10630+
"profile": "https://github.com/robertkodra",
10631+
"contributions": [
10632+
"content"
10633+
]
10634+
},
10635+
{
10636+
"login": "0xObsidian",
10637+
"name": "obsidian",
10638+
"avatar_url": "https://avatars.githubusercontent.com/u/131651958?v=4",
10639+
"profile": "https://github.com/0xObsidian",
10640+
"contributions": [
10641+
"content"
10642+
]
10643+
},
10644+
{
10645+
"login": "MohamedFekryyy",
10646+
"name": "Fekry Aiad",
10647+
"avatar_url": "https://avatars.githubusercontent.com/u/36033065?v=4",
10648+
"profile": "http://www.scienft.com",
10649+
"contributions": [
10650+
"ideas"
10651+
]
1058010652
}
1058110653
],
1058210654
"contributorsPerLine": 7,

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,6 +1656,16 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
16561656
<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>
16571657
<td align="center" valign="top" width="14.28%"><a href="http://taminobaumann.com"><img src="https://avatars.githubusercontent.com/u/48290617?v=4?s=100" width="100px;" alt="Tamino"/><br /><sub><b>Tamino</b></sub></a><br /><a href="#content-taminobaumann" title="Content">🖋</a></td>
16581658
<td align="center" valign="top" width="14.28%"><a href="https://github.com/keccers"><img src="https://avatars.githubusercontent.com/u/770277?v=4?s=100" width="100px;" alt="Katherine Champagne"/><br /><sub><b>Katherine Champagne</b></sub></a><br /><a href="#content-keccers" title="Content">🖋</a></td>
1659+
<td align="center" valign="top" width="14.28%"><a href="https://coderoostr.com"><img src="https://avatars.githubusercontent.com/u/103231131?v=4?s=100" width="100px;" alt="Marcos González"/><br /><sub><b>Marcos González</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=Coderoostr" title="Documentation">📖</a></td>
1660+
<td align="center" valign="top" width="14.28%"><a href="https://chainlabo.com"><img src="https://avatars.githubusercontent.com/u/4753402?v=4?s=100" width="100px;" alt="Natalino Picone"/><br /><sub><b>Natalino Picone</b></sub></a><br /><a href="#content-natpicone" title="Content">🖋</a></td>
1661+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/hammadsaedi"><img src="https://avatars.githubusercontent.com/u/71373419?v=4?s=100" width="100px;" alt="Hammad Saaedi"/><br /><sub><b>Hammad Saaedi</b></sub></a><br /><a href="#content-hammadsaedi" title="Content">🖋</a></td>
1662+
</tr>
1663+
<tr>
1664+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/srn08"><img src="https://avatars.githubusercontent.com/u/105499798?v=4?s=100" width="100px;" alt="Shaunak Nagrecha"/><br /><sub><b>Shaunak Nagrecha</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Asrn08" title="Bug reports">🐛</a></td>
1665+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/schwindtkevin"><img src="https://avatars.githubusercontent.com/u/1700789?v=4?s=100" width="100px;" alt="Kevin Schwindt"/><br /><sub><b>Kevin Schwindt</b></sub></a><br /><a href="#content-schwindtkevin" title="Content">🖋</a></td>
1666+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/robertkodra"><img src="https://avatars.githubusercontent.com/u/36516516?v=4?s=100" width="100px;" alt="Robert"/><br /><sub><b>Robert</b></sub></a><br /><a href="#content-robertkodra" title="Content">🖋</a></td>
1667+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/0xObsidian"><img src="https://avatars.githubusercontent.com/u/131651958?v=4?s=100" width="100px;" alt="obsidian"/><br /><sub><b>obsidian</b></sub></a><br /><a href="#content-0xObsidian" title="Content">🖋</a></td>
1668+
<td align="center" valign="top" width="14.28%"><a href="http://www.scienft.com"><img src="https://avatars.githubusercontent.com/u/36033065?v=4?s=100" width="100px;" alt="Fekry Aiad"/><br /><sub><b>Fekry Aiad</b></sub></a><br /><a href="#ideas-MohamedFekryyy" title="Ideas, Planning, & Feedback">🤔</a></td>
16591669
</tr>
16601670
</tbody>
16611671
</table>

docs/ds-implementation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Follow the new component directory structure:
1717
```markdown
1818
src/
1919
└── components/
20-
└── ComponentA/
21-
├── index.tsx
22-
├── ComponentA.stories.tsx
23-
└── // Any other files as applicable (utils, child components, useHook, etc.)
20+
····└── ComponentA/
21+
··········├── index.tsx
22+
··········├── ComponentA.stories.tsx
23+
··········└── // Any other files as applicable (utils, child components, useHook, etc.)
2424
```
2525

2626
## Components creation/modification from the DS

docs/schema.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Schema
22

3-
Our schema, used in the Gatsby GraphQL layer, is defined under the `src/schema` folder. These files are then grabbed by the createSchemaCustomization`Gatsby hook in`gatsby-node.ts`.
3+
Our schema, used in the Gatsby GraphQL layer, is defined under the `src/schema` folder. These files are then grabbed by the `createSchemaCustomization` Gatsby hook in `gatsby-node.ts`.
44
There are two ways to define a schema in Gatsby:
55

66
- GraphQL SDL, the traditional way using [template literals](https://graphql.org/learn/schema/)
77
- And a more "programmatic" approach, which has more flexibility, [Gatsby Type Builders](https://www.gatsbyjs.com/docs/reference/graphql-data-layer/schema-customization/#gatsby-type-builders) with `schema.buildObjectType`
88

9-
That is why you see two folders in /schema
9+
That is why you see two folders in `/schema`
1010

1111
- `src/schema/sdls` for GraphQL SDL
1212
- `src/schema/builders` for Gatsby Type Builders

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

redirects.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,10 @@
335335
"fromPath": "/staking/withdraws",
336336
"toPath": "/en/staking/withdrawals/"
337337
},
338+
{
339+
"fromPath": "/*/writing-cohort",
340+
"toPath": "https://ethereumwriterscohort.carrd.co/"
341+
},
338342
{
339343
"fromPath": "/*/staking/withdraws",
340344
"toPath": "/:splat/staking/withdrawals/"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
import { createMultiStyleConfigHelpers } from "@chakra-ui/react"
2+
import { breadcrumbAnatomy } from "@chakra-ui/anatomy"
3+
import { breadcrumbDefaultTheme, defineMergeStyles } from "./components.utils"
4+
5+
const { defineMultiStyleConfig } = createMultiStyleConfigHelpers(
6+
breadcrumbAnatomy.keys
7+
)
8+
9+
const baseStyle = defineMergeStyles(breadcrumbDefaultTheme.baseStyle, {
10+
list: {
11+
m: 0,
12+
lineHeight: "base",
13+
flexWrap: "wrap",
14+
},
15+
item: {
16+
color: "body.medium",
17+
letterSpacing: "wider",
18+
m: 0,
19+
},
20+
link: {
21+
fontWeight: "normal",
22+
_hover: {
23+
color: "primary.base",
24+
textDecor: "none",
25+
},
26+
_active: {
27+
color: "primary.base",
28+
},
29+
/*
30+
* `&[aria-current="page"]`
31+
* Redundancy to ensure styling on the active
32+
* link is applied.
33+
*/
34+
_activeLink: {
35+
color: "primary.base",
36+
},
37+
},
38+
separator: {
39+
mx: "2.5",
40+
},
41+
})
42+
43+
export const Breadcrumb = defineMultiStyleConfig({
44+
baseStyle,
45+
})

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { inputAnatomy } from "@chakra-ui/anatomy"
2+
import { cssVar } from "@chakra-ui/react"
23
import {
34
createMultiStyleConfigHelpers,
45
defineStyle,
@@ -8,6 +9,9 @@ import { defineMergeStyles, inputDefaultTheme } from "./components.utils"
89
const { defineMultiStyleConfig, definePartsStyle } =
910
createMultiStyleConfigHelpers(inputAnatomy.keys)
1011

12+
// From the default theme
13+
const $height = cssVar("input-height")
14+
1115
const baseStyle = definePartsStyle((props) => {
1216
const {
1317
focusBorderColor: fc = "primaryHover",
@@ -19,10 +23,10 @@ const baseStyle = definePartsStyle((props) => {
1923
inputDefaultTheme.variants?.outline(props),
2024
{
2125
field: {
22-
borderColor: "currentColor",
2326
borderRadius: "base",
2427
outline: "3px solid transparent",
2528
lineHeight: 1,
29+
px: "2",
2630
_placeholder: {
2731
color: "disabled",
2832
opacity: 1,
@@ -34,9 +38,6 @@ const baseStyle = definePartsStyle((props) => {
3438
boxShadow: "none",
3539
},
3640
_hover: null, // override default
37-
_groupHover: {
38-
borderColor: "primary.hover",
39-
},
4041
_invalid: {
4142
borderColor: ec,
4243
boxShadow: "none",
@@ -46,10 +47,14 @@ const baseStyle = definePartsStyle((props) => {
4647
opacity: 1,
4748
},
4849
"&:not(:disabled)": {
50+
borderColor: "body.base",
4951
_active: {
5052
bg: "background.highlight",
5153
borderColor: "primary.highContrast",
5254
},
55+
"[data-group] &:hover, &:hover": {
56+
borderColor: "primary.hover",
57+
},
5358
},
5459
},
5560
element: {
@@ -84,12 +89,10 @@ const baseStyle = definePartsStyle((props) => {
8489

8590
const size = {
8691
md: defineStyle({
87-
h: 10.5,
88-
px: 2,
92+
[$height.variable]: "sizes.10.5",
8993
}),
9094
sm: defineStyle({
91-
h: 8,
92-
px: 1,
95+
[$height.variable]: "sizes.8",
9396
}),
9497
}
9598

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Alert } from "./Alert"
22
import { Avatar } from "./Avatar"
33
import { Badge } from "./Badge"
44
import { Button } from "./Button"
5+
import { Breadcrumb } from "./Breadcrumb"
56
import { Heading } from "./Heading"
67
import { Link } from "./Link"
78
import { Tag } from "./Tag"
@@ -17,7 +18,6 @@ import { Switch } from "./Switch"
1718
import { Input } from "./Input"
1819
import {
1920
accordionDefaultTheme,
20-
breadcrumbDefaultTheme,
2121
closeButtonDefaultTheme,
2222
codeDefaultTheme,
2323
dividerDefaultTheme,
@@ -34,7 +34,7 @@ export default {
3434
Alert,
3535
Avatar,
3636
Badge,
37-
Breadcrumb: breadcrumbDefaultTheme,
37+
Breadcrumb,
3838
Button,
3939
Checkbox,
4040
CloseButton: closeButtonDefaultTheme,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const colors = {
99
500: "#646464",
1010
600: "#333333",
1111
700: "#222222",
12+
800: "#1B1B1B",
1213
900: "#141414",
1314
},
1415
blue: {
@@ -30,6 +31,7 @@ const colors = {
3031
300: "#FFB185",
3132
400: "#FF985C",
3233
500: "#FF7324",
34+
550: "#DF5A0E",
3335
600: "#B84300",
3436
700: "#7A2D00",
3537
800: "#521E00",

0 commit comments

Comments
 (0)