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 v8.0.2 #12079

Merged
merged 209 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
365c27f
Update index.md
duckdegen Oct 24, 2023
4d5bac2
Update community-events.json
Eni-G Nov 21, 2023
eaedd87
Update community-events.json
duckdegen Nov 27, 2023
bc400d6
update FeedbackCard, implement useSurvey + matomo
wackerow Nov 30, 2023
d7ef2e9
update and implement FeedbackWidget component
wackerow Dec 1, 2023
cdac0d3
Update community-meetups.json
duckdegen Dec 1, 2023
06dea54
Merge branch 'dev' into feedback-widget
wackerow Dec 1, 2023
1dcc218
Update community-events.json
arredr2 Dec 9, 2023
be6952a
Update community-events.json
arredr2 Dec 9, 2023
1e50a7e
patch beacon chain launch date
wackerow Dec 9, 2023
8b14bb3
Update community-events.json
0xadri Dec 13, 2023
12569a8
Update community-events.json
xdaluca Dec 13, 2023
7f3212c
Merge branch 'dev' into feedback-widget
wackerow Dec 13, 2023
d3f8d41
Update community-events.json
develo-pera Dec 16, 2023
785d7b2
update: scaffold-eth product information
wackerow Dec 18, 2023
2d29c2b
update: scaffold-eth-2 name and image asset
wackerow Dec 18, 2023
c36aa80
update emoji component for country flags
hursittarcan Jan 3, 2024
386cffc
update emoji in meetupList component
hursittarcan Jan 3, 2024
06cca57
Merge branch 'dev' into feedback-widget
wackerow Jan 5, 2024
531e228
Spelling fixes
corwintines Jan 5, 2024
3163487
Update src/data/community-events.json
wackerow Jan 8, 2024
2be7723
fix: layout dir LTR for untranslated content
wackerow Jan 11, 2024
b34d6ba
fix: force locale dir for "common" ns components
wackerow Jan 11, 2024
0612956
fix: search modal direction-responsive css styling
wackerow Jan 11, 2024
42df63d
fix: direction-responsive absolute positioning
wackerow Jan 11, 2024
6a816cb
fix: use dir LTR for untranslated tutorials page
wackerow Jan 11, 2024
c743536
Merge branch 'dev' into dev
corwintines Jan 11, 2024
0849293
fix bad merge
corwintines Jan 11, 2024
74524fa
Merge branch 'dev' into nx-ltr-en-content
wackerow Jan 12, 2024
82e4094
fix: pass direction to Chakra theme provider
wackerow Jan 15, 2024
2557a20
refactor: use inset* style props
wackerow Jan 15, 2024
9e5cd80
Merge branch 'dev' into nx-ltr-en-content
wackerow Jan 15, 2024
832fb20
refactor: use inset* style props
wackerow Jan 15, 2024
e4d96a3
fix: use xl breakpoint
wackerow Jan 15, 2024
ece0110
revert changes in Emoji.tsx
hursittarcan Jan 17, 2024
d9ae553
fix lineHeight in MeetupList.tsx
hursittarcan Jan 17, 2024
8896552
Add and edit scripts for translation imports in NextJS repo
corwintines Jan 17, 2024
57e1a92
fix missing link text regex
corwintines Jan 17, 2024
790c4dd
fix: remove maxImageWidth from CalloutBanner
wackerow Jan 17, 2024
94242ce
fix: use Translation component for htmr string
wackerow Jan 17, 2024
2c6dade
Fix issues found in markdown-checker
corwintines Jan 17, 2024
ac059d7
fix: translated strings that reverted to English
wackerow Jan 17, 2024
aa09c70
feat: add solo-staking quiz
wackerow Jan 18, 2024
52ed9db
feat: add scaling quiz
wackerow Jan 18, 2024
d048d70
feat: add run-a-node quiz
wackerow Jan 18, 2024
9bc2328
Update src/scripts/crowdin-import.ts
corwintines Jan 18, 2024
c4ee309
Update src/scripts/crowdin-import.ts
corwintines Jan 18, 2024
f810173
Merge pull request #11862 from hursittarcan/dev
corwintines Jan 18, 2024
7bda9f9
Merge pull request #11956 from ethereum/translationImportScript
wackerow Jan 18, 2024
c77f3d0
Merge branch 'dev' into mardownCheckerFixes
wackerow Jan 18, 2024
8369921
Merge pull request #11959 from ethereum/mardownCheckerFixes
wackerow Jan 18, 2024
48e9776
chore: update `web3_sha3` parameter
leovct Jan 18, 2024
9f6c4d4
Merge pull request #11966 from ethereum/staging
corwintines Jan 18, 2024
f97292d
January 2 Arabic (Essential pages)
corwintines Jan 18, 2024
c99db37
Azerbaijani import (Exploring, Use Ethereum)
corwintines Jan 18, 2024
c546537
Chinese simplified import (Exploring, Learn pages, Roadmap, Community)
corwintines Jan 18, 2024
ec85ca6
Chinese traditional import (homepage, Community, Foundational docs, S…
corwintines Jan 18, 2024
c5eba98
Croatian import (Homepage, Essential pages)
corwintines Jan 18, 2024
415a8b5
Czech import (Homepage, Essential pages)
corwintines Jan 18, 2024
e46b329
Farsi import (Roadmap, Community, Foundational docs)
corwintines Jan 18, 2024
bf3e425
French imports (Homepage, Essential pages, Explore, Learn pages, Road…
corwintines Jan 18, 2024
01134a9
Greek import (Staking)
corwintines Jan 18, 2024
653758e
refactor: DocsNav with RTL updates
wackerow Jan 18, 2024
e545436
Hungarian import (Homepage, Essential pages, Explore, Use Ethereum, U…
corwintines Jan 18, 2024
40d9d1a
chore: remove unnecessary props
wackerow Jan 18, 2024
77385cd
chore: commit base64 image placeholders
wackerow Jan 18, 2024
55383d6
Spanish import (Homepage, Essential pages, Explore, Use Ethereum, Use…
corwintines Jan 19, 2024
c3d5f72
Turkish import (Homepage, Explore, Learn page, Roadmap, Community, Tu…
corwintines Jan 19, 2024
5636b1b
Add ETHBerlin04
ligi Jan 19, 2024
251fa8c
Merge branch 'dev' into scaffold-eth
wackerow Jan 19, 2024
22ee0d9
fix: i18n namespace
wackerow Jan 19, 2024
8e9a590
fetch file history from the old content directoy and the new content …
pettinarip Jan 19, 2024
0fc257c
fix: handling saved results in local storage
wackerow Jan 19, 2024
9a8fbdd
Fix typo (Brushbot => Flashbot)
visvirial Jan 19, 2024
0d9e0fb
remove subdomain which will soon be deprecated
duckdegen Jan 20, 2024
e5babab
remove rotterdam meetup from list
duckdegen Jan 20, 2024
8544dde
refactor: useRtlFlip to return isRtl and direction
wackerow Jan 20, 2024
c198a0d
fix: rtl handling for Slider component
wackerow Jan 20, 2024
2cbc2e5
fix: rtl quiz icon and text positioning
wackerow Jan 21, 2024
20c7296
Update Crowdin contributors
actions-user Jan 21, 2024
8094312
add font files to fetch them locally at build time
pettinarip Jan 22, 2024
4daba77
add type for commits
pettinarip Jan 22, 2024
47b4b0b
fix nesting issue
corwintines Jan 22, 2024
d418114
fix nesting issue
corwintines Jan 22, 2024
133f924
fix nesting issue
corwintines Jan 22, 2024
e889953
fix nesting issues and image issues
corwintines Jan 22, 2024
c6dfc6a
fix nesting issues
corwintines Jan 22, 2024
85b229d
fix nesting issues
corwintines Jan 23, 2024
3053a3e
fix nesting issues
corwintines Jan 23, 2024
0222a13
refactor community-events.json into typescript, fix load button bug, …
corwintines Jan 23, 2024
c413d5d
Merge pull request #11993 from visvirial/patch-2
corwintines Jan 23, 2024
157fe99
Merge branch 'dev' into pr/duckdegen/11751
corwintines Jan 23, 2024
24e48ae
Merge pull request #11751 from duckdegen/patch-3
corwintines Jan 23, 2024
85c4250
Merge branch 'dev' into pr/duckdegen/11728
corwintines Jan 23, 2024
c0e09c7
Merge pull request #11728 from duckdegen/patch-2
corwintines Jan 23, 2024
e728076
Merge branch 'dev' into pr/duckdegen/11497
corwintines Jan 23, 2024
25acd77
Merge pull request #11497 from duckdegen/patch-1
corwintines Jan 23, 2024
e501ca8
docs: update README.md [skip ci]
allcontributors[bot] Jan 23, 2024
fa1893b
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jan 23, 2024
93d64c2
Merge pull request #12001 from ethereum/all-contributors/add-duckdegen
corwintines Jan 23, 2024
d042d91
fix:EthCatHerders broken discord link
Shiva-Sai-ssb Jan 23, 2024
b4106cd
Merge pull request #11905 from ethereum/nx-ltr-en-content
pettinarip Jan 23, 2024
512b1a9
Merge pull request #11990 from ethereum/fix-github-contributors
nhsz Jan 23, 2024
9530910
Merge pull request #11958 from ethereum/calloutbanner-style
pettinarip Jan 23, 2024
a7f3790
Merge pull request #12002 from Shiva-Sai-ssb/fix-1
corwintines Jan 23, 2024
57f11b8
fix typo: bacon chain
fjl Jan 23, 2024
c39c984
Merge pull request #12007 from fjl/bacon
corwintines Jan 23, 2024
f8fb8e5
Merge pull request #11996 from ethereum/automated-update-20240121001135
corwintines Jan 23, 2024
7dd710c
Merge branch 'dev' into rtl-embla-carousel
wackerow Jan 23, 2024
be0333a
Merge pull request #11995 from ethereum/rtl-embla-carousel
corwintines Jan 24, 2024
426bf5e
fix:Internal transaction term in glossary
Shiva-Sai-ssb Jan 24, 2024
f3e4511
style: hover color and rotation for search icon
wackerow Jan 24, 2024
089921f
Merge pull request #11988 from ligi/patch-4
corwintines Jan 24, 2024
ac64b40
Merge branch 'dev' into pr/develo-pera/11813
corwintines Jan 24, 2024
7742383
Merge pull request #11813 from develo-pera/patch-6
corwintines Jan 24, 2024
5c4208e
Merge branch 'dev' into pr/xdaluca/11801
corwintines Jan 24, 2024
dbfb089
Merge pull request #11801 from xdaluca/patch-1
corwintines Jan 24, 2024
02f1eb2
Merge branch 'dev' into pr/0xadri/11797
corwintines Jan 24, 2024
3b681f1
Merge pull request #11797 from 0xadri/patch-3
corwintines Jan 24, 2024
437a9fa
Merge branch 'dev' into pr/arredr2/11777
corwintines Jan 24, 2024
8546c0b
fix: add backwards compatibility for string values
wackerow Jan 24, 2024
75bad0d
Merge pull request #11777 from arredr2/patch-3
corwintines Jan 24, 2024
c7c65f5
Merge branch 'dev' into pr/Eni-G/11705
corwintines Jan 24, 2024
31af84c
fix year
corwintines Jan 24, 2024
28c0142
Merge pull request #11705 from Eni-G/patch-4
corwintines Jan 24, 2024
0813e43
refactor: rm intermediate variable
wackerow Jan 24, 2024
42927ce
Merge pull request #12009 from Shiva-Sai-ssb/fix-2
corwintines Jan 24, 2024
8d0f9bd
Merge branch 'dev' into placeholder-images
corwintines Jan 24, 2024
9794814
Merge pull request #11980 from ethereum/placeholder-images
corwintines Jan 24, 2024
86693e0
Merge pull request #11961 from leovct/patch-1
corwintines Jan 24, 2024
6ccccbd
Merge branch 'dev' into spelling-fixes
wackerow Jan 24, 2024
3d2da34
Merge pull request #11878 from ethereum/spelling-fixes
wackerow Jan 24, 2024
9293ee2
build: add .vscode folder to .gitignore
wackerow Jan 24, 2024
ab4bb31
Merge pull request #12013 from ethereum/gitignore-vscode
corwintines Jan 24, 2024
48d26df
Merge pull request #11967 from ethereum/arabicImport
wackerow Jan 24, 2024
0454ec8
fix: spelling mistake
wackerow Jan 24, 2024
8233f37
Merge pull request #11968 from ethereum/azerbaijaniImport
wackerow Jan 24, 2024
ce253c9
Merge branch 'dev' into add2024Events
corwintines Jan 24, 2024
cf82961
change requests
corwintines Jan 24, 2024
9b04a32
lint fix
corwintines Jan 24, 2024
dfffb3a
fix: i18n string prefixes, discord link
wackerow Jan 24, 2024
193d829
Merge pull request #11970 from ethereum/chineseSimplifiedImport
wackerow Jan 24, 2024
54ae23e
chore: linting
wackerow Jan 24, 2024
965f6ff
Merge branch 'dev' into scaffold-eth
corwintines Jan 24, 2024
315ca84
chore: use named discord link
wackerow Jan 24, 2024
87fbf03
Merge pull request #11971 from ethereum/chineseTraditionalImport
wackerow Jan 24, 2024
9a958b6
Merge pull request #11816 from ethereum/scaffold-eth
corwintines Jan 24, 2024
27535eb
Merge pull request #11778 from ethereum/quiz-typo-fix
corwintines Jan 24, 2024
31323cb
Merge pull request #12010 from ethereum/search-icon
corwintines Jan 25, 2024
e692946
chore: fix links and i18n prefixes
wackerow Jan 25, 2024
a179d99
change requests
corwintines Jan 25, 2024
52da917
import cleanup
corwintines Jan 25, 2024
bcd8c14
refactor: use useTranslationf for strings
wackerow Jan 25, 2024
4cd8269
revert: namespace removal, use of .featured class
wackerow Jan 25, 2024
fa6b431
Merge pull request #11974 from ethereum/farsiImport
wackerow Jan 25, 2024
d8a1059
fix: discord link
wackerow Jan 25, 2024
4ca8031
revert: cs/page-gas.json
wackerow Jan 25, 2024
197a38a
fix: discord link
wackerow Jan 25, 2024
85b4fba
revert: hr/page-gas.json
wackerow Jan 25, 2024
332b8ef
chore: rm console log
wackerow Jan 25, 2024
d4290f9
Merge pull request #12000 from ethereum/add2024Events
corwintines Jan 25, 2024
536794f
Apply suggestions from code review
minimalsm Jan 25, 2024
cdc205f
Merge pull request #11986 from ethereum/spanishImport
minimalsm Jan 25, 2024
1e5ab5d
Merge pull request #11978 from ethereum/hungarianImport
minimalsm Jan 25, 2024
402e832
Merge pull request #11975 from ethereum/frenchImport
minimalsm Jan 25, 2024
b0981b4
Merge pull request #11972 from ethereum/croatianImport
minimalsm Jan 25, 2024
9869d06
Merge pull request #11973 from ethereum/czechImport
minimalsm Jan 25, 2024
a291f68
download and set Inter variable font from google
pettinarip Jan 25, 2024
8ff2a93
Merge pull request #11987 from ethereum/turkishImport
minimalsm Jan 25, 2024
d75fd8c
Merge pull request #11998 from ethereum/selfhost-fonts
wackerow Jan 25, 2024
d1ed20b
add chromatic back to the project
pettinarip Jan 25, 2024
1787e6d
Merge pull request #11977 from ethereum/greekImport
minimalsm Jan 25, 2024
1f3741c
fix: link to Vitalik blog to use .eth.limo
wackerow Jan 25, 2024
6b65e5d
Merge pull request #12026 from ethereum/vitalik-eth-limo
nhsz Jan 25, 2024
f85b2dc
fix: remove unused property causing build breaks
wackerow Jan 25, 2024
b8639fc
Merge pull request #12028 from ethereum/patch-events-property
corwintines Jan 25, 2024
a19b5bd
Merge pull request #12025 from ethereum/chromatic
corwintines Jan 25, 2024
c9f9419
fix(contributors): create shape for allTimeData json type
TylerAPfledderer Jan 28, 2024
b99dc4f
Update Crowdin contributors
actions-user Jan 28, 2024
18e2a52
Change yarn start to yarn dev and localhost:8000 to localhost:3000 in…
HiroyukiNaito Jan 28, 2024
d94a9f6
Merge pull request #12040 from HiroyukiNaito/first_challenge
corwintines Jan 29, 2024
35ebc05
Merge pull request #11960 from ethereum/quizzes
pettinarip Jan 29, 2024
c6277e7
chore: remove unused defi pulse key
nhsz Jan 29, 2024
3204fc8
chore: upadte docs/stack.md
nhsz Jan 29, 2024
0f69c2a
chore: upadte docs/best-practices.md
nhsz Jan 29, 2024
d54b44f
chore: upadte docs/ds-implementation.md
nhsz Jan 29, 2024
0ac3c42
chore: upadte docs/event-tracking.md
nhsz Jan 29, 2024
8a66b7e
chore: remove non-required docs/schema.md
nhsz Jan 29, 2024
e73c210
chore: update docs/typescript.md
nhsz Jan 29, 2024
a88f170
chore: update docs/typescript.md
nhsz Jan 29, 2024
25a812c
remove @chakra-ui/next-js and implement custom logic to fix issue wit…
pettinarip Jan 29, 2024
17d180d
fix: semanticTokens.ts path
nhsz Jan 29, 2024
2e9cbfe
Merge pull request #12048 from ethereum/update-next-docs
nhsz Jan 29, 2024
322ba54
Merge pull request #12037 from TylerAPfledderer/fix/contributors-allT…
pettinarip Jan 29, 2024
9c48ba8
Merge pull request #12038 from ethereum/automated-update-20240128001046
corwintines Jan 29, 2024
9bd09f0
Bug Bounty text clarification
fredriksvantes Jan 30, 2024
fcc8a94
remove GITHUB_TOKEN_READ_ONLY var and use NEXT_PUBLIC_GITHUB_TOKEN_RE…
pettinarip Jan 30, 2024
a33e216
Merge pull request #12064 from ethereum/fredriksvantes-patch-1
corwintines Jan 31, 2024
8fb6e9d
2024 Q1 roadmap link update
tmsko Jan 31, 2024
513c685
Merge pull request #12066 from ethereum/unify-gh-tokens
corwintines Jan 31, 2024
40e6594
fix: it merge date
wackerow Jan 31, 2024
3f4d92b
Merge pull request #12073 from tmsko/#11390
nhsz Jan 31, 2024
08b181e
Merge pull request #12075 from ethereum/it-merge-date
nhsz Jan 31, 2024
120d0ba
remove unsed util function
pettinarip Jan 31, 2024
9eac3f5
Merge pull request #12074 from ethereum/dev
wackerow Jan 31, 2024
722ff36
Merge pull request #12050 from ethereum/link-i18n
corwintines Jan 31, 2024
76e32ee
Merge pull request #12076 from ethereum/dev
corwintines Jan 31, 2024
445b8ec
Merge pull request #11906 from ethereum/feedback-widget
corwintines Jan 31, 2024
cdaa214
Merge pull request #12078 from ethereum/dev
corwintines Jan 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -10956,6 +10956,15 @@
"contributions": [
"content"
]
},
{
"login": "duckdegen",
"name": "duckdegen",
"avatar_url": "https://avatars.githubusercontent.com/u/98649644?v=4",
"profile": "https://github.com/duckdegen",
"contributions": [
"content"
]
}
],
"contributorsPerLine": 7,
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ robots.txt

# .crowdin folder used as temp forlder for crowdin-import script
.crowdin

# vscode workplace configuration
.vscode
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ git checkout -b new_branch_name
2. Start developing!

```sh
yarn start
yarn dev
```

- Open this directory in your favorite text editor / IDE, and see your changes live by visiting `localhost:8000` from your browser
- Open this directory in your favorite text editor / IDE, and see your changes live by visiting `localhost:3000` from your browser
- Pro Tip:
- Explore scripts within `package.json` for more build options
- Get **faster** local builds by building only one language. E.g. in your `.env` file, set `BUILD_LOCALES=en` to build the content only in English
Expand Down Expand Up @@ -1710,6 +1710,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center" valign="top" width="14.28%"><a href="http://benedikt-wagner.dev"><img src="https://avatars.githubusercontent.com/u/113296072?v=4?s=100" width="100px;" alt="Benedikt Wagner"/><br /><sub><b>Benedikt Wagner</b></sub></a><br /><a href="#content-b-wagn" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/tdahar"><img src="https://avatars.githubusercontent.com/u/18716811?v=4?s=100" width="100px;" alt="Tarun Mohandas Daryanani"/><br /><sub><b>Tarun Mohandas Daryanani</b></sub></a><br /><a href="#content-tdahar" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Crosstons"><img src="https://avatars.githubusercontent.com/u/110349596?v=4?s=100" width="100px;" alt="Shubh"/><br /><sub><b>Shubh</b></sub></a><br /><a href="#content-Crosstons" title="Content">🖋</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/duckdegen"><img src="https://avatars.githubusercontent.com/u/98649644?v=4?s=100" width="100px;" alt="duckdegen"/><br /><sub><b>duckdegen</b></sub></a><br /><a href="#content-duckdegen" title="Content">🖋</a></td>
</tr>
</tbody>
</table>
Expand Down
12 changes: 1 addition & 11 deletions docs/api-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ We recommend setting this up when running the project locally, as we use the Git

```sh
# .env Example:
GATSBY_GITHUB_TOKEN_READ_ONLY=48f84de812090000demo00000000697cf6e6a059
NEXT_PUBLIC_GITHUB_TOKEN_READ_ONLY=48f84de812090000demo00000000697cf6e6a059
```

2. Add Etherscan API token (free)
Expand All @@ -25,13 +25,3 @@ GATSBY_GITHUB_TOKEN_READ_ONLY=48f84de812090000demo00000000697cf6e6a059
# .env Example:
ETHERSCAN_API_KEY=K6NUTARFJZJCIXHF1F1E1YGJZ8RQ29BE4U
```

3. Add DeFiPulse API token (free)

> - [Follow this guide](https://docs.defipulse.com/quick-start-guide) to create an account and get your DeFiPulse API token
> - Copy & paste your Active API Key from DeFiPulse into `.env`

```sh
# .env Example:
DEFI_PULSE_API_KEY=4953aaf7966dad9c129397e197a0630ed0594f66962dd5fb058972b250da
```
67 changes: 7 additions & 60 deletions docs/best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Markdown will be translated as whole pages of content, so no specific action is

- _tl;dr Each individual JSON entry should be a complete phrase by itself_

- This is done using the `Translation` component. However there is an alternative method for regular JS: using the `t` function from `gatsby-plugin-react-i18next`
- This is done using the `Translation` component. However there is an alternative method for regular JS: using the `t` function from `next-i18next`

- **Method one: `<Translation />` component (preferred if only needed in JSX)**

Expand All @@ -66,7 +66,7 @@ Markdown will be translated as whole pages of content, so no specific action is
- **Method two: `t()`**

```tsx
import { useTranslation } from "gatsby-plugin-react-i18next"
import { useTranslation } from "next-i18next"

// Utilize anywhere in JS using
const { t } = useTranslation()
Expand Down Expand Up @@ -104,7 +104,7 @@ export default ComponentName

We use [Chakra UI](https://chakra-ui.com/).

`src/@chakra-ui/gatsby-plugin/theme.ts` - Holds all the theme configuration. This is where you can find the colors, fonts, component themes, variants, etc.
`src/@chakra-ui/theme.ts` - Holds all the theme configuration. This is where you can find the colors, fonts, component themes, variants, etc.

- Wrappers or layout divs

Expand Down Expand Up @@ -149,7 +149,7 @@ Use [the Chakra default breakpoints](https://chakra-ui.com/docs/styled-system/th
<Text color="primary.base" bg="background.base" />
```

> Note the dotted notation. In Chakra, the values are referred to as "semantic tokens" and the new theme applies a nested structure of like tokens for better organization. See [semanticTokens.ts](../src/%40chakra-ui/gatsby-plugin/semanticTokens.ts)
> Note the dotted notation. In Chakra, the values are referred to as "semantic tokens" and the new theme applies a nested structure of like tokens for better organization. See [semanticTokens.ts](../src/@chakra-ui/semanticTokens.ts)

> Note 2: all the previous colors defined in the old theme `src/theme.ts` were
> ported into the new theme for compatibility reasons. Those colors will
Expand Down Expand Up @@ -177,63 +177,10 @@ import { BsQuestionSquareFill } from "react-icons/bs"
;<Icon as={BsQuestionSquareFill} />
```

## Image loading and API calls using GraphQL
## Using custom `Image` component

- [Gatsby + GraphQL](https://www.gatsbyjs.com/docs/graphql/) used for loading of images and preferred for API calls (in lieu of REST, if possible/practical). Utilizes static page queries that run at build time, not at run time, optimizing performance.
- Image loading example:
[Next Image](https://nextjs.org/docs/pages/api-reference/components/image) is the component of choice to handle responsive images. However, we use a custom version of this component that is properly optimized with Chakra. This way we can use style props from Chakra but still be able to forward common or Next Image-specific props to the component for correct usage and rendering.

```tsx
import { graphql } from "gatsby"

export const query = graphql`
query {
hero: file(relativePath: { eq: "developers-eth-blocks.png" }) {
childImageSharp {
gatsbyImageData(
width: 800
layout: FIXED
placeholder: BLURRED
quality: 100
)
}
}
}
`
// These query results get passed as an object `props.data` to your component
```

- API call example:

```tsx
import { graphql } from "gatsby"

export const repoInfo = graphql`
fragment repoInfo on GitHub_Repository {
stargazerCount
languages(orderBy: { field: SIZE, direction: DESC }, first: 2) {
nodes {
name
}
}
url
}
`
export const query = graphql`
query {
hardhatGitHub: github {
repository(owner: "nomiclabs", name: "hardhat") {
...repoInfo
}
}
}
`
// These query results get passed as an object `props.data` to your component
```

### Using custom `GatsbyImage`

[GatsbyImage](https://www.gatsbyjs.com/plugins/gatsby-plugin-image/) is the component of choice to handle responsive images processed through graphql. However, we use a custom version of this component that is properly optimized with Chakra. This way we can use style props from Chakra but still be able to forward common or GatsbyImage-specific props to the Gatsby component for correct usage and rendering.

```tsx
import GatsbyImage from "./components/GatsbyImage"
import { Image } from "@/components/Image"
```
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/ds-implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is part of our [Design System implementation epic](https://github.com/ethe
## Basics

- Use Chakra tokens for spacing, sizes, and breakpoints. [Chakra theme docs](https://chakra-ui.com/docs/styled-system/theme)
- For colors use the semantic tokens defined in [this file](https://github.com/ethereum/ethereum-org-website/blob/dev/src/@chakra-ui/gatsby-plugin/semanticTokens.ts). These tokens will match the color variables used in the DS Figma file
- For colors use the semantic tokens defined in [this file](https://github.com/ethereum/ethereum-org-website/blob/dev/src/%40chakra-ui/semanticTokens.ts). These tokens will match the color variables used in the DS Figma file
- Use as many Chakra components and utils as possible
- Read the [Best Practices doc](https://github.com/ethereum/ethereum-org-website/blob/dev/docs/best-practices.md) for more examples and info

Expand All @@ -29,7 +29,7 @@ If you are implementing:

- A base component (a component that already exists in the [Chakra components list](https://chakra-ui.com/docs/components/), for example, the button or inputs)
- Try to avoid creating a new component file `/ComponentA/index.tsx` if there is no additional or custom logic we need to add to them
- Create a theme file to override the default Chakra styles with the DS specs. See examples under the [Chakra theme folder](https://github.com/ethereum/ethereum-org-website/blob/dev/src/@chakra-ui/gatsby-plugin/components/)
- Create a theme file to override the default Chakra styles with the DS specs. See examples under the [Chakra theme folder](https://github.com/ethereum/ethereum-org-website/tree/dev/src/%40chakra-ui/components)
- Create a `.stories.tsx` file under `src/components/BaseStories`
- A new custom component (e.g. the PageHero)
- Use as many Chakra components as possible
Expand Down
2 changes: 1 addition & 1 deletion docs/event-tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Event tracking is a great way to validate our design decisions and assumptions.

ethereum.org uses Matomo, an open-source alternative to Google Analytics, allowing us to protect user privacy by not sharing any analytics with third parties.

We implemented Matomo using the [JavaScript tracking client](https://developer.matomo.org/guides/tracking-javascript-guide) via the [`gatsby-matomo-plugin`](https://github.com/kremalicious/gatsby-plugin-matomo) Gatsby plugin.
We implemented Matomo using the [JavaScript tracking client](https://developer.matomo.org/guides/tracking-javascript-guide) via the [`@socialgouv/matomo-next`](https://github.com/SocialGouv/matomo-next) package.

## What to measure?

Expand Down
38 changes: 0 additions & 38 deletions docs/next-docs/stack.md

This file was deleted.

12 changes: 0 additions & 12 deletions docs/schema.md

This file was deleted.

Loading
Loading