Skip to content

Commit bb79eda

Browse files
committed
Merge branch 'dev' into nov6Filipino
2 parents ed8c277 + e1edd67 commit bb79eda

File tree

97 files changed

+1210
-961
lines changed

Some content is hidden

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

97 files changed

+1210
-961
lines changed

.all-contributorsrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10704,6 +10704,33 @@
1070410704
"contributions": [
1070510705
"doc"
1070610706
]
10707+
},
10708+
{
10709+
"login": "s-crypt",
10710+
"name": "s-crypt",
10711+
"avatar_url": "https://avatars.githubusercontent.com/u/41712656?v=4",
10712+
"profile": "https://blog.insubli.me",
10713+
"contributions": [
10714+
"content"
10715+
]
10716+
},
10717+
{
10718+
"login": "tudorpintea999",
10719+
"name": "iwantanode",
10720+
"avatar_url": "https://avatars.githubusercontent.com/u/87604944?v=4",
10721+
"profile": "https://github.com/tudorpintea999",
10722+
"contributions": [
10723+
"content"
10724+
]
10725+
},
10726+
{
10727+
"login": "shak58",
10728+
"name": "shak58",
10729+
"avatar_url": "https://avatars.githubusercontent.com/u/150069539?v=4",
10730+
"profile": "https://github.com/shak58",
10731+
"contributions": [
10732+
"content"
10733+
]
1070710734
}
1070810735
],
1070910736
"contributorsPerLine": 7,

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,6 +1674,9 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
16741674
<td align="center" valign="top" width="14.28%"><a href="https://github.com/joaolago1113"><img src="https://avatars.githubusercontent.com/u/22820692?v=4?s=100" width="100px;" alt="joao"/><br /><sub><b>joao</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=joaolago1113" title="Documentation">📖</a></td>
16751675
<td align="center" valign="top" width="14.28%"><a href="http://p2p.org"><img src="https://avatars.githubusercontent.com/u/3310192?v=4?s=100" width="100px;" alt="Eugene"/><br /><sub><b>Eugene</b></sub></a><br /><a href="#content-rgb2hsl" title="Content">🖋</a></td>
16761676
<td align="center" valign="top" width="14.28%"><a href="http://www.danielgorbe.com"><img src="https://avatars.githubusercontent.com/u/36860942?v=4?s=100" width="100px;" alt="Dániel Görbe"/><br /><sub><b>Dániel Görbe</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=g0rbe" title="Documentation">📖</a></td>
1677+
<td align="center" valign="top" width="14.28%"><a href="https://blog.insubli.me"><img src="https://avatars.githubusercontent.com/u/41712656?v=4?s=100" width="100px;" alt="s-crypt"/><br /><sub><b>s-crypt</b></sub></a><br /><a href="#content-s-crypt" title="Content">🖋</a></td>
1678+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/tudorpintea999"><img src="https://avatars.githubusercontent.com/u/87604944?v=4?s=100" width="100px;" alt="iwantanode"/><br /><sub><b>iwantanode</b></sub></a><br /><a href="#content-tudorpintea999" title="Content">🖋</a></td>
1679+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/shak58"><img src="https://avatars.githubusercontent.com/u/150069539?v=4?s=100" width="100px;" alt="shak58"/><br /><sub><b>shak58</b></sub></a><br /><a href="#content-shak58" title="Content">🖋</a></td>
16771680
</tr>
16781681
</tbody>
16791682
</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.22.3",
3+
"version": "7.23.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/styles.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import { mode } from "@chakra-ui/theme-tools"
2-
31
const styles = {
4-
global: (props) => ({
2+
global: {
53
/**
64
* THESE ARE OLD GLOBAL STYLES - carried over from old css files
75
*
@@ -12,9 +10,7 @@ const styles = {
1210
* don't need the global styles anymore
1311
*/
1412
body: {
15-
// TODO: when we have Chakra v2, this should be done by overriding the
16-
// native Chakra semantic tokens
17-
bg: mode("white", "gray.800")(props),
13+
bg: "background.base",
1814
lineHeight: "base",
1915
fontSize: "md",
2016
},
@@ -83,7 +79,7 @@ const styles = {
8379
lineHeight: "base",
8480
fontFamily: "monospace",
8581
},
86-
}),
82+
},
8783
}
8884

8985
export default styles
1.86 MB
Loading

src/components/Hero/HubHero/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const HubHero = (props: HubHeroProps) => {
5555
transform={{ xl: "translateY(-50%)" }}
5656
backdropFilter={{ xl: "auto" }}
5757
backdropBlur={{ xl: "base" }}
58+
wordBreak="break-word"
5859
>
5960
<Heading
6061
as="h1"
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import React from "react"
2+
import { calc, Flex, FlexProps, HeadingProps } from "@chakra-ui/react"
3+
4+
import ButtonDropdown, {
5+
IProps as ButtonDropdownProps,
6+
List as ButtonDropdownList,
7+
} from "../ButtonDropdown"
8+
import OldHeading from "../OldHeading"
9+
import Translation from "../Translation"
10+
import UpgradeTableOfContents from "../UpgradeTableOfContents"
11+
12+
export const H2 = (props: HeadingProps) => (
13+
<OldHeading
14+
fontWeight={700}
15+
lineHeight={1.4}
16+
size="lg"
17+
textAlign="left"
18+
mt={0}
19+
{...props}
20+
/>
21+
)
22+
23+
export const StyledButtonDropdown = ({
24+
list,
25+
...rest
26+
}: FlexProps & Pick<ButtonDropdownProps, "list">) => (
27+
<Flex align="flex-end" justify="flex-end" mb={8} {...rest} pos="relative">
28+
<ButtonDropdown list={list} w="full" minW="240px" />
29+
</Flex>
30+
)
31+
32+
interface IProps {
33+
dropdownLinks?: ButtonDropdownList
34+
maxDepth?: number
35+
tocItems: any[]
36+
}
37+
38+
const LeftNavBar: React.FC<IProps> = ({
39+
dropdownLinks,
40+
maxDepth = 1,
41+
tocItems,
42+
}) => {
43+
return (
44+
<Flex
45+
as="aside"
46+
flexDirection="column"
47+
flex="0 1 400px"
48+
ml={8}
49+
mr={16}
50+
position="sticky"
51+
top="6.25rem"
52+
height={calc("100vh").subtract("80px").toString()}
53+
>
54+
{dropdownLinks && <StyledButtonDropdown list={dropdownLinks} />}
55+
<H2>
56+
<Translation id="on-this-page" />
57+
</H2>
58+
{tocItems && (
59+
<UpgradeTableOfContents items={tocItems} maxDepth={maxDepth} />
60+
)}
61+
</Flex>
62+
)
63+
}
64+
65+
export default LeftNavBar

src/components/Quiz/QuizItem.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ const QuizItem: React.FC<QuizzesListItem> = (props) => {
5656
<Flex gap={2} alignItems="center">
5757
<Text
5858
color={isCompleted ? "body.medium" : "text"}
59-
fontWeight="bold"
6059
_before={{
6160
content: 'counter(list-counter) ". "',
6261
}}
@@ -65,9 +64,7 @@ const QuizItem: React.FC<QuizzesListItem> = (props) => {
6564
</Text>
6665

6766
{/* Show green tick if quizz was completed only */}
68-
<Box display={isCompleted ? "flex" : "none"}>
69-
<GreenTickIcon />
70-
</Box>
67+
{isCompleted && <GreenTickIcon />}
7168
</Flex>
7269

7370
{/* Labels */}
@@ -86,7 +83,7 @@ const QuizItem: React.FC<QuizzesListItem> = (props) => {
8683
{/* Start Button */}
8784
<Box w={{ base: "full", lg: "auto" }}>
8885
<Button
89-
variant="outline-color"
86+
variant="outline"
9087
w={{ base: "full", lg: "auto" }}
9188
onClick={handleStart}
9289
>

0 commit comments

Comments
 (0)