Skip to content

Commit

Permalink
fix: responsiveness issues on display, introducing, footer, guide, pr…
Browse files Browse the repository at this point in the history
…ocess
  • Loading branch information
kemuru committed Jul 24, 2024
1 parent 8454e27 commit e15f0d0
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 32 deletions.
2 changes: 1 addition & 1 deletion assets/icons/github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/icons/telegram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/icons/x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 16 additions & 4 deletions components/Display/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.main {
position: relative;
width: 100%;
height: calc(100vh - 82px);
min-height: 740px;
padding: 0 16px;

&::before {
Expand All @@ -14,15 +14,27 @@
height: 100%;
width: 100%;
right: 0;
margin-top: 248px;
margin-top: 260px;
z-index: -1;
background-image: url("../../assets/poster.png");
background-repeat: no-repeat;
background-size: 100%;
}

@include media.bp("phone") {
min-height: 780px;
}

@include media.bp("phone-wide") {
min-height: 840px;
}

@include media.bp("phablet") {
min-height: 920px;
}

@include media.bp("tablet-small") {
height: calc(100vh + 132px);
height: 920px;

&::before {
width: 80%;
Expand All @@ -38,6 +50,7 @@
}

@include media.bp("desktop") {
min-height: calc(100vh - 82px);
height: auto;
margin: 0 64px 64px;
padding: 100px 0 132px 16px;
Expand Down Expand Up @@ -126,7 +139,6 @@

.builtby {
position: absolute;
left: 13%;
bottom: 36px;

@include media.bp("tablet-small") {
Expand Down
8 changes: 5 additions & 3 deletions components/Introducing/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,23 @@
font-weight: bold;
color: transparent;
-webkit-text-stroke: 1.2px white;
text-align: left;
text-align: center;

@include media.bp("desktop") {
font-size: 36px;
-webkit-text-stroke: 1.5px white;
text-align: left;
}
}

.divider {
width: 4px;
height: 60px;
width: 60px;
height: 4px;
background-color: #9414fc;
margin: 20px 0;

@include media.bp("desktop") {
width: 4px;
height: 140px;
margin: 0 40px;
}
Expand Down
2 changes: 1 addition & 1 deletion components/Process/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
display: flex;
align-items: center;
flex-direction: column;
width: 372px;
width: 84vw;
padding: 24px;
border-radius: 24px;
border: 1px solid colors.$stroke;
Expand Down
35 changes: 14 additions & 21 deletions styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,16 @@ nav {

footer {
padding: 24px;
display: grid;
grid-template-areas:
"logo social"
"kleros social";
display: flex;
flex-direction: column;
place-items: center;
gap: 24px;

border-top: 1px solid colors.$stroke;

> img {
grid-area: logo;
}

.logos {
grid-area: social;
display: grid;
grid-template-columns: 1fr 1fr;
display: flex;
gap: 24px;

}

.kleros {
grid-area: kleros;
margin: 12px 0;
}

@include media.bp("tablet-small") {
Expand All @@ -91,6 +78,7 @@ footer {
.logos {
display: flex;
align-items: center;
justify-content: center;
}
}

Expand Down Expand Up @@ -137,12 +125,12 @@ section {
.guide {
display: flex;
width: 80%;
margin: 48px auto 0;
margin: 32px auto 0;
padding: 16px;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 16px;
gap: 12px;

background: white;
border: 1px solid colors.$stroke;
Expand All @@ -156,7 +144,7 @@ section {
font-weight: 400;

img {
margin: 0 10px 0 10px;
margin: 0 8px 0 0px;
}
}

Expand All @@ -174,10 +162,15 @@ section {

.label {
img {
margin: 0 22px 0 42px;
margin: 0 20px 0 42px;
}
}
}

@include media.bp("desktop") {
margin: 48px auto 0;
gap: 16px;
}
}

button, .link-button {
Expand Down

0 comments on commit e15f0d0

Please sign in to comment.