Explorer
project
graph-bg.svg
index.css
index.html
index.js
person.jpg
phone.svg
Dependencies
Bootcamp
Study group
Collaborate with peers in your dedicated #study-group channel.
Code reviews
Submit projects for review using the /review
command in your #code-reviews channel
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;700&family=Playfair+Display:wght@200;500&display=swap');
html, body {
margin: 0;
padding: 0;
}
body {
background: #F1F1F1 url('graph-bg.svg') no-repeat;
background-position: 0 20%;
background-size: 150%;
font-family: 'Montserrat', sans-serif;
font-weight: normal;
text-align: center;
}
h1, .quote {
font-family: 'Playfair Display', serif;
}
ul {
list-style: none;
padding: 0;
}
.wrapper {
padding: .5em;
margin-top: 4em;
position: relative;
}
.phone {
position: absolute;
top: 2em;
left: 0;
right: 0;
margin: auto;
width: 250px;
}
.left,.right {
position: relative;
}
.left {
height: 50vh;
display: grid;
place-content: center;
}
h1 {
width: 70%;
margin: 0 auto 1.5em;
}
.cta {
text-decoration: none;
background: #1DB473;
color: white;
font-weight: bold;
padding: 1em;
border-radius: .3em;
}
.right {
margin-top: 12em;
}
.right ul {
width: 80%;
margin: 0 auto 2em;
}
li {
margin-bottom: 2em;
}
li img {
width: 50px;
height: 50px;
border-radius: 50%;
}
@media (min-width: 400px) {
body {
background-position: 0 30%;
background-size: 130%;
}
h1 {
font-size: 2.5em;
width: 90%;
}
}
@media (min-width: 850px) {
body {
text-align: left;
height: 100vh;
display: grid;
place-content: center;
background-position: 0 80%;
background-size: 100%;
}
.wrapper .phone {
top: 1.7em;
}
.wrapper {
display: flex;
padding: 2em;
width: 90%;
margin: 0 auto;
}
h1 {
margin-left: 0;
width: 100%;
}
.phone {
left: 10%;
top: 5em;
margin: unset;
}
.left {
width: 75%;
margin-right: 3em;
}
.right {
margin-top: 0;
padding: 3em;
}
.right ul {
width: 100%;
}
.right ul li {
display: grid;
grid-template-columns: repeat(2, auto);
align-items: center;
grid-gap: .7em;
background: #e8e8e8;
border-radius: .5em;
padding: 1em;
}
li p {
margin: 0;
}
.quote {
font-weight: 300;
}
.auth {
margin-top: 1em;
font-size: .8em;
}
li:nth-of-type(1) {
transform: translateX(-30px);
}
li:nth-of-type(2) {
transform: translateX(30px);
}
}
@media (min-width: 1200px) {
body {
font-size: 17px;
}
}