Skip to content

Commit

Permalink
try svh to align boxes on landing on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
toBeOfUse committed May 3, 2024
1 parent 56bcb2d commit 9e2ee4d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/components/Landing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {

.landing {
width: 100%;
height: 100dvh;
height: 100svh;
overflow: hidden;

#get-involved {
Expand All @@ -127,7 +127,7 @@ export default {
padding-top: 10vh;
display: flex;
flex-direction: column;
height: 100dvh;
height: 100svh;
justify-content: center;
align-items: center;
box-sizing: border-box;
Expand Down Expand Up @@ -176,7 +176,7 @@ export default {
z-index: -2;
top: 0px;
left: 0px;
height: 100dvh;
height: 100svh;
width: 100vw;
background-color: #142027;
}
Expand All @@ -187,14 +187,14 @@ export default {
background-image: url(../assets/hacksu-box.png);
background-size: contain;
background-repeat: no-repeat;
width: 40dvh;
width: 40svh;
max-width: 50vw;
height: 40dvh;
height: 40svh;
max-height: 50vw;
z-index: -1;
&.box1 {
background-position-y: 7dvh;
background-position-x: -14dvh;
background-position-y: 7svh;
background-position-x: -14svh;
left: 0px;
bottom: 0px;
@include display-not(mobile) {
Expand All @@ -203,8 +203,8 @@ export default {
}
&.box2 {
transform: rotate(90deg);
background-position-x: -7dvh;
background-position-y: -14dvh;
background-position-x: -7svh;
background-position-y: -14svh;
right: 0px;
top: 0px;
}
Expand Down

0 comments on commit 9e2ee4d

Please sign in to comment.