Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves responsiveness of landing page for larger displays #8388

Merged
merged 3 commits into from
Feb 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions app/assets/landingpage/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
font-size: 130%;
font-size: calc(1vw + 1vh); }

h1 {
Expand All @@ -69,7 +70,11 @@ p {
line-height: 1.6em;
margin-bottom: 1.6rem; }

@media (max-width: 992px) {
@media (max-width: 1312px) {
html {
font-size: 120%; } }

@media (max-width: 992px) {
html {
font-size: 110%; } }

Expand Down Expand Up @@ -131,7 +136,7 @@ section.grid {
section.grid div.grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
padding-top: calc(3vh + 3vw);
padding-top: 2rem;
margin-bottom: 3em; }
section.grid div.grid div {
align-self: center;
Expand Down Expand Up @@ -607,10 +612,10 @@ section#intro {
width: 98%;
display: grid;
grid-template-columns: 1.5fr 1fr;
padding-top: 1rem; }
padding-top: 5rem; }
section#intro div {
align-self: center;
max-width: 100%; }
max-width: 39rem; }
section#intro div p {
max-width: 20rem; }
section#intro div .big {
Expand All @@ -626,7 +631,8 @@ section#intro {
section#intro {
height: inherit;
grid-template-columns: 1fr;
margin: 0em 3em; }
margin: 0em 3em;
padding-top: 0em }
section#intro div {
grid-row: 2; }
section#intro figure {
Expand Down
8 changes: 4 additions & 4 deletions app/assets/landingpage/logo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
top: 3em;
left: 3em;

img{
//width: 150px;
width: 8.7rem;
}
img{
//width: 150px;
width: 8.7rem;
}
}


Expand Down
8 changes: 4 additions & 4 deletions app/assets/landingpage/section_footerconsensys.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ section#footerconsensys{

// background-color: var(--starwhite);

figure{
width: 8rem;
margin: auto;
padding: 3em 0em;
figure{
width: 8rem;
margin: auto;
padding: 3em 0em;
}

}
16 changes: 8 additions & 8 deletions app/assets/landingpage/section_footersocial.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ section#footersocial{



svg{
background-color: none;
stroke: var(--starwhite);
stroke-width: 2;
stroke-miterlimit: 5;
width: 3rem;
height: 3rem;
fill: none;
svg{
background-color: none;
stroke: var(--starwhite);
stroke-width: 2;
stroke-miterlimit: 5;
width: 3rem;
height: 3rem;
fill: none;

transition: all 500ms ease;

Expand Down
8 changes: 4 additions & 4 deletions app/assets/landingpage/section_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ section.grid {

div.grid {

display: grid;
grid-template-columns: repeat(2, 1fr);
padding-top: calc(3vh + 3vw);
margin-bottom: 3em;
display: grid;
grid-template-columns: repeat(2, 1fr);
padding-top: 2rem;
margin-bottom: 3em;

div {
align-self: center;
Expand Down
29 changes: 15 additions & 14 deletions app/assets/landingpage/section_intro.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ section#intro{

height: 100vh;
margin-left: 3em;
display: grid;
grid-template-columns: 1.5fr 1fr;
padding-top: 1rem;

div {
align-self: center;
max-width: 100%;

p {
max-width: 20rem;
}
.big {
font-size: 1.5em;
}
display: grid;
grid-template-columns: 1.5fr 1fr;
padding-top: 5rem;

div {
align-self: center;
max-width: 39rem;

p {
max-width: 20rem;
}
.big {
font-size: 1.5em;
}
}

figure {
Expand Down Expand Up @@ -43,6 +43,7 @@ section#intro{
grid-template-columns: 1fr;

margin: 0em 3em;
padding-top: 0em;

div{
grid-row: 2;
Expand Down
38 changes: 19 additions & 19 deletions app/assets/landingpage/section_newsletter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,16 @@ section#newsletter{
display: block;
}

button.btn{
background-color: var(--vinuspurple);
margin-left: 0.5rem;
button.btn{
background-color: var(--vinuspurple);
margin-left: 0.5rem;
}

.options input[type="radio"] {
border: 0px;
width: 0.6rem;
height: 0.6rem;
}
.options input[type="radio"] {
border: 0px;
width: 0.6rem;
height: 0.6rem;
}


}
Expand All @@ -76,23 +76,23 @@ section#newsletter{
}


label {
padding: 0rem 0rem;
}
label {
padding: 0rem 0rem;
}

div.inputs {
flex-direction: column;
padding: 1rem;
}
div.inputs {
flex-direction: column;
padding: 1rem;
}

button.btn {
margin-left: 0;
}
button.btn {
margin-left: 0;
}

margin-left: 1.5em;
margin-right: 1.5em;

}
}
}


Expand Down
16 changes: 8 additions & 8 deletions app/assets/landingpage/section_twitter.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ section#twitter{
padding: 2em;
padding-top: 0em;

img{
width: 3rem;
height: auto;
border-radius: 3rem;
margin: auto;
position: relative;
top: -1.5rem;
}
img{
width: 3rem;
height: auto;
border-radius: 3rem;
margin: auto;
position: relative;
top: -1.5rem;
}

figcaption{
color: var(--starwhite);
Expand Down
21 changes: 8 additions & 13 deletions app/assets/landingpage/typography.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
html{
font-family: 'Mulish', sans-serif;
font-kerning: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
font-size: calc(1vw + 1vh);
font-family: 'Mulish', sans-serif;
font-kerning: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
font-size: 130%;
font-size: calc(1vw + 1vh);
}


Expand Down Expand Up @@ -32,19 +33,13 @@ p{



@media #{$desktop} {
html{
font-size:130%;
}
}

@media #{$laptop} {
html{
font-size: 120%;
font-size: 120%;
}
}


@media #{$tablet} {
html{
font-size: 110%;
Expand Down
Loading