Skip to content

Commit d831246

Browse files
committed
Merge branch 'dev' into feat/shadcn-input
2 parents 56a3865 + dd49640 commit d831246

23 files changed

+711
-252
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12353,6 +12353,15 @@
1235312353
"contributions": [
1235412354
"tool"
1235512355
]
12356+
},
12357+
{
12358+
"login": "JoshDavisLight",
12359+
"name": "Josh Davis",
12360+
"avatar_url": "https://avatars.githubusercontent.com/u/82784104?v=4",
12361+
"profile": "https://github.com/JoshDavisLight",
12362+
"contributions": [
12363+
"content"
12364+
]
1235612365
}
1235712366
],
1235812367
"contributorsPerLine": 7,

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,6 +1888,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
18881888
<tr>
18891889
<td align="center" valign="top" width="14.28%"><a href="https://github.com/krishchvn"><img src="https://avatars.githubusercontent.com/u/58606754?v=4?s=100" width="100px;" alt="Krishnakumar Chavan"/><br /><sub><b>Krishnakumar Chavan</b></sub></a><br /><a href="#content-krishchvn" title="Content">🖋</a></td>
18901890
<td align="center" valign="top" width="14.28%"><a href="https://github.com/0xV4L3NT1N3"><img src="https://avatars.githubusercontent.com/u/33112835?v=4?s=100" width="100px;" alt="0xV4L3NT1N3"/><br /><sub><b>0xV4L3NT1N3</b></sub></a><br /><a href="#tool-0xV4L3NT1N3" title="Tools">🔧</a></td>
1891+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/JoshDavisLight"><img src="https://avatars.githubusercontent.com/u/82784104?v=4?s=100" width="100px;" alt="Josh Davis"/><br /><sub><b>Josh Davis</b></sub></a><br /><a href="#content-JoshDavisLight" title="Content">🖋</a></td>
18911892
</tr>
18921893
</tbody>
18931894
</table>

chromatic.config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"projectId": "Project:6629cd26b1440f2cc20b94c0",
33
"zip": true,
4-
"buildScriptName": "build-storybook:chromatic"
4+
"buildScriptName": "build-storybook:chromatic",
5+
"onlyChanged": true
56
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@
3535
"@emotion/styled": "^11.11.0",
3636
"@hookform/resolvers": "^3.8.0",
3737
"@radix-ui/react-accordion": "^1.2.0",
38+
"@radix-ui/react-checkbox": "^1.1.1",
3839
"@radix-ui/react-navigation-menu": "^1.2.0",
3940
"@radix-ui/react-popover": "^1.1.1",
4041
"@radix-ui/react-slot": "^1.1.0",
42+
"@radix-ui/react-visually-hidden": "^1.1.0",
4143
"@socialgouv/matomo-next": "^1.8.0",
4244
"chart.js": "^4.4.2",
4345
"chartjs-plugin-datalabels": "^2.2.0",

public/content/community/get-involved/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ Start by reading about the ethereum.org mission and values in our [code of condu
1515
- Learn about and try Ethereum at [ethereum.org/developers/](/developers/)
1616
- Attend an [ETHGlobal](http://ethglobal.co/) hackathon near you!
1717
- Check out [projects related to your area of expertise or programming language of choice](/developers/docs/programming-languages/)
18-
- Watch or participate in the [Core Dev calls](https://www.youtube.com/@EthereumProtocol)
18+
- Watch or participate in the [Consensus and Execution Layer calls](https://www.youtube.com/@EthereumProtocol/streams)
1919
- [Ecosystem Support Program's wishlist](https://esp.ethereum.foundation/wishlist/) - tooling, documentation, and infrastructure areas where the Ethereum Ecosystem Support Program is actively seeking grant applications
2020
- [Web3Bridge](https://www.web3bridge.com/) - join the aspiring web3 community in their initiative to identify, train, and support hundreds of developers and community members throughout Africa
21+
- Join the [Eth R&D Discord](https://discord.com/invite/VmG7Uxc)
2122
- Join the [Ethereum Cat Herders Discord](https://discord.com/invite/Nz6rtfJ8Cu)
2223

2324
## Researchers & Academics <Emoji text=":mag:" size={1} />‍ {#researchers-and-academics}
2425

2526
Do you have a background in mathematics, cryptography, or economics? You might be interested in some of the cutting-edge work being done within the Ethereum ecosystem:
2627

28+
- Join the [Eth R&D Discord](https://discord.com/invite/VmG7Uxc)
2729
- Write or review an Ethereum Improvement Proposal
2830
- Write an EIP
2931
1. Submit your idea on [Ethereum Magicians](https://ethereum-magicians.org)

public/content/community/support/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ Here are some popular examples:
7373
- [ethers.js](https://discord.gg/6jyGVDK6Jx)
7474
- [web3.js](https://discord.gg/GsABYQu4sC)
7575
- [Hardhat](https://discord.gg/xtrMGhmbfZ)
76-
- [Truffle](https://discord.gg/8uKcsccEYE)
7776
- [Alchemy](http://alchemy.com/discord)
7877
- [Tenderly](https://discord.gg/fBvDJYR)
7978

public/content/glossary/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ lang: en
292292

293293
<GlossaryDefinition term="message-call" />
294294

295+
<GlossaryDefinition term="mev" />
296+
295297
<GlossaryDefinition term="mining" />
296298

297299
<GlossaryDefinition term="miner" />

src/components/Footer.tsx

Lines changed: 41 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
import { useTranslation } from "next-i18next"
22
import { FaDiscord, FaGithub, FaTwitter } from "react-icons/fa"
33
import { IoChevronUpSharp } from "react-icons/io5"
4-
import {
5-
Box,
6-
Flex,
7-
Heading,
8-
Icon,
9-
List,
10-
ListItem,
11-
SimpleGrid,
12-
Text,
13-
} from "@chakra-ui/react"
144

155
import type { FooterLink, FooterLinkSection } from "@/lib/types"
166

17-
import { BaseLink } from "@/components/Link"
187
import Translation from "@/components/Translation"
198

9+
import { cn } from "@/lib/utils/cn"
2010
import { scrollIntoView } from "@/lib/utils/scrollIntoView"
2111

22-
import { Button } from "./Buttons"
12+
import { BaseLink } from "../../tailwind/Link"
13+
import { Button } from "../../tailwind/ui/buttons/Button"
14+
15+
import { List, ListItem } from "./ui/list"
2316

2417
const socialLinks = [
2518
{
@@ -306,132 +299,76 @@ const Footer = ({ lastDeployLocaleTimestamp }: FooterProps) => {
306299
},
307300
]
308301

309-
const hoverStyles = {
310-
textDecor: "none",
311-
color: "primary.base",
312-
_after: {
313-
color: "primary.base",
314-
},
315-
"& svg": {
316-
fill: "primary.base",
317-
},
318-
}
319-
320-
const linkProps = {
321-
isPartiallyActive: false,
322-
textDecor: "none",
323-
color: "body.medium",
324-
fontWeight: "normal",
325-
_hover: hoverStyles,
326-
sx: {
327-
"& svg": {
328-
fill: "body.medium",
329-
},
330-
},
331-
}
302+
const footerLinkClassName =
303+
"text-body-medium no-underline hover:text-primary hover:after:text-primary"
332304

333305
return (
334-
<Box as="footer" py="4" px="8">
335-
<Flex
336-
justify={{ base: "center", md: "space-between" }}
337-
alignItems="center"
338-
flexWrap="wrap"
339-
gap={8}
340-
pt={4}
341-
pb={4}
342-
borderTop={"1px solid"}
343-
borderColor={"body.light"}
344-
>
345-
<Text fontSize={"sm"} fontStyle={"italic"} color={"body.medium"}>
306+
<footer className="px-8 py-4">
307+
<div className="flex flex-wrap items-center justify-center gap-8 border-t border-body-light py-4 md:justify-between">
308+
<p className="text-sm italic text-body-medium">
346309
<Translation id="website-last-updated" />: {lastDeployLocaleTimestamp}
347-
</Text>
310+
</p>
348311

349312
<Button
350-
leftIcon={<IoChevronUpSharp />}
351313
variant="outline"
352314
isSecondary
353315
onClick={() => scrollIntoView("__next")}
354316
>
355-
{t("go-to-top")}
317+
<IoChevronUpSharp /> Go to top
356318
</Button>
357-
</Flex>
319+
</div>
358320

359-
<SimpleGrid
360-
gap={4}
361-
justifyContent="space-between"
362-
templateColumns={{
363-
base: "auto",
364-
sm: "repeat(2, auto)",
365-
md: "repeat(3, auto)",
366-
xl: "repeat(6, auto)",
367-
}}
368-
>
321+
<div className="grid auto-cols-auto justify-between gap-4 sm:grid-cols-2 md:grid-cols-3 xl:grid-cols-5">
369322
{linkSections.map((section: FooterLinkSection, idx) => (
370-
<Box key={idx}>
371-
<Heading as="h3" fontSize="sm" lineHeight="base" my="1.14em">
323+
<div key={idx}>
324+
<h3 className="my-5 text-sm font-bold">
372325
<Translation id={section.title} />
373-
</Heading>
374-
<List fontSize="sm" lineHeight="base" fontWeight="normal" m="0">
326+
</h3>
327+
<List className="m-0 mb-4 list-none text-sm">
375328
{section.links.map((link, linkIdx) => (
376-
<ListItem key={linkIdx} mb={4}>
377-
<BaseLink href={link.href} {...linkProps}>
329+
<ListItem key={linkIdx} className="mb-4">
330+
<BaseLink
331+
href={link.href}
332+
className={footerLinkClassName}
333+
isPartiallyActive={false}
334+
>
378335
{link.text}
379336
</BaseLink>
380337
</ListItem>
381338
))}
382339
</List>
383-
</Box>
340+
</div>
384341
))}
385-
</SimpleGrid>
386-
<Flex
387-
p={6}
388-
flexDir="column"
389-
alignItems="center"
390-
justifyContent="center"
391-
fontSize="sm"
392-
bg="background.highlight"
393-
>
394-
<Box display="flex" gap={4}>
395-
{socialLinks.map(({ href, ariaLabel, icon }) => (
342+
</div>
343+
<div className="flex flex-col items-center justify-center bg-background-highlight p-6 text-sm">
344+
<div className="flex gap-4">
345+
{socialLinks.map(({ href, ariaLabel, icon: Icon }) => (
396346
<BaseLink
397347
key={href}
398348
href={href}
399349
hideArrow
400-
color="body.base"
401350
aria-label={ariaLabel}
402-
_focus={{ color: "primary.base" }}
351+
className="text-body hover:text-primary"
403352
>
404-
<Icon
405-
as={icon}
406-
_hover={{
407-
transition:
408-
"color 0.2s ease-in-out, transform 0.2s ease-in-out",
409-
}}
410-
fontSize="4xl"
411-
/>
353+
<Icon className="h-9 w-9 hover:transform hover:transition-colors" />
412354
</BaseLink>
413355
))}
414-
</Box>
415-
<List
416-
display="flex"
417-
flexDir={{ base: "column", sm: "row" }}
418-
flexWrap="wrap"
419-
justifyContent={{ base: "center", sm: "space-between", md: "center" }}
420-
fontWeight="normal"
421-
fontSize="sm"
422-
p={5}
423-
m={0}
424-
>
356+
</div>
357+
<List className="m-0 flex list-none flex-col flex-wrap justify-center p-5 text-sm font-normal sm:flex-row sm:justify-between md:justify-center">
425358
{dipperLinks.map(({ href, text }) => (
426-
<ListItem key={text} textAlign="center" px="2">
427-
<BaseLink href={href} w={["100%", null]} {...linkProps}>
359+
<ListItem key={text} className="px-2 text-center">
360+
<BaseLink
361+
href={href}
362+
className={cn("w-full sm:w-auto", footerLinkClassName)}
363+
isPartiallyActive={false}
364+
>
428365
{text}
429366
</BaseLink>
430367
</ListItem>
431368
))}
432369
</List>
433-
</Flex>
434-
</Box>
370+
</div>
371+
</footer>
435372
)
436373
}
437374

src/components/SkipLink.tsx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
import { useTranslation } from "next-i18next"
2-
import { Box } from "@chakra-ui/react"
3-
4-
import { BaseLink } from "@/components/Link"
52

63
import { MAIN_CONTENT_ID } from "@/lib/constants"
74

5+
import { BaseLink } from "../../tailwind/Link"
6+
87
export const SkipLink = () => {
98
const { t } = useTranslation()
109
return (
11-
<Box bg="primary.base">
10+
<div className="bg-primary">
1211
<BaseLink
1312
href={"#" + MAIN_CONTENT_ID}
14-
lineHeight="taller"
15-
position="absolute"
16-
top="-12"
17-
ms="2"
18-
color="background.base"
19-
textDecorationLine="none"
20-
_hover={{ textDecoration: "none" }}
21-
_focus={{ position: "static" }}
13+
className="absolute -top-12 ms-2 leading-8 text-background no-underline hover:no-underline focus:static"
2214
>
2315
{t("skip-to-main-content")}
2416
</BaseLink>
25-
</Box>
17+
</div>
2618
)
2719
}

src/components/ThemeProvider.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ const ThemeProvider = ({ children }: Pick<ThemeProviderProps, "children">) => {
3333
disableTransitionOnChange
3434
storageKey={COLOR_MODE_STORAGE_KEY}
3535
>
36-
<ChakraBaseProvider theme={theme} colorModeManager={colorModeManager}>
36+
<ChakraBaseProvider
37+
theme={theme}
38+
colorModeManager={colorModeManager}
39+
resetCSS={false}
40+
>
3741
{/* TODO: Can these CSS Vars be moved to `global.css`? */}
3842
<style jsx global>
3943
{`

0 commit comments

Comments
 (0)