Skip to content

Commit b28b3ed

Browse files
committed
Merge branch 'patch-fix-#8171' of https://github.com/ankitzm/ethereum-org-website into patch-fix-#8171
2 parents 2e72545 + 0f012a0 commit b28b3ed

File tree

47 files changed

+1573
-1229
lines changed

Some content is hidden

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

47 files changed

+1573
-1229
lines changed

.all-contributorsrc

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9162,6 +9162,69 @@
91629162
"contributions": [
91639163
"code"
91649164
]
9165+
},
9166+
{
9167+
"login": "KurtMerbeth",
9168+
"name": "KurtMerbeth",
9169+
"avatar_url": "https://avatars.githubusercontent.com/u/22886639?v=4",
9170+
"profile": "https://github.com/KurtMerbeth",
9171+
"contributions": [
9172+
"content"
9173+
]
9174+
},
9175+
{
9176+
"login": "EmperorRP",
9177+
"name": "Sai Leela Rahul Pujari",
9178+
"avatar_url": "https://avatars.githubusercontent.com/u/66853318?v=4",
9179+
"profile": "https://github.com/EmperorRP",
9180+
"contributions": [
9181+
"content"
9182+
]
9183+
},
9184+
{
9185+
"login": "SkyWarrior123",
9186+
"name": "SkyWarrior123",
9187+
"avatar_url": "https://avatars.githubusercontent.com/u/102062194?v=4",
9188+
"profile": "https://github.com/SkyWarrior123",
9189+
"contributions": [
9190+
"content"
9191+
]
9192+
},
9193+
{
9194+
"login": "yashovardhan",
9195+
"name": "Yashovardhan Agrawal",
9196+
"avatar_url": "https://avatars.githubusercontent.com/u/21066442?v=4",
9197+
"profile": "http://yashovardhan.dev",
9198+
"contributions": [
9199+
"data"
9200+
]
9201+
},
9202+
{
9203+
"login": "cheeky-gorilla",
9204+
"name": "cheeky-gorilla",
9205+
"avatar_url": "https://avatars.githubusercontent.com/u/76262359?v=4",
9206+
"profile": "https://github.com/cheeky-gorilla",
9207+
"contributions": [
9208+
"bug"
9209+
]
9210+
},
9211+
{
9212+
"login": "ThreeMuskets12",
9213+
"name": "Noah Page",
9214+
"avatar_url": "https://avatars.githubusercontent.com/u/23061574?v=4",
9215+
"profile": "https://github.com/ThreeMuskets12",
9216+
"contributions": [
9217+
"doc"
9218+
]
9219+
},
9220+
{
9221+
"login": "oceans404",
9222+
"name": "steph",
9223+
"avatar_url": "https://avatars.githubusercontent.com/u/91382964?v=4",
9224+
"profile": "https://github.com/oceans404",
9225+
"contributions": [
9226+
"code"
9227+
]
91659228
}
91669229
],
91679230
"contributorsPerLine": 7,

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,11 +1448,17 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
14481448
<td align="center"><a href="https://github.com/millecodex"><img src="https://avatars.githubusercontent.com/u/39792005?v=4?s=100" width="100px;" alt="Mille Codex"/><br /><sub><b>Mille Codex</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=millecodex" title="Documentation">📖</a></td>
14491449
<td align="center"><a href="https://github.com/Gift-Stack"><img src="https://avatars.githubusercontent.com/u/72243506?v=4?s=100" width="100px;" alt="Gift Opia"/><br /><sub><b>Gift Opia</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=Gift-Stack" title="Code">💻</a></td>
14501450
<td align="center"><a href="https://dhirajgagrai.dev/"><img src="https://avatars.githubusercontent.com/u/22605432?v=4?s=100" width="100px;" alt="Dhiraj Gagrai"/><br /><sub><b>Dhiraj Gagrai</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=dhirajgagrai" title="Code">💻</a></td>
1451+
<td align="center"><a href="https://github.com/KurtMerbeth"><img src="https://avatars.githubusercontent.com/u/22886639?v=4?s=100" width="100px;" alt="KurtMerbeth"/><br /><sub><b>KurtMerbeth</b></sub></a><br /><a href="#content-KurtMerbeth" title="Content">🖋</a></td>
1452+
<td align="center"><a href="https://github.com/EmperorRP"><img src="https://avatars.githubusercontent.com/u/66853318?v=4?s=100" width="100px;" alt="Sai Leela Rahul Pujari"/><br /><sub><b>Sai Leela Rahul Pujari</b></sub></a><br /><a href="#content-EmperorRP" title="Content">🖋</a></td>
1453+
<td align="center"><a href="https://github.com/SkyWarrior123"><img src="https://avatars.githubusercontent.com/u/102062194?v=4?s=100" width="100px;" alt="SkyWarrior123"/><br /><sub><b>SkyWarrior123</b></sub></a><br /><a href="#content-SkyWarrior123" title="Content">🖋</a></td>
1454+
<td align="center"><a href="http://yashovardhan.dev"><img src="https://avatars.githubusercontent.com/u/21066442?v=4?s=100" width="100px;" alt="Yashovardhan Agrawal"/><br /><sub><b>Yashovardhan Agrawal</b></sub></a><br /><a href="#data-yashovardhan" title="Data">🔣</a></td>
1455+
</tr>
1456+
<tr>
1457+
<td align="center"><a href="https://github.com/cheeky-gorilla"><img src="https://avatars.githubusercontent.com/u/76262359?v=4?s=100" width="100px;" alt="cheeky-gorilla"/><br /><sub><b>cheeky-gorilla</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/issues?q=author%3Acheeky-gorilla" title="Bug reports">🐛</a></td>
1458+
<td align="center"><a href="https://github.com/ThreeMuskets12"><img src="https://avatars.githubusercontent.com/u/23061574?v=4?s=100" width="100px;" alt="Noah Page"/><br /><sub><b>Noah Page</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=ThreeMuskets12" title="Documentation">📖</a></td>
1459+
<td align="center"><a href="https://github.com/oceans404"><img src="https://avatars.githubusercontent.com/u/91382964?v=4?s=100" width="100px;" alt="steph"/><br /><sub><b>steph</b></sub></a><br /><a href="https://github.com/ethereum/ethereum-org-website/commits?author=oceans404" title="Code">💻</a></td>
14511460
</tr>
14521461
</tbody>
1453-
<tfoot>
1454-
1455-
</tfoot>
14561462
</table>
14571463

14581464
<!-- markdownlint-restore -->

gatsby-browser.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ require("prismjs/components/prism-solidity")
3131

3232
// Prevents <Layout/> from unmounting on page transitions
3333
// https://www.gatsbyjs.com/docs/layout-components/#how-to-prevent-layout-components-from-unmounting
34+
// @ts-ignore: returning `null` is not accepted by the `GatsbyBrowser` type def.
3435
export const wrapPageElement: GatsbyBrowser<
3536
any,
3637
Context
@@ -60,8 +61,7 @@ export const wrapPageElement: GatsbyBrowser<
6061
window.localStorage.setItem("eth-org-language", detected)
6162
window.location.replace(newUrl)
6263

63-
// can't return null here, must return an element
64-
return <div />
64+
return null
6565
}
6666

6767
return <Layout {...props}>{element}</Layout>

gatsby-ssr.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,26 @@ import type { GatsbySSR } from "gatsby"
1111
import Layout from "./src/components/Layout"
1212

1313
import { Context } from "./src/types"
14+
import { IS_DEV } from "./src/utils/env"
15+
import { isLang } from "./src/utils/languages"
1416

1517
// Prevents <Layout/> from unmounting on page transitions
1618
// https://www.gatsbyjs.com/docs/layout-components/#how-to-prevent-layout-components-from-unmounting
19+
// @ts-ignore: returning `null` is not accepted by the `GatsbySSR` type def.
1720
export const wrapPageElement: GatsbySSR<any, Context>["wrapPageElement"] = ({
1821
element,
1922
props,
2023
}) => {
24+
const { location } = props
25+
const { pathname } = location
26+
27+
const [, pathLocale] = pathname.split("/")
28+
29+
// this is to avoid having hydration issues on dev mode. Check the logic
30+
// inside gatsby-browser.tsx
31+
if (IS_DEV && !isLang(pathLocale)) {
32+
return null
33+
}
34+
2135
return <Layout {...props}>{element}</Layout>
2236
}

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

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ const shadows = {
44
outline: "0 0 0 4px var(--eth-colors-primaryHover)",
55
table:
66
"0 14px 66px rgba(0,0,0,.07), 0 10px 17px rgba(0,0,0,.03), 0 4px 7px rgba(0,0,0,.05)",
7+
tableBox: {
8+
light:
9+
"0 14px 66px rgba(0,0,0,.07), 0 10px 17px rgba(0,0,0,.03), 0 4px 7px rgba(0,0,0,.05)",
10+
dark: "0 14px 66px hsla(0,0%,96.1%,.07), 0 10px 17px hsla(0,0%,96.1%,.03), 0 4px 7px hsla(0,0%,96.1%,.05)",
11+
},
12+
tableItemBox: {
13+
light: "0 1px 1px rgba(0, 0, 0, 0.1)",
14+
dark: "0 1px 1px hsla(0,0%,100%,.1)",
15+
},
716
}
817

918
export default shadows

0 commit comments

Comments
 (0)