Skip to content

Commit

Permalink
fix about page to be mobile dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
MiTo0o committed Jul 26, 2024
1 parent 1704742 commit f1317e1
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/Pages/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ function About() {
default: "#1E272C",
},
},
typography: {
h6: {
fontSize: "1.25rem",
[`@media (max-width:600px)`]: {
fontSize: "1rem",
},
},
body1: {
fontSize: "1rem",
[`@media (max-width:600px)`]: {
fontSize: "0.875rem",
},
},
},
});

return (
Expand All @@ -32,9 +46,9 @@ function About() {
direction="column"
justifyContent="center"
alignItems="center"
style={{ minHeight: "100vh" }}
style={{ minHeight: "100vh", padding: "0 20px" }}
>
<Grid item>
<Grid item xs={12} sm={10} md={8}>
<Typography align="center" variant="h6" pb={3}>
Welcome to my dog gallery website!
</Typography>
Expand Down

0 comments on commit f1317e1

Please sign in to comment.