Skip to content

Commit 3fb7462

Browse files
committed
fix discord button
1 parent 5530169 commit 3fb7462

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/assets/images/icon_github_white.svg

-1
This file was deleted.

src/components/Home/CommunitySection.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { GitHub } from "@mui/icons-material";
21
import { Box, Button, Typography } from "@mui/material";
3-
import { ArrowRight, MessageCircle } from "lucide-react";
2+
import { ArrowRight } from "lucide-react";
43
import { useTranslation } from "react-i18next";
4+
import { FaDiscord, FaGithub } from "react-icons/fa";
55
import { HeadingAndDescription } from "./FeaturesAndBenefitsSection";
66

77
const GenericLinkButton = ({ icon, text, title }: { icon: React.ReactNode; text: string; title: string }) => (
@@ -13,7 +13,7 @@ const GenericLinkButton = ({ icon, text, title }: { icon: React.ReactNode; text:
1313
<Typography color="text.muted">{text}</Typography>
1414
</Box>
1515
</Box>
16-
<ArrowRight size={22} style={{ color: "text.muted" }} />
16+
<ArrowRight size={22} style={{ color: "text.muted", justifySelf: 'end' }} />
1717
</Button>
1818
);
1919

@@ -27,12 +27,12 @@ export default function CommunitySection() {
2727
/>
2828
<Box sx={linkContainerStyles}>
2929
<GenericLinkButton
30-
icon={<MessageCircle size={26} />}
30+
icon={<FaDiscord size={26} />}
3131
title={t("community_section.discord.heading")}
3232
text={t("community_section.discord.body_text")}
3333
/>
3434
<GenericLinkButton
35-
icon={<GitHub sx={{ fontSize: 26 }} />}
35+
icon={<FaGithub size={26} />}
3636
title={t("community_section.github.heading")}
3737
text={t("community_section.github.body_text")}
3838
/>
@@ -43,9 +43,9 @@ export default function CommunitySection() {
4343

4444
// Styles
4545
const buttonStyles = {
46-
display: "flex",
47-
justifyContent: "space-between",
46+
display: "grid",
4847
alignItems: "center",
48+
gridTemplateColumns: "90% 10%",
4949
p: 2,
5050
px: 3,
5151
borderRadius: "12px",

src/components/Home/Footer.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import logo from "@/assets/images/logo.png";
22
import { Box, Link, Stack, Typography } from "@mui/material";
3-
import { Gamepad2, Github } from "lucide-react";
43
import { useMemo } from "react";
54
import { useTranslation } from "react-i18next";
5+
import { FaDiscord, FaGithub } from "react-icons/fa";
6+
67

78
export default function Footer(): JSX.Element {
89
const genericLinksStyles = { color: "text.muted", textDecoration: "none", ":hover": { color: "text.primary" } };
@@ -19,8 +20,8 @@ export default function Footer(): JSX.Element {
1920
<Typography fontWeight="bold" variant="h6">{t("essentials.name")}</Typography>
2021
</Stack>
2122
<Stack direction="row" spacing={3}>
22-
<Link sx={genericLinksStyles} href="#"><Gamepad2 /></Link>
23-
<Link sx={genericLinksStyles} href="#"><Github /></Link>
23+
<Link sx={genericLinksStyles} href="#"><FaDiscord size={25} /></Link>
24+
<Link sx={genericLinksStyles} href="#"><FaGithub size={25} /></Link>
2425
</Stack>
2526
</Stack>
2627
<Stack spacing={3}>

0 commit comments

Comments
 (0)