Skip to content

Commit

Permalink
feature(#36): Fix page changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanolee committed Jan 9, 2023
1 parent 9f3b5cb commit 0c63dea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
13 changes: 9 additions & 4 deletions src/components/button/HubPageButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ const StyledLink = styled(Link)(({ theme }) => ({
color: theme.palette.text.primary,
textAlign: "center",
boxShadow: "0 0 10px 0 rgba(0, 0, 0, 0.5)",
lineHeight: "100px",
borderRadius: "50px",
lineHeight: "25px",
borderRadius: "5px",
textDecoration: "none",
width: "300px",
display: "block"
width: "200px",
display: "block",
[theme.breakpoints.up('sm')]: {
width: "300px",
borderRadius: "50px",
lineHeight: "100px",
}
}))


Expand Down
4 changes: 2 additions & 2 deletions src/components/nav/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const NavBar = ({ title, content }, props) => {

return (
<>
<Box className="aaa" sx={{ display: "flex" }}>
<Box sx={{ display: "flex", padding: 0}}>
<Box sx={{ display: { xs: "none", sm: "block" }, width: 0 }}>
<CssBaseline />
<AppBar position="fixed" open={open}>
Expand All @@ -204,7 +204,7 @@ const NavBar = ({ title, content }, props) => {
)}
</Toolbar>
</AppBar>
<Box className="aaa3"
<Box
component="nav"
sx={{ width: { sm: drawerWidth }, flexShrink: { sm: 0 } }}
aria-label="sidebar navigation"
Expand Down
3 changes: 1 addition & 2 deletions src/components/page/Page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import { styled } from "@mui/material/styles";
const StyledContainer = styled(Container)(({ theme }) => ({
paddingTop: "30px",
backgroundColor: "inherit",
// Full width minus the width of the drawer
width: "calc(100vw - 190px)",
// Push right for drawer
[theme.breakpoints.up('sm')]: {
paddingLeft: "60px",
}
Expand Down

0 comments on commit 0c63dea

Please sign in to comment.