Base design finished & content

This commit is contained in:
2017-07-13 15:22:43 +02:00
parent 050d446960
commit 9fe6157707
11 changed files with 584 additions and 117 deletions

View File

@ -7,6 +7,7 @@ $arrow-bg: rgba(255, 255, 255, .7);
$white: #fff;
$page-bg: #3498db;
$header-link-color: #ccc;
$subtext-color: #666;
html {
box-sizing: border-box;
@ -51,7 +52,6 @@ h3,
h4,
h5,
h6 {
color: $header-color;
font-family: 'Oxygen', sans-serif;
line-height: 2em;
margin: 0 0 .4em;
@ -91,7 +91,7 @@ a {
}
$front-page-picture-header: 120vh;
$front-page-bg-header: 50vh;
$front-page-bg-header: 95vh;
// Big cover on the frontpage
@ -132,6 +132,32 @@ $front-page-bg-header: 50vh;
}
}
// Bouncing arrow
.scroll-down {
animation: bounce 4s 2s infinite;
color: $arrow-bg;
display: block;
font-size: 24px;
height: 24px;
left: 50%;
margin-left: -12px;
position: relative;
text-align: center;
text-decoration: none;
transform: rotate(-90deg);
transition: translateZ(0);
width: 24px;
z-index: 100;
// Stop the bouncing while hovered
&:hover {
animation: none;
color: $white;
}
}
.header-text {
height: ($front-page-bg-header + $front-page-picture-header);
left: 0;
@ -139,65 +165,206 @@ $front-page-bg-header: 50vh;
top: 0;
width: 100%;
z-index: 50;
}
.top-header {
height: 15vh;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 100;
&:before {
border-right: 60vw solid transparent;
border-top: 15vh solid $page-bg;
bottom: 0;
content: '';
position: absolute;
right: 50%;
width: 0;
}
}
.top-header-contents {
color: $white;
height: 10vh;
padding: 2.5vh;
position: relative;
width: 100%;
z-index: 110;
h3 {
.top-content {
color: $white;
font-family: 'Catamaran', sans-serif;
font-size: 1.8em;
font-weight: 800;
line-height: 1em;
margin: 0;
padding-top: 35vh;
text-align: center;
h1 {
font-family: 'Source Sans Pro', sans-serif;
font-size: 90px;
font-weight: 300;
line-height: 1.1em;
margin: 0;
}
h2 {
font-family: 'Source Sans Pro', sans-serif;
font-size: 24px;
font-weight: 300;
line-height: 1.1em;
margin-bottom: 10px;
margin-top: 20px;
}
h4 {
font-family: 'Source Sans Pro', sans-serif;
font-size: 18px;
font-weight: 300;
line-height: 1.4em;
margin-top: 30px;
}
a {
margin-top: 60px;
}
}
h6 {
a {
color: $header-link-color;
text-decoration: none;
$top-layer-effect: rgba(0, 0, 0, .15);
$layer-effect: #eee;
&:hover {
color: $white;
.hidden-content {
margin: auto;
margin-top: 10vh;
max-width: 1140px;
transition: translateZ(0);
width: 60vw;
}
.cv-box {
background: $white;
box-shadow:
// Top layer
0 1px 1px $top-layer-effect,
// Second layer
0 10px 0 -5px $layer-effect,
// Second layer shadow
0 10px 1px -4px $top-layer-effect,
// Third layer
0 20px 0 -10px $layer-effect,
// Third layer shadow
0 20px 1px -9px $top-layer-effect;
padding: 30px;
transition: translateZ(0);
p {
font-size: .9em;
margin: 1em 0;
}
.right {
display: inline-block;
float: right;
}
.subtext {
color: $subtext-color;
display: block;
font-size: .8em;
line-height: 1.3em;
width: 80%;
}
.languages {
p {
font-size: .8em;
line-height: 1.5em;
margin: 0;
padding: 0;
}
}
font-family: 'Catamaran', sans-serif;
font-size: .8em;
.profile {
h6 {
font-size: 1.2em;
font-weight: 300;
margin: 1em 0 .4em;
}
p {
font-size: .8em;
line-height: 1.5em;
margin: 0;
padding: 0;
}
.full-width {
clear: both;
margin-top: 5vh;
width: 100%;
}
.small-footer {
color: $subtext-color;
}
.links {
list-style-type: none;
padding: 0;
li {
font-family: 'Source Sans Pro', sans-serif;
font-size: 16px;
height: 22px;
line-height: 18px;
padding: 2px 0 0;
a {
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}
}
}
.profile-picture {
float: left;
margin: 0 20px 20px 0;
}
h5 {
font-family: 'Lato', sans-serif;
font-size: 1.8rem;
font-weight: 600;
line-height: 3rem;
margin-bottom: 2vh;
}
h6 {
font-family: 'Lato', sans-serif;
font-size: 1.6rem;
line-height: 2rem;
}
}
$tag-bg: rgba(255, 255, 255, .3);
.tags {
color: $white;
font-family: 'Source Sans Pro', sans-serif;
line-height: 1.1em;
margin-top: 10vh;
text-align: center;
small {
font-size: .8em;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
background: $tag-bg;
border-radius: 5px;
display: inline-block;
font-size: 16px;
line-height: 1.5em;
margin: 0 .5vw;
padding: 4px 10px;
&:hover {
opacity: .8;
}
}
a {
color: $white;
}
}
}
.homepage-top-header {
display: none;
}
.top-header-animate {
display: none;
.profile-picture {
border-radius: 48px;
height: 96px;
width: 96px;
}
.main-header {