Skip to content

Commit 5d9cbd9

Browse files
authored
Merge pull request #12716 from ethereum/ds-social-links
DS imp - Footer and Social icons
2 parents 917ddd9 + f6f2218 commit 5d9cbd9

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

src/components/Footer.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
List,
1010
ListItem,
1111
SimpleGrid,
12+
Text,
1213
} from "@chakra-ui/react"
1314

1415
import type { FooterLink, FooterLinkSection, Lang } from "@/lib/types"
@@ -23,19 +24,16 @@ const socialLinks = [
2324
icon: FaGithub,
2425
to: "https://github.com/ethereum/ethereum-org-website",
2526
ariaLabel: "GitHub",
26-
color: "#333",
2727
},
2828
{
2929
icon: FaTwitter,
3030
to: "https://twitter.com/ethdotorg",
3131
ariaLabel: "Twitter",
32-
color: "#1DA1F2",
3332
},
3433
{
3534
icon: FaDiscord,
3635
to: "https://discord.gg/ethereum-org",
3736
ariaLabel: "Discord",
38-
color: "#7289da",
3937
},
4038
]
4139

@@ -325,7 +323,7 @@ const Footer = ({ lastDeployDate }: FooterProps) => {
325323
_hover: hoverStyles,
326324
sx: {
327325
"& svg": {
328-
fill: "text200",
326+
fill: "body.medium",
329327
},
330328
},
331329
}
@@ -339,25 +337,25 @@ const Footer = ({ lastDeployDate }: FooterProps) => {
339337
flexWrap="wrap"
340338
>
341339
{lastDeployDate && (
342-
<Box color="text200">
340+
<Text>
343341
<Translation id="website-last-updated" />:{" "}
344342
{getLocaleTimestamp(locale as Lang, lastDeployDate)}
345-
</Box>
343+
</Text>
346344
)}
347345
<Box my={4}>
348-
{socialLinks.map(({ to, ariaLabel, icon, color }) => (
346+
{socialLinks.map(({ to, ariaLabel, icon }) => (
349347
<BaseLink
350348
key={to}
351349
href={to}
352350
hideArrow
353-
color="secondary"
351+
color="body.base"
354352
aria-label={ariaLabel}
355353
ms="4"
354+
_focus={{ color: "primary.base" }}
356355
>
357356
<Icon
358357
as={icon}
359358
_hover={{
360-
color,
361359
transition:
362360
"color 0.2s ease-in-out, transform 0.2s ease-in-out",
363361
}}

0 commit comments

Comments
 (0)