Skip to content

Commit

Permalink
refactor: Update Footer component with new link buttons and fix butto…
Browse files Browse the repository at this point in the history
…n variant issue
  • Loading branch information
ItsukiKigoshi committed Sep 7, 2024
1 parent e387f62 commit 31cafe5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
14 changes: 7 additions & 7 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import GitHubIcon from "@mui/icons-material/GitHub";
import InfoIcon from "@mui/icons-material/Info";
import CottageIcon from "@mui/icons-material/Cottage";
import { Button, ButtonGroup, Paper, Stack } from "@mui/material";
import { Button, ButtonGroup, Link, Paper, Stack } from "@mui/material";

export default function Footer() {
type Items = {
Expand Down Expand Up @@ -37,12 +37,6 @@ export default function Footer() {
inNewTab: false,
icon: <InfoIcon />,
},
{
title: "Source",
url: "https://github.com/ItsukiKigoshi/itsukikigoshi.github.io",
inNewTab: true,
icon: <GitHubIcon />,
},
]);

return (
Expand All @@ -59,6 +53,12 @@ export default function Footer() {
>
<Stack spacing={1} alignItems="center">
{<ButtonGroup>{button_group}</ButtonGroup>}
<Link
href="https://github.com/ItsukiKigoshi/itsukikigoshi.github.io"
target="_blank"
>
Source of This Site
</Link>
</Stack>
</Paper>
);
Expand Down
14 changes: 6 additions & 8 deletions src/components/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import GitHubIcon from "@mui/icons-material/GitHub";
import InstagramIcon from "@mui/icons-material/Instagram";
import LinkedInIcon from "@mui/icons-material/LinkedIn";
import TipsAndUpdatesIcon from "@mui/icons-material/TipsAndUpdates";
import {
Avatar,
Box,
Expand Down Expand Up @@ -65,20 +64,19 @@ export default function Main() {
</Stack>
<Stack spacing={1}>
<Button
startIcon={<TipsAndUpdatesIcon />}
startIcon={<LinkedInIcon />}
variant="outlined"
href="https://github.com/ItsukiKigoshi/ItsukiKigoshi/blob/main/README.md"
href="https://www.linkedin.com/in/itsukikigoshi"
target="_blank"
>
About Me
LinkedIn
</Button>
<Button
startIcon={<LinkedInIcon />}
variant="contained"
href="https://www.linkedin.com/in/itsukikigoshi"
variant="outlined"
href="https://www.wantedly.com/id/itsukikigoshi"
target="_blank"
>
Open to Work!
Wantedly
</Button>
<Stack sx={{ justifyContent: "center" }} direction="row" spacing={2}>
{linkButtons}
Expand Down

0 comments on commit 31cafe5

Please sign in to comment.