added header and footer, refined font size adaption to screen width and height
This commit is contained in:
1225
src/assets/nls.svg
Normal file
1225
src/assets/nls.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 93 KiB |
@@ -3,8 +3,18 @@
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 1rem;
|
||||
// font-size: 1.42vh;
|
||||
font-size: 1.68vh;
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
|
||||
@media (max-height: $breakpoint-height) {
|
||||
font-size: 2.78vh;
|
||||
// font-size: 3vh;
|
||||
}
|
||||
|
||||
// @media (max-width: $breakpoint-width - 1px) {
|
||||
// font-size: 3vh;
|
||||
// }
|
||||
}
|
||||
|
||||
main {
|
||||
@@ -13,11 +23,24 @@ main {
|
||||
}
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
max-width: 80vw;
|
||||
margin: 0 auto;
|
||||
fill: $nls-color-white;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 300%;
|
||||
font-size: 200%;
|
||||
|
||||
@media (min-width: $breakpoint) {
|
||||
font-size: 300%;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {}
|
||||
|
||||
h3 {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
p {
|
||||
@@ -29,6 +52,52 @@ a {
|
||||
}
|
||||
|
||||
img {
|
||||
@media (max-width: $breakpoint) {
|
||||
margin: 0 auto 2rem;
|
||||
display: block;
|
||||
}
|
||||
|
||||
mix-blend-mode: color-burn;
|
||||
max-width: 100%; height: auto;
|
||||
max-width: 100%; height: auto; width: 100%;
|
||||
}
|
||||
|
||||
article {
|
||||
|
||||
header {
|
||||
position: sticky;
|
||||
bottom: 100vh;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
footer {
|
||||
top: 0;
|
||||
position: sticky;
|
||||
position: -webkit-sticky;
|
||||
position: -moz-sticky;
|
||||
position: -ms-sticky;
|
||||
position: -o-sticky;
|
||||
|
||||
section {
|
||||
min-height: 200vh;
|
||||
// padding: 5rem 3rem;
|
||||
padding-top: 6rem;
|
||||
|
||||
p {
|
||||
margin: 1rem 3rem 6rem;
|
||||
}
|
||||
|
||||
object {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
display: block;
|
||||
margin: 5rem auto 0;
|
||||
width: 100vw;
|
||||
|
||||
@media (min-width: $breakpoint-width) {
|
||||
width: 80vw;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@
|
||||
}
|
||||
|
||||
.--paragraph {
|
||||
$this-padding: 30vw;
|
||||
$this-padding: 20vw;
|
||||
|
||||
@media (min-width: $breakpoint) {
|
||||
padding-right: $this-padding ;
|
||||
|
||||
@@ -16,4 +16,7 @@ $nls-color-black: #0f0f11;
|
||||
//
|
||||
// RESPONSIVE
|
||||
//
|
||||
$breakpoint: 980px;
|
||||
$breakpoint: 640px;
|
||||
// $breakpoint-height: 360px;
|
||||
$breakpoint-height: 568px;
|
||||
$breakpoint-width: 640px;
|
||||
246
src/styles/index.css
Normal file
246
src/styles/index.css
Normal file
@@ -0,0 +1,246 @@
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 1.42;
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
}
|
||||
|
||||
main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
max-width: 80vw;
|
||||
margin: 0 auto;
|
||||
fill: #fff;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 200%;
|
||||
}
|
||||
@media (min-width: 980px) {
|
||||
h1 {
|
||||
font-size: 300%;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 125%;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
img {
|
||||
mix-blend-mode: color-burn;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
}
|
||||
@media (max-width: 980px) {
|
||||
img {
|
||||
margin: 0 auto 2rem;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
article header {
|
||||
height: 100vh;
|
||||
}
|
||||
article footer {
|
||||
height: 200vh;
|
||||
}
|
||||
|
||||
.--large {
|
||||
font-size: 150%;
|
||||
}
|
||||
|
||||
.--center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.--secondary {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
@media (min-width: 980px) {
|
||||
.--paragraph {
|
||||
padding-right: 20vw;
|
||||
}
|
||||
}
|
||||
@media (min-width: 980px) {
|
||||
.--paragraph.--center {
|
||||
padding-right: 10vw;
|
||||
padding-left: 10vw;
|
||||
}
|
||||
}
|
||||
|
||||
article > section,
|
||||
article > header,
|
||||
article > footer {
|
||||
top: 0;
|
||||
position: sticky;
|
||||
position: -webkit-sticky;
|
||||
position: -moz-sticky;
|
||||
position: -ms-sticky;
|
||||
position: -o-sticky;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: start;
|
||||
height: 90vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
@media (min-width: 980px) {
|
||||
article > section,
|
||||
article > header,
|
||||
article > footer {
|
||||
height: 80vh;
|
||||
}
|
||||
}
|
||||
article > section.--selected, article > section.--full-height,
|
||||
article > header.--selected,
|
||||
article > header.--full-height,
|
||||
article > footer.--selected,
|
||||
article > footer.--full-height {
|
||||
height: 100vh;
|
||||
}
|
||||
article > section.--black,
|
||||
article > header.--black,
|
||||
article > footer.--black {
|
||||
background: #0f0f11;
|
||||
color: #fff;
|
||||
}
|
||||
article > section.--black .teaser:after,
|
||||
article > header.--black .teaser:after,
|
||||
article > footer.--black .teaser:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: linear-gradient(to top, #0f0f11 0%, rgba(15, 15, 17, 0) 50%);
|
||||
}
|
||||
article > section.--green,
|
||||
article > header.--green,
|
||||
article > footer.--green {
|
||||
background: #79C28D;
|
||||
}
|
||||
article > section.--green .teaser:after,
|
||||
article > header.--green .teaser:after,
|
||||
article > footer.--green .teaser:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: linear-gradient(to top, #79C28D 0%, rgba(121, 194, 141, 0) 50%);
|
||||
}
|
||||
article > section.--blue,
|
||||
article > header.--blue,
|
||||
article > footer.--blue {
|
||||
background: #5A99C3;
|
||||
}
|
||||
article > section.--blue .teaser:after,
|
||||
article > header.--blue .teaser:after,
|
||||
article > footer.--blue .teaser:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: linear-gradient(to top, #5A99C3 0%, rgba(90, 153, 195, 0) 50%);
|
||||
}
|
||||
article > section.--violet,
|
||||
article > header.--violet,
|
||||
article > footer.--violet {
|
||||
background: #7E86CA;
|
||||
}
|
||||
article > section.--violet .teaser:after,
|
||||
article > header.--violet .teaser:after,
|
||||
article > footer.--violet .teaser:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: linear-gradient(to top, #7E86CA 0%, rgba(126, 134, 202, 0) 50%);
|
||||
}
|
||||
article > section.--purple,
|
||||
article > header.--purple,
|
||||
article > footer.--purple {
|
||||
background: #C18FBD;
|
||||
}
|
||||
article > section.--purple .teaser:after,
|
||||
article > header.--purple .teaser:after,
|
||||
article > footer.--purple .teaser:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: linear-gradient(to top, #C18FBD 0%, rgba(193, 143, 189, 0) 50%);
|
||||
}
|
||||
article > section.--pink,
|
||||
article > header.--pink,
|
||||
article > footer.--pink {
|
||||
background: #EC7A9A;
|
||||
}
|
||||
article > section.--pink .teaser:after,
|
||||
article > header.--pink .teaser:after,
|
||||
article > footer.--pink .teaser:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background: linear-gradient(to top, #EC7A9A 0%, rgba(236, 122, 154, 0) 50%);
|
||||
}
|
||||
article > section .teaser,
|
||||
article > header .teaser,
|
||||
article > footer .teaser {
|
||||
overflow: hidden;
|
||||
padding: 5rem 3rem;
|
||||
}
|
||||
|
||||
.cards {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin: 0 1rem;
|
||||
padding: 0;
|
||||
}
|
||||
.cards__item {
|
||||
flex: 1 1 30%;
|
||||
list-style-type: none;
|
||||
border: 1px solid #fff;
|
||||
border-radius: 0.2rem;
|
||||
padding: 2rem 3rem;
|
||||
margin: 1rem 1rem;
|
||||
}
|
||||
|
||||
.columns {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
@media (min-width: 980px) {
|
||||
.columns {
|
||||
flex-flow: row;
|
||||
}
|
||||
}
|
||||
.columns__item {
|
||||
flex-grow: 1;
|
||||
flex-basis: 0;
|
||||
}
|
||||
@@ -10,13 +10,17 @@ section {
|
||||
position: -ms-sticky;
|
||||
position: -o-sticky;
|
||||
display: flex; flex-direction: column; justify-content: start;
|
||||
height: 100vh;
|
||||
height: 90vh;
|
||||
overflow: hidden;
|
||||
|
||||
@media (min-width: $breakpoint) {
|
||||
height: 50vh;
|
||||
height: 80vh;
|
||||
}
|
||||
}
|
||||
|
||||
section,
|
||||
article > header,
|
||||
article > footer {
|
||||
// color: $nls-color-white;
|
||||
|
||||
&.--selected {
|
||||
|
||||
Reference in New Issue
Block a user