feat: add frontend

This commit is contained in:
2022-10-07 16:15:53 +02:00
parent abfaf19c47
commit 97059d4c6e
72 changed files with 47026 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
$white: #FFFFFF;
$black: #000000;
$blue: #22B9A6;
$blue_hover: #009482;
$light_blue: #8BCDCD;
$yellow: #E7E145;
$orange: #F39345;
$orange_hover: #DC6A00;
$gray_1: #F6F6F6;
$gray_2: #E8E8E8;
$gray_3: #9B9B9B;
$gray_4: #666666;

View File

@@ -0,0 +1,7 @@
$font-primary: Arial,Helvetica Neue,Helvetica,sans-serif;
$main-font-size: 1.25rem;
$secondary-font-size: 1.125rem;
$tertiary-font-size: 1rem;
$small-font-size: .875rem;
$title-font-size: 1.375rem;

View File

@@ -0,0 +1,3 @@
@import "_color";
@import "_font";
@import "_spacing";

View File

@@ -0,0 +1,62 @@
@import "_font";
%flex-center {
display: flex;
justify-content: center;
align-items: center;
}
%main-text {
font-size: $main-font-size;
font-style: normal;
font-weight: 400;
line-height: 2.1rem;
letter-spacing: 0;
}
%main-text-2 {
font-size: $main-font-size;
font-style: normal;
font-weight: 400;
line-height: 1.8rem;
letter-spacing: 0;
}
%secondary-text {
font-size: $secondary-font-size;
font-style: normal;
font-weight: 400;
line-height: 1.625rem;
letter-spacing: 0;
}
%secondary-text-bold {
@extend %secondary-text;
font-weight: 700;
}
%tertiary-text {
font-size: $tertiary-font-size;
font-style: normal;
font-weight: 400;
line-height: 1.625rem;
letter-spacing: 0;
}
%tertiary-text-bold {
@extend %tertiary-text;
font-weight: bold;
}
%main-text-bold {
@extend %main-text;
font-weight: 700;
}
%main-text-small {
font-size: $small-font-size;
font-style: normal;
font-weight: 400;
line-height: 1.425rem;
letter-spacing: 0;
}

View File

@@ -0,0 +1,16 @@
$page_width: 1200px;
$content_width: 920px;
$header_height: 78px;
$max_z_index: 999;
$xxx_small: .5rem;
$xx_small: .75rem;
$x_small: 1.5rem;
$small: 2rem;
$medium: 3rem;
$x_medium: 3.75rem;
$xx_medium: 5rem;
$large: 7.5rem;
$x_large: 11.875rem;
$xx_large: 16.25rem;

View File

@@ -0,0 +1,190 @@
@import "_color";
@import "_font";
@import "_placeholders";
@import "_mixin";
@import "_spacing";
$breakpoint: 1024px;
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-family: $font-primary;
background: $white;
color: $gray_4;
scroll-behavior: smooth;
}
a {
color: $light_blue;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
ul, ol {
margin: $xx_small $small;
}
h1 {
font-size: 1.75rem;
line-height: 2.125rem;
margin: $medium 0 $small 0;
color: $black;
text-align: center;
@media only screen and (max-width: $breakpoint) {
margin: $xx_small;
}
}
h2 {
font-weight: bold;
font-size: 2rem;
line-height: 2.75rem;
letter-spacing: -0.02em;
margin: $x-medium 0 $medium 0;
@media only screen and (max-width: $breakpoint) {
margin: $xx_small;
}
}
h3 {
font-style: normal;
font-weight: bold;
font-size: 1.75rem;
line-height: 2rem;
margin: $small 0;
}
p + p { margin-top: 1.5rem }
hr {
color: $gray_3;
margin: $xxx_small 0;
}
.bold {
font-weight: bold;
}
.button {
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
padding: 0 32px;
line-height: 60px;
color: $white;
border-radius: 100px;
border: none;
font-weight: 700;
font-size: $tertiary-font-size;
font-style: normal;
}
.button:hover {
cursor: pointer;
text-decoration: none;
}
.button-container {
margin: $medium 0;
}
.button.orange:hover:not(:disabled) {
background: $orange_hover;
}
.button.orange {
background: $orange;
}
.button.blue:hover:not(:disabled) {
background: $blue_hover;
}
.button.blue {
background: $blue;
}
.button.gray:hover:not(:disabled) {
background: $gray_3;
color: $gray_1;
}
.button.gray {
background: $gray_1;
color: $gray_3;
}
.button:disabled {
background: $gray_1;
color: $gray_3;
cursor: default;
}
input[type=text],
input[type=password] {
background: $gray_1;
border: 1px solid $gray_2;
border-radius: 100px;
line-height: 50px;
padding: 0 $x_small;
}
input[type=text]::placeholder,
input[type=password]::placeholder {
color: $gray_3;
}
.center {
display: flex;
justify-content: center;
align-items: center;
height: 70vh;
}
.text-center {
text-align: center;
}
.content {
max-width: none;
display: grid;
grid-template-columns: [fullWidth-start] 1rem
[left-start] 1fr
[article-start right-start] minmax(20ch, $content_width)
[article-end left-end] 1fr
[right-end] 1rem [fullWidth-end];
}
.content > * {
grid-column: article;
}
.full-width {
grid-template-columns: minmax(20ch, $content_width);
justify-content: center;
grid-column: fullWidth;
display: grid;
padding: $small;
}
@supports (grid-template-columns: subgrid) {
.full-width {
grid-template-columns: subgrid;
padding: 0;
}
.full-width-center {
grid-column: article;
}
.full-width-right {
grid-column: right;
text-align: right;
}
.full-width-left {
grid-column: left;
}
}