Skip to content

Commit

Permalink
Add mobile background and fix regular background (#159)
Browse files Browse the repository at this point in the history
* add mobile background and fix regular background

* remove clamp
  • Loading branch information
waalbert authored Oct 3, 2024
1 parent 83801b5 commit e463bf6
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 7 deletions.
18 changes: 14 additions & 4 deletions apps/site/src/app/(home)/sections/Landing/Landing.module.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
@use "bootstrap-utils" as bootstrap;

.landing {
padding-top: 121.27%;
background-image: url("~@/assets/background/ocean-sand-background.svg");
padding-top: 216.82%;
background-image: url("~@/assets/background/ocean-sand-mobile-background.svg");
background-size: cover;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

text-align: center;

@include bootstrap.media-breakpoint-up(md) {
padding-top: 121.27%;
background-image: url("~@/assets/background/ocean-sand-background.svg");
}
}

.title {
margin-top: -190%;
margin-top: -355%;

@include bootstrap.media-breakpoint-up(md) {
margin-top: -190%;
}
}
11 changes: 9 additions & 2 deletions apps/site/src/app/(home)/sections/Landing/Title.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
@use "bootstrap-utils" as bootstrap;

.title {
width: clamp(0px, 40vw, 40vw);
height: clamp(0px, 14.53vw, 14.53vw);
width: 70vw;
height: 25.42vw;

@include bootstrap.media-breakpoint-up(md) {
width: 40vw;
height: 14.53vw;
}
}
Binary file not shown.
44 changes: 44 additions & 0 deletions apps/site/src/assets/background/ocean-sand-background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 124 additions & 0 deletions apps/site/src/assets/background/ocean-sand-mobile-background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion apps/site/src/lib/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
$container-padding: 8rem;

.background {
background: linear-gradient(#009de9 50%, #00a6c4 60%);
background: linear-gradient(#01a6c4, #01a7c5 67%, #00c1a9 82%, #8dbd9e);

@media screen and (min-height: 600px) {
background: #01a6c4;
}
}

.accordion {
Expand Down

0 comments on commit e463bf6

Please sign in to comment.