-
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.
Improve layout for large devices (#1076)
* Use four cards per row in collection summaries * Align maximum width of footer with maximum width of main content * Remove maximum width from Portfolio Builder content * Pin footer content to bottom of screen * Fix `overflow` style Signed-off-by: Marvin A. Ruder <signed@mruder.dev>
- Loading branch information
1 parent
ce3d207
commit 4a7bf1d
Showing
6 changed files
with
45 additions
and
31 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,27 +1,40 @@ | ||
import GitHubIcon from "@mui/icons-material/GitHub"; | ||
import { Container, IconButton, Typography } from "@mui/material"; | ||
import type { BoxProps } from "@mui/material"; | ||
import { Box, Container, IconButton, Typography } from "@mui/material"; | ||
|
||
export const Footer = () => { | ||
return ( | ||
<Container | ||
sx={{ | ||
mt: 2, | ||
pb: { xs: 4, md: 2 }, | ||
display: { xs: "block", md: "flex" }, | ||
alignItems: "center", | ||
justifyContent: "space-between", | ||
textAlign: { xs: "center", md: "left" }, | ||
}} | ||
> | ||
<Typography sx={{ ml: { md: "auto" }, mr: { md: 0.5 }, pt: { xs: 2, md: 0 } }} variant="subtitle1"> | ||
Something missing or not working correctly? Report it on GitHub: | ||
</Typography> | ||
<IconButton href="https://github.com/marvinruder/rating-tracker"> | ||
<GitHubIcon /> | ||
</IconButton> | ||
<Typography sx={{ pt: { xs: 2, md: 0 }, order: -1 }} variant="subtitle1"> | ||
© 2022–2024 Marvin A. Ruder | ||
</Typography> | ||
export const Footer = (props: FooterProps) => ( | ||
<> | ||
<Box sx={{ flexGrow: 1 }} /> | ||
<Container maxWidth={false}> | ||
<Box | ||
sx={{ | ||
m: "auto", | ||
mt: 2, | ||
pb: 2, | ||
display: { xs: "block", md: "flex" }, | ||
alignItems: "center", | ||
justifyContent: "space-between", | ||
textAlign: { xs: "center", md: "left" }, | ||
}} | ||
maxWidth={props.maxWidth} | ||
> | ||
<Typography sx={{ ml: { md: "auto" }, mr: { md: 0.5 }, pt: { xs: 2, md: 0 } }} variant="subtitle1"> | ||
Something missing or not working correctly? Report it on GitHub: | ||
</Typography> | ||
<IconButton href="https://github.com/marvinruder/rating-tracker"> | ||
<GitHubIcon /> | ||
</IconButton> | ||
<Typography sx={{ pt: { xs: 2, md: 0 }, order: -1 }} variant="subtitle1"> | ||
© 2022–2024 Marvin A. Ruder | ||
</Typography> | ||
</Box> | ||
</Container> | ||
); | ||
}; | ||
</> | ||
); | ||
|
||
interface FooterProps { | ||
/** | ||
* The maximum width of the container. | ||
*/ | ||
maxWidth?: BoxProps["maxWidth"]; | ||
} |
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
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