Skip to content

Commit

Permalink
updated background styles
Browse files Browse the repository at this point in the history
  • Loading branch information
MonikaCat committed Nov 17, 2023
1 parent 7a7a1aa commit c0baf91
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const Layout = ({
backgroundPosition: redBg ? "15vw -1vw, 0 0" : "0 0",
backgroundColor: color.primary,
backgroundSize: redBg ? "70% 55vw, 105vw" : "100vw 100vw",
[theme.breakpoints.between("mobile", 550)]: {
[theme.breakpoints.down(550)]: {
backgroundImage: redBg
? "url(/images/assets/bg_mobile_horse.webp), url(/images/assets/bg_mobile_red_background.webp)"
: "url(/images/assets/bg_mobile_red_background.webp)",
Expand Down
17 changes: 17 additions & 0 deletions src/screens/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ const Home: FC<Props> = ({ pages }) => {
mb: "25px",
px: "10%",
},
[theme.breakpoints.down(550)]: {
fontSize: "32px",
px: "10%",
},
[theme.breakpoints.down("mobile")]: {
fontSize: "32px",
mt: "95%",
px: "10%",
},
}}
>
{t("coBuildingInterchain")}
Expand All @@ -121,6 +130,14 @@ const Home: FC<Props> = ({ pages }) => {
fontSize: "40px",
m: "200px 0 60px 0",
},
[theme.breakpoints.down(550)]: {
fontSize: "24px",
m: "20% 0 60px 0",
},
[theme.breakpoints.down("mobile")]: {
fontSize: "24px",
m: "50% 0 60px 0",
},
}}
>
{t("title")}
Expand Down

0 comments on commit c0baf91

Please sign in to comment.