-
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.
Merge pull request #4 from ItsukiKigoshi/add-curation
feat: add curation&reading tab
- Loading branch information
Showing
9 changed files
with
198 additions
and
111 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,5 +1,6 @@ | ||
import { Stack, Typography } from "@mui/material"; | ||
import React from "react"; | ||
|
||
export default function App() { | ||
return <div>page</div>; | ||
return <Typography>Curation: Under Construction</Typography>; | ||
} |
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,19 +1,8 @@ | ||
"use client"; | ||
import Footer from "@/components/Footer"; | ||
import Main from "@/components/Main"; | ||
import Footer from "@/components/Footer"; | ||
import { Box } from "@mui/material"; | ||
|
||
export default function App() { | ||
return ( | ||
<Box | ||
sx={{ | ||
display: "grid", | ||
placeItems: "center", // Center the content horizontally and vertically | ||
minHeight: "100vh", // Set a minimum height to fill the entire viewport | ||
}} | ||
> | ||
<Main /> | ||
<Footer /> | ||
</Box> | ||
); | ||
return <Main />; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import ButtonGoHome from "@/components/ButtonGoHome"; | ||
import { Stack, Typography } from "@mui/material"; | ||
import React from "react"; | ||
|
||
export default function App() { | ||
return <Typography>Reading: Under Construction</Typography>; | ||
} |
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,10 +1,7 @@ | ||
"use client"; | ||
import SalesPolicy from "@/components/SalesPolicy"; | ||
import { Box, Stack } from "@mui/material"; | ||
|
||
export default function App() { | ||
return ( | ||
<div> | ||
<SalesPolicy /> | ||
</div> | ||
); | ||
return <SalesPolicy />; | ||
} |
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
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
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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
import * as React from "react"; | ||
import MenuIcon from "@mui/icons-material/Menu"; | ||
import { | ||
AppBar, | ||
Box, | ||
Avatar, | ||
Button, | ||
Typography, | ||
Toolbar, | ||
List, | ||
ListItemText, | ||
ListItemButton, | ||
ListItem, | ||
IconButton, | ||
Drawer, | ||
Divider, | ||
CssBaseline, | ||
Stack, | ||
} from "@mui/material"; | ||
import Link from "next/link"; | ||
|
||
const drawerWidth = 240; | ||
const navItems = ["Home", "Curation", "Contact"]; | ||
|
||
export default function Header() { | ||
const [mobileOpen, setMobileOpen] = React.useState(false); | ||
|
||
const handleDrawerToggle = () => { | ||
setMobileOpen((prevState) => !prevState); | ||
}; | ||
|
||
const drawer = ( | ||
<Box onClick={handleDrawerToggle} sx={{ textAlign: "center" }}> | ||
<Stack | ||
direction="row" | ||
justifyContent="center" | ||
alignItems="center" | ||
spacing={2} | ||
my={2} | ||
> | ||
<Avatar | ||
alt={`Itsuki Kigoshi's Profile Picture`} | ||
src={`/profile.jpg`} | ||
sx={{ width: 50, height: 50 }} | ||
/> | ||
<Typography variant="h6" sx={{ my: 2 }}> | ||
Itsuki Kigoshi | ||
</Typography> | ||
</Stack> | ||
|
||
<Divider /> | ||
<List> | ||
{navItems.map((item) => ( | ||
<ListItem key={item} disablePadding> | ||
<ListItemButton sx={{ textAlign: "center" }}> | ||
<Link href={`/${item}`}> | ||
<ListItemText primary={item} /> | ||
</Link> | ||
</ListItemButton> | ||
</ListItem> | ||
))} | ||
</List> | ||
</Box> | ||
); | ||
|
||
return ( | ||
<Box sx={{ display: "flex" }}> | ||
<CssBaseline /> | ||
<AppBar component="nav"> | ||
<Toolbar> | ||
<IconButton | ||
color="inherit" | ||
aria-label="open drawer" | ||
edge="start" | ||
onClick={handleDrawerToggle} | ||
sx={{ mr: 2, display: { sm: "none" } }} | ||
> | ||
<MenuIcon /> | ||
</IconButton> | ||
<Box sx={{ display: { xs: "none", sm: "block" } }}> | ||
{navItems.map((item) => ( | ||
<Button key={item} sx={{ color: "#fff" }}> | ||
{item} | ||
</Button> | ||
))} | ||
</Box> | ||
</Toolbar> | ||
</AppBar> | ||
<nav> | ||
<Drawer | ||
variant="temporary" | ||
open={mobileOpen} | ||
onClose={handleDrawerToggle} | ||
ModalProps={{ | ||
keepMounted: true, // Better open performance on mobile. | ||
}} | ||
sx={{ | ||
display: { xs: "block", sm: "none" }, | ||
"& .MuiDrawer-paper": { | ||
boxSizing: "border-box", | ||
width: drawerWidth, | ||
}, | ||
}} | ||
> | ||
{drawer} | ||
</Drawer> | ||
</nav> | ||
</Box> | ||
); | ||
} |
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
Oops, something went wrong.