Skip to content

Commit

Permalink
Make landing page responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
edlu77 committed Nov 15, 2023
1 parent 59cedc8 commit 36d88bb
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 6 deletions.
1 change: 1 addition & 0 deletions apps/ftu-ui/src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
html,
body {
height: 100%;
overflow-y: hidden;
}
body {
margin: 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
display: flex;
align-items: center;
height: 4.5rem;
padding: 0 2rem 0 1rem;
padding: 0 2rem;

@include utils.define-flex-filler();

Expand Down Expand Up @@ -89,4 +89,8 @@
@media (max-width: 20rem) {
padding: 0;
}

@media (max-width: 22.5rem) {
padding: 0 1rem;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
:host {
display: grid;
grid-template-columns: 2fr 3fr;
grid-template-rows: auto auto 1fr;
column-gap: 2rem;
grid-template-rows: 0fr 0fr 1fr;
column-gap: 4rem;
row-gap: 2rem;
padding: 3.5rem 6rem;
max-height: 30rem;

.image {
grid-column: 1;
grid-row: 1 / span 3;
width: 100%;
height: auto;
height: 100%;
align-self: center;
border-radius: 1rem;
box-shadow: 0.06rem 0.13rem 1rem 0.13rem #00000029;
Expand Down Expand Up @@ -42,4 +43,32 @@
width: fit-content;
height: 3rem;
}

@media (max-width: 1400px) {
grid-template-columns: 1.8fr 1fr;
grid-template-rows: auto auto 3rem;
column-gap: 2rem;
padding: 3.5rem 2rem;
max-height: unset;

.title {
font-size: 1.5rem;
line-height: normal;
}
}

@media (max-width: 1280px) {
grid-template-columns: unset;
text-align: center;

.image {
max-height: 22rem;
width: auto;
}

.image,
.more-button {
place-self: center;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@
grid-row: 1 / span 4;
place-self: center;
width: 100%;
height: auto;
max-height: 30rem;
min-height: 23rem;
max-height: 27rem;
}

.description,
.partners {
font-size: 1rem;
line-height: 1.5rem;

::ng-deep p {
margin: 0;
}
Expand Down Expand Up @@ -87,4 +90,20 @@
border: 1px solid #ffd6db;
}
}

@media (max-width: 1400px) {
.title {
font-size: 2rem;
line-height: normal;
}
}

@media (max-width: 1280px) {
grid-template-columns: unset;

.image {
grid-column: 1;
grid-row: 5 / span 1;
}
}
}
10 changes: 10 additions & 0 deletions libs/components/molecules/src/lib/metrics/metrics.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,14 @@
}
}
}

@media (max-width: 1400px) {
.metrics {
flex-wrap: wrap;

.metric {
width: 31%;
}
}
}
}

0 comments on commit 36d88bb

Please sign in to comment.