Skip to content

Commit 4cd043d

Browse files
authored
Merge pull request #10073 from ethereum/dev
deploy: v7.11.0
2 parents dfe74c3 + 5a004e1 commit 4cd043d

File tree

488 files changed

+67376
-31575
lines changed

Some content is hidden

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

488 files changed

+67376
-31575
lines changed

.storybook/manager.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
import { addons } from "@storybook/addons"
22
import theme from "./theme"
3+
import favicon from "../src/assets/favicon.png"
34

45
addons.setConfig({
56
theme,
67
})
8+
9+
const link = document.createElement("link")
10+
link.setAttribute("rel", "shortcut icon")
11+
link.setAttribute("href", favicon)
12+
document.head.appendChild(link)

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ethereum-org-website",
3-
"version": "7.10.1",
3+
"version": "7.11.0",
44
"description": "Website of ethereum.org",
55
"main": "index.js",
66
"repository": "git@github.com:ethereum/ethereum-org-website.git",
@@ -43,7 +43,7 @@
4343
"gatsby-plugin-react-i18next": "^3.0.1",
4444
"gatsby-plugin-react-svg": "^3.3.0",
4545
"gatsby-plugin-robots-txt": "^1.8.0",
46-
"gatsby-plugin-sharp": "^5.4.0",
46+
"gatsby-plugin-sharp": "^5.8.1",
4747
"gatsby-plugin-sitemap": "^6.4.0",
4848
"gatsby-remark-autolink-headers": "^5.21.0",
4949
"gatsby-remark-copy-linked-files": "^5.21.0",
@@ -85,14 +85,14 @@
8585
"@chakra-ui/cli": "^2.3.0",
8686
"@chakra-ui/storybook-addon": "^4.0.12",
8787
"@netlify/functions": "^1.2.0",
88-
"@storybook/addon-a11y": "^7.0.0-beta.51",
89-
"@storybook/addon-actions": "^7.0.0-beta.51",
90-
"@storybook/addon-essentials": "^7.0.0-beta.51",
91-
"@storybook/addon-interactions": "^7.0.0-beta.51",
92-
"@storybook/addon-links": "^7.0.0-beta.51",
93-
"@storybook/react": "^7.0.0-beta.51",
94-
"@storybook/react-webpack5": "^7.0.0-beta.51",
95-
"@storybook/testing-library": "^0.0.14-next.1",
88+
"@storybook/addon-a11y": "^7.0.6",
89+
"@storybook/addon-actions": "^7.0.6",
90+
"@storybook/addon-essentials": "^7.0.6",
91+
"@storybook/addon-interactions": "^7.0.6",
92+
"@storybook/addon-links": "^7.0.6",
93+
"@storybook/react": "^7.0.6",
94+
"@storybook/react-webpack5": "^7.0.6",
95+
"@storybook/testing-library": "^0.1.0",
9696
"@types/browser-lang": "^0.1.0",
9797
"@types/github-slugger": "^1.3.0",
9898
"@types/luxon": "^2.3.2",
@@ -112,7 +112,7 @@
112112
"prettier": "^2.2.1",
113113
"pretty-quick": "^3.1.0",
114114
"rimraf": "^4.1.1",
115-
"storybook": "^7.0.0-beta.51",
115+
"storybook": "^7.0.6",
116116
"ts-node": "^10.9.1",
117117
"typescript": "^4.6.3",
118118
"walkdir": "^0.4.1"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import colors from "./colors"
22
import shadows from "./shadows"
33
import typography from "./typography"
4+
import sizes from "./sizes"
45

56
// Check the following link to see all the possible options:
67
// https://github.com/chakra-ui/chakra-ui/blob/main/packages/theme/src/foundations/index.ts
78
const foundations = {
89
colors,
910
shadows,
1011
...typography,
12+
sizes,
1113
}
1214

1315
export default foundations

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ const shadows = {
1616
dark: "0 1px 1px hsla(0,0%,100%,.1)",
1717
},
1818
tableItemBoxHover: "0 0 1px var(--eth-colors-primary)",
19+
gridYellowBoxShadow: "8px 8px 0px 0px var(--eth-colors-gridYellow)",
20+
gridBlueBowShadow: "8px 8px 0px 0px var(--eth-colors-gridBlue)",
1921

2022
// * Part of new DS
2123
// TODO: From current theme. Rename to 'buttonHover'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const container = {
2+
"2xl": "1440px",
3+
}
4+
5+
const sizes = {
6+
container,
7+
}
8+
9+
export default sizes

src/assets/wallets/taho.png

30.1 KB
Loading

src/assets/wallets/tallyho.png

-60.2 KB
Binary file not shown.

src/components/AssetDownload.tsx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
1+
// Libraries
12
import React from "react"
23
import { GatsbyImage } from "gatsby-plugin-image"
3-
import {
4-
Box,
5-
Flex,
6-
Container,
7-
Img,
8-
Center,
9-
Heading,
10-
Text,
11-
} from "@chakra-ui/react"
4+
import { Box, Flex, Img, Center, Heading, Text } from "@chakra-ui/react"
125

6+
// Components
137
import Translation from "../components/Translation"
148
import ButtonLink from "./ButtonLink"
159
import Emoji from "./Emoji"
1610
import Link from "./Link"
1711

12+
// Utils
1813
import { getImage, getSrc, ImageDataLike } from "../utils/image"
14+
import { trackCustomEvent } from "../utils/matomo"
1915

2016
export interface IHide {
2117
shouldHide: boolean
@@ -125,7 +121,16 @@ const AssetDownload: React.FC<IProps> = ({
125121
</Box>
126122
<Box mt={4} p={0}>
127123
{!Svg && (
128-
<ButtonLink to={downloadUrl}>
124+
<ButtonLink
125+
to={downloadUrl}
126+
onClick={() => {
127+
trackCustomEvent({
128+
eventCategory: "asset download button",
129+
eventAction: "click",
130+
eventName: title,
131+
})
132+
}}
133+
>
129134
<Translation id="page-assets-download-download" />
130135
</ButtonLink>
131136
)}

src/components/BoxGrid.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ import {
1010

1111
import Emoji from "./Emoji"
1212

13+
import { MatomoEventOptions, trackCustomEvent } from "../utils/matomo"
14+
1315
export interface IBoxItem {
1416
emoji: string
1517
title: string
1618
description: string
19+
matomo: MatomoEventOptions
1720
}
1821

1922
export interface IProps {
@@ -37,7 +40,7 @@ const colors = [
3740
"gridRed",
3841
"gridBlue",
3942
"gridGreen",
40-
"gridOrange",
43+
"warning",
4144
"gridPink",
4245
"gridPurple",
4346
]
@@ -81,7 +84,14 @@ const BoxGrid: React.FC<IProps> = ({ items }) => {
8184
transform: "skewX(-5deg)",
8285
boxShadow: "tableBoxShadow",
8386
}}
84-
onClick={() => setOpenIndex(idx)}
87+
onClick={() => {
88+
setOpenIndex(idx)
89+
trackCustomEvent({
90+
eventCategory: item.matomo.eventCategory,
91+
eventAction: item.matomo.eventAction,
92+
eventName: item.matomo.eventName,
93+
})
94+
}}
8595
key={idx}
8696
>
8797
<Emoji

src/components/Callout.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
// Libraries
22
import React from "react"
33
import { GatsbyImage, IGatsbyImageData } from "gatsby-plugin-image"
4-
import Translation from "./Translation"
5-
import { TranslationKey } from "../utils/translations"
4+
import { Flex, FlexProps, Heading, Image, Text } from "@chakra-ui/react"
5+
66
// Components
7+
import Translation from "./Translation"
78
import Emoji from "./Emoji"
8-
import { Flex, Heading, Image, Text } from "@chakra-ui/react"
99

10-
export interface IProps {
10+
import type { TranslationKey } from "../utils/translations"
11+
12+
export interface IProps extends FlexProps {
1113
children?: React.ReactNode
1214
image?: IGatsbyImageData
1315
emoji?: string
@@ -25,6 +27,7 @@ const Callout: React.FC<IProps> = ({
2527
descriptionKey,
2628
children,
2729
className,
30+
...rest
2831
}) => (
2932
<Flex
3033
direction="column"
@@ -40,6 +43,7 @@ const Callout: React.FC<IProps> = ({
4043
mb={{ base: 16, lg: 4 }}
4144
borderRadius="base"
4245
className={className}
46+
{...rest}
4347
>
4448
{image && (
4549
<Image

0 commit comments

Comments
 (0)