Added main sections, visual improvements

This commit is contained in:
Florian Sylvain
2022-01-27 00:16:50 +01:00
parent 72e02a412c
commit e92a58aa02
4 changed files with 184 additions and 64 deletions
+94 -28
View File
@@ -10,18 +10,18 @@
* {
box-sizing: border-box;
scroll-behavior: smooth;
color: #fff;
font-family: Manrope;
font-variation-settings: "wght" 600;
}
body {
width: 100%;
height: 2000px;
margin: 0;
color: #fff;
font-family: Manrope;
font-variation-settings: 'wght' 500;
background-color: #101010;
}
@@ -73,13 +73,26 @@ nav a:nth-child(0n+5) {
transition: transform 200ms, opacity 200ms, letter-spacing 200ms;
}
.slide-elements a {
opacity: 100%;
transform: translateX(0);
h2 {
letter-spacing: 2px;
padding-bottom: 10px;
border-bottom: 2px solid #101010;
transition: transform 200ms, text-shadow 200ms;
}
h2:first-letter {
color: #3AC414;
font-variation-settings: 'wght' 600;
}
a {
text-decoration: none;
color: #fff;
}
.slide-elements a {
opacity: 100%;
transform: translateX(0);
}
.hamburger {
@@ -138,7 +151,7 @@ a {
}
.slide-in {
transform: translateY(0);
transform: translateY(0) translateX(0) !important;
}
.main-title {
@@ -157,11 +170,10 @@ a {
text-align: center;
font-family: Manrope;
font-variation-settings: "wght" 600;
font-variation-settings: 'wght' 500;
font-size: 2em;
letter-spacing: 0.1em;
color: #fff;
text-shadow: #ffff 0 0 0;
}
.main-title h1 {
@@ -174,22 +186,9 @@ a {
text-shadow: #253622 10px 10px 10px;
}
#content {
width: 80%;
margin: auto;
}
#content img {
width: 100%;
border-radius: 0.5em;
}
#content > div {
padding-top: 55px;
}
#content > div:last-child {
margin-bottom: 100vh;
h2:hover {
transform: translateX(-2px) translateY(-2px);
text-shadow: #253622 3px 3px 5px;
}
.to-fade {
@@ -199,4 +198,71 @@ a {
.fade-in {
opacity: 100%;
}
}
#content > div {
padding: 55px 10% 55px 10%;
}
#content > div:nth-child(2n-1) {
color: #101010;
background-color: #fff;
}
#content > div:nth-child(2n) > h2 {
border-bottom: 2px solid #fff;
}
#content img {
width: 300px;
height: 300px;
margin: 5px 0 5px 0;
box-shadow: #0002 0 0 25px;
transform: scale(0.95) rotate(0);
transition: transform 1s, box-shadow 200ms;
}
.grow-in {
transform: scale(1) rotate(2deg) !important;
}
.block {
display: flex;
flex-direction: column;
align-items: center;
}
.block > p {
margin: 0;
padding: 25px 3px 0 3px;
}
#education > div, #experience > div {
transform: translateX(-150%);
transition: transform 200ms;
margin-bottom: 30px;
}
#education h3, #experience h3 {
font-variation-settings: 'wght' 600;
}
#education > div:last-child, #experience > div:last-child {
margin-bottom: 0;
}
#education p + p {
font-size: smaller;
}
.degree {
font-variation-settings: 'wght' 500;
}
.time-range {
font-size: smaller;
font-variation-settings: 'wght' 300;
}