Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy v5.1.0 #7450

Merged
merged 168 commits into from
Aug 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
c209855
Update client setups
taxmeifyoucan Jul 12, 2022
4db1ecd
Merge branch 'ethereum:dev' into clients-merge-update
taxmeifyoucan Jul 12, 2022
d856958
Update index.md
taxmeifyoucan Jul 12, 2022
d2bec40
Update index.md
taxmeifyoucan Jul 13, 2022
4b23fd9
Add Lighthouse description
paulhauner Jul 13, 2022
4033238
Merge pull request #2 from paulhauner/patch-19
taxmeifyoucan Jul 13, 2022
a6096f8
Add Prysm info
taxmeifyoucan Jul 14, 2022
ba8c0a3
Update links
taxmeifyoucan Jul 14, 2022
c081d69
Basic restructuration
taxmeifyoucan Jul 14, 2022
041929d
Update Teku info
benjaminion Jul 14, 2022
9f9a225
Update index.md
liftlines Jul 18, 2022
7e385b7
Merge pull request #4 from liftlines/patch-19
taxmeifyoucan Jul 18, 2022
62ed656
Merge pull request #3 from benjaminion/patch-2
taxmeifyoucan Jul 18, 2022
18b4808
Update and rework node docs
taxmeifyoucan Jul 19, 2022
51f7ce6
Add info on Lodestar and resources
taxmeifyoucan Jul 19, 2022
9653c74
Add conjunction
taxmeifyoucan Jul 20, 2022
7b0310f
Wording
taxmeifyoucan Jul 20, 2022
fc77906
Update src/content/developers/docs/nodes-and-clients/index.md
taxmeifyoucan Jul 20, 2022
37601c7
Update src/content/developers/docs/nodes-and-clients/run-a-node/index.md
taxmeifyoucan Jul 20, 2022
91bda72
Update src/content/developers/docs/nodes-and-clients/run-a-node/index.md
taxmeifyoucan Jul 20, 2022
4615bdb
Update src/content/developers/docs/nodes-and-clients/run-a-node/index.md
taxmeifyoucan Jul 20, 2022
d0ed940
Update src/content/developers/docs/nodes-and-clients/run-a-node/index.md
taxmeifyoucan Jul 20, 2022
4a580cb
Update src/content/developers/docs/nodes-and-clients/run-a-node/index.md
taxmeifyoucan Jul 20, 2022
4702dfc
Changed the persona checkbox to radio
nloureiro Jul 21, 2022
6461a20
add radio button input
corwintines Jul 22, 2022
a1967e1
Add resources
taxmeifyoucan Jul 30, 2022
8f93323
revert back to icon, and style
corwintines Aug 1, 2022
1fe4c03
Add resources, include feedback suggestions
taxmeifyoucan Aug 3, 2022
f1de8ee
Add Blog translations subpage
lukassim Jul 27, 2022
a91100b
Translation program page revamp
lukassim Aug 3, 2022
91f1fb5
Add start translating button
lukassim Aug 3, 2022
2d88f3b
Move acknowledgements callout
lukassim Aug 3, 2022
a374105
Add ethereum.org as a project
samajammin Aug 3, 2022
2588b1b
Remove TranslationsInProgress
samajammin Aug 3, 2022
0708173
Remove TranslationsInProgress from translated pages
samajammin Aug 3, 2022
0561910
Add descriptions for each translation project
samajammin Aug 3, 2022
3e576f2
Remove duplicate phrase
samajammin Aug 3, 2022
2082c6c
Implement changes from design sync
lukassim Aug 4, 2022
0d71406
More updates
taxmeifyoucan Aug 4, 2022
807e1c7
Updated blog subpage
lukassim Aug 5, 2022
1885b3f
Add Turkish learn pages
minimalsm Aug 5, 2022
91dbc5d
Update French community bucket
minimalsm Aug 5, 2022
0e026d2
update eip0-1559 label to fee optimization for find-wallet filters
corwintines Aug 5, 2022
ae464ba
Update types of wallets section of wallets page
corwintines Aug 5, 2022
1f6dc5a
change buy/withdraw crypto to on ramp and off ramp
corwintines Aug 5, 2022
2de2ca2
Update style guide
lukassim Aug 8, 2022
922278d
Apply suggestions from code review
lukassim Aug 9, 2022
ca9f7dd
Add suggested changes
lukassim Aug 9, 2022
7e53b04
Update stats & remove alt image text
lukassim Aug 9, 2022
7ecae79
Add missing Launchpad text
lukassim Aug 9, 2022
da34348
add migration guide doc
pettinarip Aug 9, 2022
76f7429
add initial design system palette
pettinarip Aug 9, 2022
b3e8fcb
define colors from old theme into new theme to make the transition
pettinarip Aug 10, 2022
594fd16
update theme colors guide
pettinarip Aug 10, 2022
5e3d16d
Update index.mp (Minor spelling mistakes)
tobi4021 Aug 10, 2022
cd08d7f
do not define nested colors as semantic tokens
pettinarip Aug 10, 2022
8045947
sync colors with design system
pettinarip Aug 10, 2022
45da1f7
simplify semantic tokens definition
pettinarip Aug 10, 2022
4e950c8
Update src/intl/en/page-wallets.json
corwintines Aug 10, 2022
ae921aa
Update src/intl/en/page-wallets.json
corwintines Aug 10, 2022
525959b
Tweak client settings and wording
taxmeifyoucan Aug 11, 2022
cc4695e
Config flags updates
taxmeifyoucan Aug 11, 2022
688a173
Add Geth config info
taxmeifyoucan Aug 11, 2022
148c697
Add documentation to typescript.md for when to declare a type on vari…
corwintines Aug 11, 2022
177c519
Fix glossary typo
minimalsm Aug 11, 2022
461ac72
Fix typo in design principles
minimalsm Aug 11, 2022
b51dab4
Grammar/semantic adjustments
wackerow Aug 11, 2022
6ba7247
Update src/content/developers/docs/nodes-and-clients/index.md
taxmeifyoucan Aug 11, 2022
565614a
Update src/content/developers/docs/nodes-and-clients/index.md
taxmeifyoucan Aug 11, 2022
b80dcad
Update src/content/developers/docs/nodes-and-clients/index.md
taxmeifyoucan Aug 11, 2022
adcc0df
Update src/content/developers/docs/nodes-and-clients/index.md
taxmeifyoucan Aug 11, 2022
b420778
Update src/content/developers/docs/nodes-and-clients/index.md
taxmeifyoucan Aug 11, 2022
31cb8d5
Update src/content/developers/docs/nodes-and-clients/index.md
taxmeifyoucan Aug 11, 2022
89728e2
Update src/content/developers/docs/nodes-and-clients/index.md
taxmeifyoucan Aug 11, 2022
397ae9b
Remove Hyperledger Burrow from EVM implementatinos
Aug 11, 2022
54dc518
update label based on feedback
corwintines Aug 11, 2022
90344d7
Update index.md
emmanuel-awosika Aug 12, 2022
f9cc3ac
Add suggestions
taxmeifyoucan Aug 12, 2022
05c3341
Apply suggestions from code review
minimalsm Aug 12, 2022
3698811
Update src/content/contributing/translation-program/index.md
minimalsm Aug 12, 2022
db260cb
Apply suggestions from code review
minimalsm Aug 12, 2022
f4501c6
Merge pull request #7412 from emmanuel-awosika/patch-22
minimalsm Aug 12, 2022
60a1a04
Merge pull request #7404 from ethereum/update-typescript-file
minimalsm Aug 12, 2022
981d74f
docs: update README.md [skip ci]
allcontributors[bot] Aug 12, 2022
6671cc0
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Aug 12, 2022
4f8ee1a
Merge pull request #7408 from hughcrt/patch-1
minimalsm Aug 12, 2022
c486c66
Merge pull request #7414 from ethereum/all-contributors/add-hughcrt
minimalsm Aug 12, 2022
98384f0
Remove Hyperledger Burrow
minimalsm Aug 12, 2022
e52b951
Added Hyperledger Burrow to deprecated software
hursittarcan Aug 12, 2022
7ceb57a
Update src/content/deprecated-software/index.md
hursittarcan Aug 12, 2022
d8ddd4f
Fix design principles link
minimalsm Aug 12, 2022
2932e52
Update src/content/translations/fr/contributing/design-principles/ind…
minimalsm Aug 12, 2022
2f352bf
Update src/content/translations/fr/contributing/index.md
minimalsm Aug 12, 2022
9feb526
Apply suggestions from code review
minimalsm Aug 12, 2022
d3a7109
Added new article to mergeArticleList
hursittarcan Aug 12, 2022
07d96e4
Added extra entry to list [MEV]
hursittarcan Aug 12, 2022
b6ed144
Update page-upgrades-index.json
hursittarcan Aug 12, 2022
7e36f2d
Update ShardChainsList.tsx
hursittarcan Aug 12, 2022
bb5b68c
Removed comma [MergeArticleList]
hursittarcan Aug 12, 2022
6808f0c
Update src/content/developers/docs/nodes-and-clients/run-a-node/index.md
taxmeifyoucan Aug 12, 2022
a51babd
Merge pull request #7416 from hursittarcan/patch-15
corwintines Aug 12, 2022
bd613a4
Merge pull request #7415 from ethereum/removeHyperledgerBurrow
corwintines Aug 12, 2022
e4a3385
Merge pull request #7417 from ethereum/fixDesignPrinciples
corwintines Aug 12, 2022
840d754
Merge pull request #7309 from ethereum/addTurkishLearn
corwintines Aug 12, 2022
f702d17
Merge pull request #7313 from ethereum/frenchCommunityUpdates
corwintines Aug 12, 2022
d451c12
Update index.md
hursittarcan Aug 12, 2022
d1ff8f9
Update EIP Editor list
Pandapip1 Aug 12, 2022
517639f
Merge pull request #7321 from ethereum/onramp-offramp-labels
samajammin Aug 12, 2022
a658b94
Merge pull request #7320 from ethereum/update-type-of-wallets
samajammin Aug 12, 2022
bdf7b58
Merge pull request #7319 from ethereum/eip-1559-label
samajammin Aug 12, 2022
b4d8536
fix: height of homeIcon svg
wackerow Aug 13, 2022
d9ab5fc
Fix typo, remove duplicate 'can'
z3zzz Aug 13, 2022
2b3115d
Apply suggestions from code review
pettinarip Aug 13, 2022
a87a0e2
docs: update README.md [skip ci]
allcontributors[bot] Aug 13, 2022
fce8b22
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Aug 13, 2022
ef0b45d
Merge pull request #7429 from ethereum/all-contributors/add-z3zzz
corwintines Aug 13, 2022
b0340a9
Merge pull request #7427 from z3zzz/typo-duplicate-can
corwintines Aug 13, 2022
b23eb3e
Merge pull request #7426 from ethereum/svg-height
corwintines Aug 13, 2022
3f0f6fa
Fix a Chinese translation error on web 3 page
lonelyotter Aug 14, 2022
80d0b20
Fix tense for withdraw misconception
corwintines Aug 14, 2022
3ba4da5
Merge pull request #7368 from ethereum/ui-migration-guide
pettinarip Aug 14, 2022
d3f7940
Merge pull request #7375 from ethereum/theme-colors
pettinarip Aug 14, 2022
39dc7f3
fix liqudation section on MEV page
corwintines Aug 14, 2022
eec2539
Update index.md
opensourcex123 Aug 15, 2022
c0dc8f8
Update src/content/developers/docs/mev/index.md
minimalsm Aug 15, 2022
56cd631
Update src/content/developers/docs/mev/index.md
minimalsm Aug 15, 2022
9c8dad6
Merge pull request #7432 from ethereum/mevLiquidationFix
minimalsm Aug 15, 2022
2e1b92e
Merge pull request #7431 from ethereum/fixTenseMerge
minimalsm Aug 15, 2022
cae5ef0
Merge pull request #7422 from hursittarcan/patch-16
minimalsm Aug 15, 2022
6809499
Merge pull request #7419 from hursittarcan/devhursit
minimalsm Aug 15, 2022
da0edda
Merge pull request #7159 from ethereum/find-wallet-radio-persona
minimalsm Aug 15, 2022
190b73a
Merge pull request #7379 from tobi4021/patch-1
minimalsm Aug 15, 2022
4b62b31
docs: update README.md [skip ci]
allcontributors[bot] Aug 15, 2022
2b84a7f
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Aug 15, 2022
22d6fa6
Merge pull request #7437 from ethereum/all-contributors/add-tobi4021
minimalsm Aug 15, 2022
9ce2979
docs: update README.md [skip ci]
allcontributors[bot] Aug 15, 2022
ba81989
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Aug 15, 2022
ed2b629
Merge pull request #7430 from lonelyotter/patch-1
minimalsm Aug 15, 2022
9b56535
Merge pull request #7439 from ethereum/all-contributors/add-lonelyotter
minimalsm Aug 15, 2022
3dec7aa
docs: update README.md [skip ci]
allcontributors[bot] Aug 15, 2022
2b050a4
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Aug 15, 2022
96bc817
Merge pull request #7435 from opensourcex123/patch-1
minimalsm Aug 15, 2022
46a6df5
Merge pull request #7440 from ethereum/all-contributors/add-opensourc…
minimalsm Aug 15, 2022
e3c9f5c
docs: update README.md [skip ci]
allcontributors[bot] Aug 15, 2022
be0cbe0
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Aug 15, 2022
7bbae8c
Merge pull request #7441 from ethereum/all-contributors/add-opensourc…
minimalsm Aug 15, 2022
ffba6a8
Merge pull request #7423 from Pandapip1/patch-1
minimalsm Aug 15, 2022
ae26bbb
Apply suggestions from code review
minimalsm Aug 15, 2022
5e3e1ff
Merge branch 'dev' into clients-merge-update
minimalsm Aug 15, 2022
6e9c857
Commit to lint files
minimalsm Aug 15, 2022
63051f5
Fix heading and UI bug
minimalsm Aug 15, 2022
5ef048d
Add header ids
minimalsm Aug 15, 2022
702dad7
Improve wording on client diversity
taxmeifyoucan Aug 15, 2022
698e228
Remove details tags
taxmeifyoucan Aug 15, 2022
8625fd0
Fix header
minimalsm Aug 15, 2022
6c7ac12
Update src/content/developers/docs/nodes-and-clients/index.md
minimalsm Aug 15, 2022
7381b25
Update src/content/developers/docs/nodes-and-clients/index.md
minimalsm Aug 15, 2022
3dd7ce5
Add JSON keys for breadcrumbs
minimalsm Aug 15, 2022
bebc7b9
Fix conflicts
minimalsm Aug 15, 2022
27ac956
Update src/content/developers/docs/nodes-and-clients/run-a-node/index.md
minimalsm Aug 15, 2022
8160df0
Update src/content/developers/docs/nodes-and-clients/run-a-node/index.md
minimalsm Aug 15, 2022
eb1f36f
Update src/content/developers/docs/nodes-and-clients/run-a-node/index.md
minimalsm Aug 15, 2022
ec1a81c
Update src/content/developers/docs/nodes-and-clients/run-a-node/index.md
minimalsm Aug 15, 2022
ae5afc3
Update src/content/developers/docs/nodes-and-clients/run-a-node/index.md
minimalsm Aug 15, 2022
140c182
Merge pull request #7289 from ethereum/translation-program-subpages
corwintines Aug 15, 2022
4109cba
Merge pull request #7133 from taxmeifyoucan/clients-merge-update
corwintines Aug 15, 2022
b660c59
v5.1.0
corwintines Aug 15, 2022
f47768e
Merge pull request #7449 from ethereum/v5-1-0
corwintines Aug 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -8395,6 +8395,53 @@
"contributions": [
"doc"
]
},
{
"login": "hughcrt",
"name": "Hugh",
"avatar_url": "https://avatars.githubusercontent.com/u/24587702?v=4",
"profile": "http://hugh.sh",
"contributions": [
"doc"
]
},
{
"login": "z3zzz",
"name": "Kim Kwangtae",
"avatar_url": "https://avatars.githubusercontent.com/u/91174156?v=4",
"profile": "https://github.com/z3zzz",
"contributions": [
"content"
]
},
{
"login": "tobi4021",
"name": "tobi4021",
"avatar_url": "https://avatars.githubusercontent.com/u/84390698?v=4",
"profile": "https://github.com/tobi4021",
"contributions": [
"doc"
]
},
{
"login": "lonelyotter",
"name": "Haochen Song",
"avatar_url": "https://avatars.githubusercontent.com/u/57280827?v=4",
"profile": "https://github.com/lonelyotter",
"contributions": [
"doc",
"translation"
]
},
{
"login": "opensourcex123",
"name": "N Fx",
"avatar_url": "https://avatars.githubusercontent.com/u/73230562?v=4",
"profile": "https://github.com/opensourcex123",
"contributions": [
"doc",
"translation"
]
}
],
"contributorsPerLine": 7,
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,13 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://pandapip1.com/"><img src="https://avatars.githubusercontent.com/u/45835846?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Pandapip1</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=Pandapip1" title="Documentation">📖</a></td>
<td align="center"><a href="http://aldizh.github.io/"><img src="https://avatars.githubusercontent.com/u/2282120?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Aldi Zhupani</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3AAldizh" title="Bug reports">🐛</a> <a href="https://github.com/ethereum/ethereum-org-website/commits?author=Aldizh" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/linhuatan"><img src="https://avatars.githubusercontent.com/u/94831627?v=4?s=100" width="100px;" alt=""/><br /><sub><b>linhuatan</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=linhuatan" title="Documentation">📖</a></td>
<td align="center"><a href="http://hugh.sh"><img src="https://avatars.githubusercontent.com/u/24587702?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hugh</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=hughcrt" title="Documentation">📖</a></td>
<td align="center"><a href="https://github.com/z3zzz"><img src="https://avatars.githubusercontent.com/u/91174156?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kim Kwangtae</b></sub></a><br /><a href="#content-z3zzz" title="Content">🖋</a></td>
<td align="center"><a href="https://github.com/tobi4021"><img src="https://avatars.githubusercontent.com/u/84390698?v=4?s=100" width="100px;" alt=""/><br /><sub><b>tobi4021</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=tobi4021" title="Documentation">📖</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/lonelyotter"><img src="https://avatars.githubusercontent.com/u/57280827?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Haochen Song</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=lonelyotter" title="Documentation">📖</a> <a href="#translation-lonelyotter" title="Translation">🌍</a></td>
<td align="center"><a href="https://github.com/opensourcex123"><img src="https://avatars.githubusercontent.com/u/73230562?v=4?s=100" width="100px;" alt=""/><br /><sub><b>N Fx</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=opensourcex123" title="Documentation">📖</a> <a href="#translation-opensourcex123" title="Translation">🌍</a></td>
</tr>
</table>

Expand Down
60 changes: 60 additions & 0 deletions docs/chakra-migration-guide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Chakra migration guide

This is a reference for migrating our current `styled` components from `emotion` to [Chakra](https://chakra-ui.com/) components.

This is part of our [UI library implementation epic](https://github.com/ethereum/ethereum-org-website/issues/6374).

## Replace styled components with Chakra components

All `styled` components need to be removed and replaced with the corresponded Chakra component. [See the list of components](https://chakra-ui.com/docs/components).

## Override styles using style props

- You can see how to use the different style props here: [https://chakra-ui.com/docs/styled-system/style-props](https://chakra-ui.com/docs/styled-system/style-props#margin-and-padding)
- Chakra default values are documented here: [https://chakra-ui.com/docs/styled-system/theme](https://chakra-ui.com/docs/styled-system/theme)

```tsx
// before
const Paragraph = styled.p`
font-size: 1rem;
margin: 1rem;
`

// now
<Text fontSize="md" margin={4} />
```

## Theme colors

All the previous colors defined in the old theme `src/theme.ts` were ported into the new theme as well. Use the same color variables.

```tsx
// before
const Text = styled.p`
color: ${({ theme }) => theme.colors.primary};
background-color: ${({ theme }) => theme.colors.background};
`

// now
<Text color="primary" bg="background" />
```

<aside>
💡 In the **next iteration** we will refactor all the colors with the correct color from the new Design System
</aside>

## Update dependencies

- [Deprecated] `src/components/Icon` - use the [Chakra Icon](https://chakra-ui.com/docs/components/icon/usage) instead.

```tsx
import { Icon } from "@chakra-ui/react"
import { BsQuestionSquareFill } from "react-icons/bs"
;<Icon as={BsQuestionSquareFill} />
```

- [Deprecated]`src/components/SharedStyledComponents` - we are not using this anymore, use Chakra components instead.

## Do you have any other question?

Ping us in Discord, in the `#ui-library-migration` channel, or leave a comment here or in your opened PR, and we can help you out 💪
18 changes: 18 additions & 0 deletions docs/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ When we reach the moment where the entire codebase is in TS, we will enable `noI

This is just starting, any suggestion is always welcomed and appreciated.

## Declaring types for variables

When declaring types for variables, you should only declare a type when it isn't obvious and the type can't be inferred.

```
// Do not use
const someVar: string = 'string'

// Use
const someVar = 'string'
```

Do declare a type for an unassigned variable when a type can not be inferred.

```
const someVar: string
```

## Migration guide & contribution opportunity 🎉

We'd love your help in migrating our codebase!
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereum-org-website",
"version": "5.0.0",
"version": "5.1.0",
"description": "Website of ethereum.org",
"main": "index.js",
"repository": "[email protected]:ethereum/ethereum-org-website.git",
Expand Down
31 changes: 30 additions & 1 deletion src/@chakra-ui/gatsby-plugin/foundations/colors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
export type Colors = typeof colors

const colors = {}
const colors = {
grey: {
100: "#f7f7f7",
300: "#d4d4d4",
500: "#646464",
700: "#222222",
900: "#141414",
},
blue: {
100: "#e8e8ff",
300: "#8d8dff",
500: "#1c1cff",
700: "#0b0b66",
},
orange: {
100: "#ffe3d3",
300: "#ffb991",
500: "#ff7324",
800: "#451900",
},
red: {
600: "#b80000",
},
green: {
500: "#109e62",
},
yellow: {
200: "#fff8df",
},
}

export default colors
47 changes: 47 additions & 0 deletions src/@chakra-ui/gatsby-plugin/semanticTokens.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import {
lightTheme as oldLightTheme,
darkTheme as oldDarkTheme,
} from "../../theme"

const oldLightThemeColors = oldLightTheme.colors
const oldDarkThemeColors = oldDarkTheme.colors

// define each of the old colors as a `semanticToken`:
// `name: { _light: lightColor, _dark: darkColor }`
const oldColors = Object.keys(oldLightThemeColors).reduce((colors, color) => {
const lightColor = oldLightThemeColors[color]
const darkColor = oldDarkThemeColors[color]

if (typeof lightColor !== "string" || typeof darkColor !== "string") {
return colors
}

return {
...colors,
[color]: { _light: lightColor, _dark: darkColor },
}
}, {})

const semanticTokens = {
colors: {
// define old colors from the old theme as semanticTokens to transition
// from emotion components to chakra
// TODO: remove these colors as we migrate away from them
...oldColors,

// Design System colors
primary: { _light: "blue.500", _dark: "orange.500" },
primaryDark: { _light: "blue.700", _dark: "orange.800" },
primaryHover: { _light: "blue.300", _dark: "orange.300" },
primaryLight: { _light: "blue.100", _dark: "orange.100" },
body: { _light: "grey.700", _dark: "grey.100" },
bodyLight: { _light: "grey.500", _dark: "grey.100" },
disabled: { _light: "grey.300", _dark: "grey.500" },
background: { _light: "white", _dark: "grey.700" },
success: "green.500",
error: "red.600",
attention: "yellow.200",
},
}

export default semanticTokens
3 changes: 3 additions & 0 deletions src/@chakra-ui/gatsby-plugin/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import styles from "./styles"
// Foundational style overrides
import foundations from "./foundations"

import semanticTokens from "./semanticTokens"

const config: ThemeConfig = {
cssVarPrefix: "eth",
initialColorMode: "light",
Expand All @@ -20,6 +22,7 @@ const theme: ThemeOverride = {
config,
styles,
...foundations,
semanticTokens,
}

export default extendTheme(theme)
2 changes: 1 addition & 1 deletion src/components/FindWallet/WalletFilterSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ const WalletFilterSidebar = ({
],
},
{
title: "Onboard / offboard",
title: "Buy crypto / Sell for fiat",
open: true,
items: [
{
Expand Down
17 changes: 9 additions & 8 deletions src/components/FindWallet/WalletPersonasSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,22 @@ const IconContainer = styled.div`
`

const StyledIcon = styled(Icon)<{ selected: boolean }>`
width: 1.3rem;
height: 1.3rem;
border-radius: 100%;
width: 1rem;
height: 1rem;
margin: 0 0.25rem;
fill: ${(props) =>
props.selected === true ? props.theme.colors.white : "rgba(0, 0, 0, 0)"};
props.selected === true ? props.theme.colors.primary : "rgba(0, 0, 0, 0)"};
background: ${(props) =>
props.selected === true
? props.theme.colors.primary
: props.theme.colors.priceCardBackground};
border-radius: 4px;
border: 1px solid
outline: 1.5px solid
${(props) =>
props.selected === true
? props.theme.colors.primary
: props.theme.colors.text};
outline-offset: 3px;
`

// Types
Expand Down Expand Up @@ -273,7 +274,7 @@ const filterLabels = {
icon: <BuyCrypto />,
},
withdraw_crypto: {
label: "Withdraw crypto",
label: "Sell for fiat",
icon: <WithdrawCrypto />,
},
multisig: {
Expand All @@ -289,7 +290,7 @@ const filterLabels = {
icon: <ERC20Support />,
},
eip_1559_support: {
label: "EIP-1559 support",
label: "Fee optimization",
icon: <Eip1559 />,
},
}
Expand Down Expand Up @@ -533,7 +534,7 @@ const WalletPersonasSidebar = ({
aria-label={`${persona.title} filter`}
>
<StyledIcon
name="check"
name="circle"
selected={selectedPersona === idx}
size="2rem"
/>
Expand Down
10 changes: 5 additions & 5 deletions src/components/FindWallet/WalletTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ const featureDropdownItems = [
icon: <ERC20Support />,
},
{
label: "EIP-1559 support",
value: "EIP-1559 support",
label: "Fee optimization",
value: "Fee optimization",
filterKey: "eip_1559_support",
category: "feature",
icon: <Eip1559 />,
Expand All @@ -539,8 +539,8 @@ const featureDropdownItems = [
icon: <BuyCrypto />,
},
{
label: "Withdraw crypto",
value: "Withdraw crypto",
label: "Sell for fiat",
value: "Sell for fiat",
filterKey: "withdraw_crypto",
category: "trade_and_buy",
icon: <WithdrawCrypto />,
Expand Down Expand Up @@ -970,7 +970,7 @@ const WalletMoreInfo = ({ wallet, filters, idx }) => {
</Features>
</WalletMoreInfoCategory>
<WalletMoreInfoCategory>
<h4>Trade & buy</h4>
<h4>Buy crypto / Sell for fiat</h4>
<Features>
{orderedFeatureDropdownItems.map((feature) => {
if (feature.category === "trade_and_buy")
Expand Down
5 changes: 5 additions & 0 deletions src/components/MergeArticleList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ const reads: Array<CardListItem> = [
description: "Ethereum Foundation",
link: "https://github.com/ethereum/execution-apis/tree/main/src/engine",
},
{
title: "The Hitchhikers Guide To Ethereum",
description: "Delphi Digital",
link: "https://members.delphidigital.io/reports/the-hitchhikers-guide-to-ethereum",
},
]

export interface IProps {}
Expand Down
1 change: 1 addition & 0 deletions src/components/Nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const HomeLogoNavLink = styled(Link)`

const HomeLogo = styled(HomeIcon)`
width: 22px;
height: 35px;
opacity: 0.85;
&:hover {
opacity: 1;
Expand Down
8 changes: 8 additions & 0 deletions src/components/ShardChainsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ const ShardChainsList: React.FC<IProps> = () => {
),
link: "https://blog.ethereum.org/2020/03/27/sharding-consensus/",
},
{
title: translateMessageId(
"page-upgrade-article-title-hitchhikers-guide-to-ethereum",
intl
),
description: "Delphi Digital",
link: "https://members.delphidigital.io/reports/the-hitchhikers-guide-to-ethereum",
},
]

return (
Expand Down
Loading