Skip to content

Commit 1b23f8f

Browse files
committed
Merge branch 'dev' into vision-page
2 parents 9529544 + a7b456b commit 1b23f8f

File tree

4 files changed

+494
-32
lines changed

4 files changed

+494
-32
lines changed

.github/labeler.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,42 @@
11
"review needed :eyes:":
22
- src/**/*
3+
- public/*
34

45
"documentation :book:":
56
- README.md
67

78
"tooling :wrench:":
89
- .github/**/*
910
- src/scripts/*
10-
- netlify.toml
11+
- src/lib/*
12+
- src/hooks/*
1113

1214
"dependencies :package:":
1315
- package.json
1416
- yarn.lock
1517

1618
"internal :house:":
17-
- gatsby-browser.js
18-
- gatsby-config.js
19-
- gatsby-node.js
20-
- gatsby-ssr.js
2119
- .all-contributorsrc
20+
- i18n.config.json
21+
- next.config.js
22+
- next-i18next.config,js
23+
- next-sitemap.config.js
24+
- tsconfig.json
25+
- .nvmrc
26+
- .eslintignore
27+
- .eslintrc.json
28+
- .prettierignore
29+
- .prettierrc
30+
- netlify.toml
2231

2332
"translation :earth_africa:":
24-
- /content/translations/**/*
25-
- src/intl/*
26-
- src/utils/translations.js
33+
- src/content/translations/**/*
34+
- src/intl/**/*
35+
- src/lib/utils/translations.ts
2736

2837
"content :fountain_pen:":
2938
- src/pages/*
30-
- src/pages-conditional/*
31-
- /content/**/*
39+
- public/content/**/*
3240

3341
"event :date:":
3442
- src/data/community-events.json

src/components/PageHero.tsx

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import type { ReactNode } from "react"
2-
import {
3-
Box,
4-
Flex,
5-
Heading,
6-
Wrap,
7-
WrapItem,
8-
} from "@chakra-ui/react"
2+
import { Box, Center, Flex, Heading, Wrap, WrapItem } from "@chakra-ui/react"
93

104
import {
115
Button,
@@ -151,22 +145,24 @@ const PageHero = ({
151145
)}
152146
{children}
153147
</Box>
154-
<Image
155-
src={image}
148+
<Center
156149
flex="1 1 50%"
157-
alignSelf="center"
150+
maxWidth={{ base: "560px", lg: "624px" }}
158151
mt={{ base: 0, lg: 12 }}
159152
ms={{ base: 0, lg: 12 }}
160-
maxWidth={{ base: "560px", lg: "624px" }}
161-
sizes="100%"
162-
style={{
163-
width: "100%",
164-
height: "auto",
165-
objectFit: "contain",
166-
}}
167-
alt={alt}
168-
priority
169-
/>
153+
>
154+
<Image
155+
src={image}
156+
sizes="100%"
157+
style={{
158+
width: "100%",
159+
height: "auto",
160+
objectFit: "contain",
161+
}}
162+
alt={alt}
163+
priority
164+
/>
165+
</Center>
170166
</Flex>
171167
</Box>
172168
)

src/lib/utils/translations.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ const getRequiredNamespacesForPath = (path: string) => {
8383
}
8484

8585
if (path.startsWith("/developers/local-environment")) {
86-
requiredNamespaces = [...requiredNamespaces, "page-developers-local-environment"]
86+
requiredNamespaces = [
87+
...requiredNamespaces,
88+
"page-developers-local-environment",
89+
]
8790
}
8891

8992
if (path.startsWith("/developers/learning-tools")) {
@@ -111,7 +114,15 @@ const getRequiredNamespacesForPath = (path: string) => {
111114
}
112115

113116
if (path.startsWith("/roadmap/vision")) {
114-
requiredNamespaces = [...requiredNamespaces, "page-roadmap-vision", "page-upgrades-index"]
117+
requiredNamespaces = [
118+
...requiredNamespaces,
119+
"page-roadmap-vision",
120+
"page-upgrades-index",
121+
]
122+
}
123+
124+
if (path.startsWith("/gas")) {
125+
requiredNamespaces = [...requiredNamespaces, "page-gas", "page-community"]
115126
}
116127

117128
// Quizzes

0 commit comments

Comments
 (0)