Skip to content

Commit

Permalink
feat: better mobile footer
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed Mar 2, 2023
1 parent 36652d0 commit 2935331
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions app/components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,13 @@ export const Footer = ({ sx }: { sx?: FlexProps["sx"] }) => {
alignItems: ["flex-start", "center"],
}}
>
<Flex sx={{ flexDirection: ["column", "row"] }} pb={[4, 0]}>
{/* <FooterLink>
<Trans id="footer.help">Help</Trans>
</FooterLink>
<FooterLink>
<Trans id="footer.contact">Contact</Trans>
</FooterLink> */}
</Flex>

<Box
sx={{
display: ["block", "none"],

width: ["100%", "auto"],
mx: [2, 0],
mb: [4],
}}
>
<Logo />
Expand All @@ -117,8 +110,10 @@ export const Footer = ({ sx }: { sx?: FlexProps["sx"] }) => {
<Flex
sx={{
justifyContent: "flex-end",
alignItems: "center",
alignItems: ["flex-start", "center"],
width: ["100%", "auto"],
flexDirection: ["column", "row"],
mt: [4, 0],
}}
>
<Typography
Expand All @@ -127,6 +122,7 @@ export const Footer = ({ sx }: { sx?: FlexProps["sx"] }) => {
px: [4, 3],
py: [3, 4],
color: "secondary.main",
order: [7, 0],
}}
>
<Version />
Expand Down Expand Up @@ -181,8 +177,9 @@ const useFooterLinkStyles = makeStyles((theme: Theme) => ({
bottomLink: {
fontSize: "0.875rem",

borderLeftStyle: "solid",
borderLeftColor: theme.palette.grey[500],
borderTopStyle: "solid",
borderTopColor: theme.palette.grey[500],

textDecoration: "none",
cursor: "pointer",
"&:hover": {
Expand Down Expand Up @@ -236,7 +233,8 @@ const FooterLinkBottom = forwardRef<
sx={{
px: [4, 3],
py: [3, 4],
borderLeftWidth: ["1px", 0],
borderTopWidth: ["1px", 0],
width: ["100%", "auto"],
}}
>
{children}
Expand Down

0 comments on commit 2935331

Please sign in to comment.