-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update footer component and fix import in page
component
- Loading branch information
1 parent
e4eec57
commit 7401d51
Showing
2 changed files
with
45 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,53 @@ | ||
import { Box, Button, ButtonGroup, Typography } from "@mui/material"; | ||
import { Box, Button, ButtonGroup, Stack, Typography } from "@mui/material"; | ||
import * as React from "react"; | ||
import GitHubIcon from "@mui/icons-material/GitHub"; | ||
import SendIcon from "@mui/icons-material/Send"; | ||
import InfoIcon from "@mui/icons-material/Info"; | ||
|
||
export default function Footer() { | ||
const row_1 = [ | ||
{ | ||
title: "Hire Me", | ||
url: "http://www.ansin-teacher.net/data/teacher59096.html", | ||
icon: <SendIcon />, | ||
}, | ||
{ | ||
title: "Source", | ||
url: "https://github.com/ItsukiKigoshi/itsukikigoshi.github.io", | ||
icon: <GitHubIcon />, | ||
}, | ||
].map((item) => ( | ||
<Button | ||
key={item.title} | ||
href={item.url} | ||
target="_blank" | ||
startIcon={item.icon} | ||
> | ||
{item.title} | ||
</Button> | ||
)); | ||
|
||
const row_2 = [ | ||
{ | ||
title: "特定商取引法に基づく表記", | ||
url: "/salespolicy", | ||
icon: <InfoIcon />, | ||
}, | ||
].map((item) => ( | ||
<Button | ||
variant="outlined" | ||
key={item.title} | ||
href={item.url} | ||
startIcon={item.icon} | ||
> | ||
{item.title} | ||
</Button> | ||
)); | ||
|
||
return ( | ||
<Box> | ||
<ButtonGroup variant="outlined" aria-label="outlined button group"> | ||
<Button | ||
href="https://github.com/ItsukiKigoshi/itsukikigoshi.github.io" | ||
target="_blank" | ||
startIcon={<GitHubIcon />} | ||
> | ||
Source | ||
</Button> | ||
<Button | ||
href="http://www.ansin-teacher.net/data/teacher59096.html" | ||
target="_blank" | ||
startIcon={<SendIcon />} | ||
> | ||
Hire Me | ||
</Button> | ||
<Button href="/salespolicy">特定商取引法に基づく表記</Button> | ||
</ButtonGroup> | ||
</Box> | ||
<Stack useFlexGap spacing={1}> | ||
{<ButtonGroup aria-label="button group">{row_1}</ButtonGroup>} | ||
{row_2} | ||
</Stack> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters