Skip to content

Commit 4d49a9d

Browse files
committed
style: adjust font size of logo h1 and h2 for better mobile responsiveness layout
1 parent 6ff36d4 commit 4d49a9d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/components/NavBar/NavItems.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ const NavItems: React.FC = () => {
5454
variant="h1"
5555
sx={{
5656
color: Colors.yellow,
57+
fontSize: {
58+
xs: "2.2rem", // font size on mobile
59+
sm: "2.5rem",
60+
},
5761
}}
5862
>
5963
NeuroJSON.io
@@ -62,6 +66,10 @@ const NavItems: React.FC = () => {
6266
variant="h2"
6367
sx={{
6468
color: Colors.lightGray,
69+
fontSize: {
70+
xs: "1rem", // font size on mobile
71+
sm: "1.2rem",
72+
},
6573
}}
6674
>
6775
Free Data Worth Sharing

src/design/theme.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { orange, purple } from "@mui/material/colors";
1+
// import { orange, purple } from "@mui/material/colors";
22
import { createTheme } from "@mui/material/styles";
33

44
const primary = {
@@ -46,13 +46,11 @@ const theme = createTheme({
4646
h1: {
4747
fontFamily: "Raleway",
4848
fontWeight: 700,
49-
// fontSize: "2rem",
5049
fontSize: "2.5rem",
5150
textTransform: "none",
5251
},
5352
h2: {
5453
fontWeight: 600,
55-
// fontSize: "1.75rem",
5654
fontSize: "1.2rem",
5755
textTransform: "none",
5856
color: Colors.secondary.main,

0 commit comments

Comments
 (0)