Skip to content

Commit

Permalink
feat: logout button
Browse files Browse the repository at this point in the history
  • Loading branch information
1nayu committed Apr 21, 2024
1 parent 7c75fb4 commit 647290e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app/(authenticated)/sports/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {SportInfoField} from "@/components/sports/sportInfoField";
import {Accordion, AccordionSummary, AccordionDetails, Stack, Grid, Link, Typography, Breadcrumbs} from "@mui/material";
import {ButtonLarge} from "@/components/layout/buttonLarge";
import {HiChevronDown} from "react-icons/hi2";
import CardList from "@/components/layout/cardList";

export default function SportPage() {
return(
Expand Down Expand Up @@ -35,6 +36,11 @@ export default function SportPage() {
<ButtonLarge>Bリーグ</ButtonLarge>
</Grid>
</CardBackground>
<CardBackground title={"競技名の現在進行中の試合"}>
<Grid container>
<CardList sport={"a"} league={"a"} judge={"a"} left={"a"} right={"a"} time={"11:11"} location={"a"}/>
</Grid>
</CardBackground>
</Stack>
)
}
23 changes: 21 additions & 2 deletions components/layout/navigation.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use client'
import * as React from 'react'
import {AppBar, Box, Button, Drawer, Stack, SvgIcon, Toolbar, Typography} from "@mui/material";
import {AppBar, Box, Button, Drawer, IconButton, Stack, SvgIcon, Toolbar, Typography} from "@mui/material";
import Image from "next/image";
import {HiHome, HiMegaphone, HiMiniNewspaper, HiUser, HiUserGroup, HiTableCells, HiRectangleGroup, HiTrophy} from "react-icons/hi2";
import {HiHome, HiMegaphone, HiMiniNewspaper, HiUser, HiUserGroup, HiTableCells, HiRectangleGroup, HiTrophy, HiArrowRightOnRectangle} from "react-icons/hi2";
import WiderLogo from "@/components/svg/wider";
import Link from "next/link"

Expand Down Expand Up @@ -162,6 +162,25 @@ export const Navigation = () => {
</Stack>
</Button>
</Stack>
<Button
variant={"outlined"}
sx={{
py:1.5,
mb:2,
width:"100%",
fontWeight: "600",
background:"rgba(62,78,179,0.2)",
}}
component={Link}
href={"/tournament"}
>
<Stack spacing={1} mx={1} width={"100%"} direction={"row"} justifyContent={"flex-start"} alignItems="center">
<SvgIcon fontSize={"small"}>
<HiArrowRightOnRectangle/>
</SvgIcon>
<Typography>ログアウト</Typography>
</Stack>
</Button>
<Stack width={"100%"} justifyContent="center" alignItems="center" direction={"row"} spacing={0.5}>
<Typography fontWeight={"600"} color={"#9aa6e5"}>(C)2024</Typography>
<WiderLogo/>
Expand Down

0 comments on commit 647290e

Please sign in to comment.