lbry.tech/app/sass/pages/_home.scss

359 lines
7.9 KiB
SCSS
Raw Permalink Normal View History

2018-10-06 00:46:08 +02:00
body.home { // sass-lint:disable-line no-qualifying-elements // TODO: FIX THIS
2018-09-30 19:34:29 +02:00
@media (min-width: 1001px) {
main > div:first-of-type {
display: grid;
grid-gap: 0;
grid-template-areas:
2018-10-06 00:46:08 +02:00
"header header header"
"features features features"
"intro intro github"
"docs docs github"
"contribute contribute contribute"
"develop develop develop"
"community community community";
2018-09-30 19:34:29 +02:00
}
}
}
2018-05-02 00:45:31 +02:00
.home {
2018-05-11 16:07:16 +02:00
padding-right: env(safe-area-inset-right);
2018-05-11 16:08:53 +02:00
padding-left: env(safe-area-inset-left);
2018-05-11 16:07:16 +02:00
2018-05-02 00:45:31 +02:00
h2 {
font-weight: normal;
2018-05-02 00:45:31 +02:00
margin-bottom: 4rem;
text-align: center;
2018-05-02 00:45:31 +02:00
2018-05-10 21:13:25 +02:00
@media (min-width: 851px) {
font-size: 1.75rem;
}
@media (max-width: 850px) {
font-size: 1.25rem;
}
2018-05-08 22:55:33 +02:00
}
2018-05-02 00:45:31 +02:00
hr {
width: 100%; height: 1px;
2018-10-13 00:29:53 +02:00
background-color: rgba($lbry-black, 0.1);
2018-05-02 00:45:31 +02:00
border: none;
margin-bottom: 4rem;
}
.hero {
2018-10-06 00:46:08 +02:00
height: calc(50vh - 4rem); min-height: 300px;
2018-05-02 00:45:31 +02:00
align-items: center;
2018-10-13 00:29:53 +02:00
background-color: $lbry-black;
2018-08-29 01:57:18 +02:00
// background-image: url("/assets/media/svg/text-logo--white.svg");
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 800 300' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill='%23fcfcfc' d='M567.328, 43.44l72.864, 130.464l0, 82.656l46.944, 0l0, -82.656l72.576, -130.464l-50.688, 0l-44.64, 84.672l-44.64, -84.672l-52.416, 0Z'/%3E %3Cpath fill='%23fcfcfc' d='M520.672, 173.616c22.464, -10.656 34.848, -31.968 34.848, -61.056c0, -44.64 -26.496, -68.832 -81.216, -69.12l-82.368, 0l0, 213.12l46.656, 0l0, -75.168l35.136, 0l31.392, 75.168l52.416, 0l-36.864, -82.944Zm-46.656, -32.544l-35.424, 0l0, -56.448l35.712, 0c23.904, 0 31.968, 12.96 31.968, 27.936c0, 15.264 -8.352, 28.512 -32.256, 28.512Z'/%3E %3Cpath fill='%23fcfcfc' d='M328.864, 150.576c15.552, -7.2 28.512, -23.04 28.512, -48.096c0, -34.848 -25.344, -58.464 -67.104, -58.464l-43.776, 0l-46.368, 0l0, 212.544l89.568, 0c42.048, 0 70.272, -19.584 70.272, -55.872c0, -26.784 -14.976, -42.048 -31.104, -50.112Zm-43.776, -67.104c19.008, 0 25.92, 14.112 25.92, 25.344c0, 11.808 -7.2, 24.768 -25.92, 24.768l-38.592, 0l0, -50.112l38.592, 0Zm2.592, 133.632l-41.184, 0l0, -49.248l41.184, 0c15.264, 0 26.208, 10.08 26.208, 25.056c0, 14.976 -10.656, 24.192 -26.208, 24.192Z'/%3E %3Cpath fill='%23fcfcfc' d='M87.52, 214.8l0, -171.36l-47.232, 0l0, 213.12l130.752, 0l0, -41.76l-83.52, 0Z'/%3E %3C/svg%3E");
2018-05-02 00:45:31 +02:00
background-position: center;
background-repeat: no-repeat;
display: flex;
2018-05-18 07:39:36 +02:00
grid-area: header;
2018-05-02 00:45:31 +02:00
justify-content: center;
2018-10-01 04:32:48 +02:00
margin-bottom: 2rem;
2018-05-02 00:45:31 +02:00
2018-05-10 21:13:25 +02:00
@media (max-width: 850px) {
background-size: cover;
}
h1 {
2018-10-06 00:46:08 +02:00
padding: 0.4rem 1rem;
2018-10-13 00:29:53 +02:00
background-color: $lbry-white;
2019-02-15 23:45:25 +01:00
border: 1px solid $lbry-gray-1;
2018-05-02 00:45:31 +02:00
box-decoration-break: clone;
display: inline;
font-weight: normal;
2018-05-02 00:45:31 +02:00
line-height: 2;
2018-08-01 00:26:12 +02:00
-webkit-box-decoration-break: clone; // Safari
@media (min-width: 851px) {
font-size: 1.75rem;
}
@media (max-width: 850px) {
font-size: 1.25rem;
}
2018-05-02 00:45:31 +02:00
}
}
.features {
2019-02-15 23:45:25 +01:00
border-bottom: 1px solid $lbry-gray-1;
2018-10-06 00:46:08 +02:00
grid-area: features;
2018-05-02 00:45:31 +02:00
}
.intro,
.docs,
.contribute,
.develop,
.community {
2018-05-02 00:45:31 +02:00
padding-top: 3rem;
padding-bottom: 3.5rem;
.inner-wrap {
position: relative;
}
2018-05-02 00:45:31 +02:00
h3 {
letter-spacing: 0.1rem;
line-height: 1;
text-transform: uppercase;
2018-05-10 21:13:25 +02:00
@media (min-width: 1301px) {
top: -0.85rem; left: -2rem;
2018-10-13 00:29:53 +02:00
color: rgba($lbry-black, 0.045);
2018-05-10 21:13:25 +02:00
font-size: 4rem;
position: absolute;
}
@media (max-width: 1300px) {
2018-10-13 00:29:53 +02:00
color: $lbry-black;
2018-05-10 21:13:25 +02:00
}
@media (min-width: 901px) and (max-width: 1300px) {
font-size: 3rem;
}
@media (max-width: 900px) {
font-size: 2rem;
margin-bottom: 1rem;
}
}
2018-10-06 00:46:08 +02:00
ol,
ul {
margin-bottom: 1.5rem;
}
p {
max-width: 1000px;
2018-10-06 00:46:08 +02:00
margin-bottom: 1.5rem;
2018-05-10 21:13:25 +02:00
@media (min-width: 901px) {
font-size: 1.5rem;
line-height: 1.55;
}
@media (max-width: 900px) {
line-height: 1.33;
}
2019-02-15 23:45:25 +01:00
@media (min-width: 501px) and (max-width: 900px) {
font-size: 1.25rem;
}
@media (max-width: 500px) {
font-size: 1rem;
}
&:first-of-type {
padding-top: 0.5rem;
}
}
.cta {
@extend .__button-black;
top: 0.5rem;
2018-05-02 00:45:31 +02:00
}
}
.intro,
.docs,
.contribute,
.develop {
2019-02-15 23:45:25 +01:00
border-bottom: 1px solid $lbry-gray-1;
2018-05-02 00:45:31 +02:00
}
.intro,
.docs {
2018-05-18 07:39:36 +02:00
@media (min-width: 1301px) {
2019-02-15 23:45:25 +01:00
padding-right: 5%;
2018-05-18 07:39:36 +02:00
padding-left: 10%;
}
}
.intro {
2018-05-18 07:39:36 +02:00
grid-area: intro;
}
.docs {
2018-05-18 07:39:36 +02:00
grid-area: docs;
}
.community,
.contribute {
2018-05-03 23:55:34 +02:00
p {
2018-05-10 21:13:25 +02:00
@media (min-width: 1301px) {
margin-right: auto;
margin-left: auto;
text-align: center;
}
2018-05-03 23:55:34 +02:00
}
ul {
list-style-type: none;
padding-top: 1rem;
&::after {
@include clearfix;
}
2018-05-10 21:13:25 +02:00
@media (min-width: 901px) {
font-size: 1.5rem;
}
@media (min-width: 751px) and (max-width: 900px) {
font-size: 1.25rem;
}
@media (max-width: 750px) {
font-size: 1rem;
}
2018-05-03 23:55:34 +02:00
li {
float: left;
position: relative;
text-align: center;
2018-05-10 21:13:25 +02:00
@media (max-width: 750px) {
min-width: 8rem;
2018-10-06 00:46:08 +02:00
margin-bottom: 2rem;
2018-05-03 23:55:34 +02:00
}
a {
display: block;
2018-05-10 21:13:25 +02:00
padding-top: 4rem;
2018-10-06 00:46:08 +02:00
position: relative;
2018-05-03 23:55:34 +02:00
transition: color 0.2s;
2018-05-10 21:13:25 +02:00
&::before {
width: 100%; height: 100%;
2018-10-06 00:46:08 +02:00
left: 0;
2018-05-10 21:13:25 +02:00
background-position: center 0;
background-repeat: no-repeat;
content: "";
position: absolute;
}
2018-05-03 23:55:34 +02:00
&:not(:hover) {
color: inherit;
}
&:hover {
2018-10-13 00:29:53 +02:00
color: $lbry-teal-3;
2018-05-03 23:55:34 +02:00
}
}
}
}
}
.contribute {
2018-05-18 07:39:36 +02:00
grid-area: contribute;
ul {
2018-11-01 17:23:38 +01:00
@media (min-width: 701px) {
margin-bottom: 4rem;
}
@media (max-width: 700px) {
margin-bottom: 2rem;
}
li {
@media (min-width: 701px) {
2018-11-01 17:23:38 +01:00
width: calc(100% / 4); height: 6rem;
}
@media (max-width: 700px) {
2018-11-01 17:23:38 +01:00
width: 50%; height: 5rem;
}
2018-11-01 17:23:38 +01:00
&::before {
width: 100%; height: 100%;
background-position: center;
background-repeat: no-repeat;
content: "";
display: block;
2018-05-10 21:13:25 +02:00
@media (min-width: 901px) {
top: -1rem;
2018-10-06 00:46:08 +02:00
background-size: 4rem;
2018-05-03 23:55:34 +02:00
}
2018-05-10 21:13:25 +02:00
@media (max-width: 900px) {
top: 0;
2018-10-06 00:46:08 +02:00
background-size: 3rem;
2018-05-03 23:55:34 +02:00
}
}
2018-11-01 17:23:38 +01:00
&:nth-child(1)::before {
background-image: url("/assets/media/svg/keyboard.svg");
}
2018-11-01 17:23:38 +01:00
&:nth-child(2)::before {
background-image: url("/assets/media/svg/anchor.svg");
}
2018-11-01 17:23:38 +01:00
&:nth-child(3)::before {
background-image: url("/assets/media/svg/monitor.svg");
}
2018-11-01 17:23:38 +01:00
&:nth-child(4)::before {
background-image: url("/assets/media/svg/flag.svg");
}
}
}
}
2018-05-10 21:13:25 +02:00
.develop {
2018-05-18 07:39:36 +02:00
grid-area: develop;
}
.community {
2018-05-18 07:39:36 +02:00
grid-area: community;
2018-05-10 21:13:25 +02:00
ul {
li {
@media (min-width: 701px) {
width: calc(100% / 3);
}
@media (max-width: 700px) {
width: 50%;
}
2018-05-10 21:13:25 +02:00
a::before {
@media (min-width: 901px) {
top: -2rem;
2018-10-06 00:46:08 +02:00
background-size: 6rem;
2018-05-10 21:13:25 +02:00
}
@media (max-width: 900px) {
top: -0.5rem;
2018-10-06 00:46:08 +02:00
background-size: 4rem;
2018-05-10 21:13:25 +02:00
}
}
&:nth-child(1) a::before {
2018-07-23 23:46:58 +02:00
background-image: url("/assets/media/svg/discord.svg");
2018-05-10 21:13:25 +02:00
}
&:nth-child(2) a::before {
background-image: url("/assets/media/svg/keyboard.svg");
2018-05-10 21:13:25 +02:00
}
&:nth-child(3) a::before {
background-image: url("/assets/media/svg/reddit.svg");
2018-05-10 21:13:25 +02:00
}
}
}
}
2018-05-02 00:45:31 +02:00
}