Skip to content

Commit

Permalink
fix resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sworzen1 committed Apr 4, 2024
1 parent 012face commit e3ae5e3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
28 changes: 20 additions & 8 deletions govtool/frontend/src/components/organisms/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,19 @@ export const Hero = () => {
flexDirection="row"
overflow="visible"
position="relative"
px={screenWidth < 640 ? 3 : screenWidth < 1512 ? 10 : 14}
px={
screenWidth < 640
? 3
: screenWidth < 1512
? 9.375
: screenWidth < 1728
? 14
: screenWidth < 1920
? 27.375
: screenWidth < 2560
? 39.375
: 49.25
}
>
<Box alignItems="center" flex={1} height="min-content">
<Typography
Expand Down Expand Up @@ -82,13 +94,13 @@ export const Hero = () => {
flex={1}
position="absolute"
right={
screenWidth >= 1728
? IMAGE_SIZE / 8
: screenWidth >= 1512
? -(IMAGE_SIZE / 12)
: screenWidth >= 860
? -(IMAGE_SIZE / 8)
: -(IMAGE_SIZE / 4)
screenWidth <= 860
? -(IMAGE_SIZE / 4)
: screenWidth <= 1440
? -(IMAGE_SIZE / 15)
: screenWidth <= 1728
? screenWidth / 20
: screenWidth / 11
}
top={-80}
zIndex={-1}
Expand Down
2 changes: 1 addition & 1 deletion govtool/frontend/src/components/organisms/HomeCards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const HomeCards = () => {
? "repeat(1, minmax(300px, 866px))"
: "repeat(2, minmax(300px, 866px))"
}
justifyItems="center"
justifyContent="center"
mb={screenWidth < 640 ? 10 : 17}
mt={screenWidth < 640 ? 10 : 14.5}
px={
Expand Down

0 comments on commit e3ae5e3

Please sign in to comment.