scrimba
Figma to code
Landing page
A Note About Accessibility
Go Pro!Bootcamp

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

A Note About Accessibility
AboutCommentsNotes
A Note About Accessibility
Expand for more info
index.css
run
preview
console
*, *:before, *:after {
box-sizing: border-box;
}

body {
margin: 0;
font-family: 'Poppins';
}

.left-col {
background: #5200FF;
color: white;
position: relative;
text-align: center;
}

.left-col:before {
content: '';
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
opacity: 0.22;
background-image: url('bg.jpg');
background-size: cover;
background-position: 100%;
}

.content {
position: relative;
}

.left-col, .right-col {
padding: 6.75rem 8vw;
}

h1 {
margin: 0;
font-family: 'Bebas Neue';
font-weight: normal;
font-size: 4rem;
line-height: 1.2em;
}

p {
font-size: 1.5rem;
font-weight: 500;
margin-bottom: 0;
}

label {
display: block;
font-size: 1.125rem;
margin-bottom: .77rem;
}

input {
width: 100%;
background: #EDEDED;
border: 1px solid #C7C7C7;
font-size: 1rem;
padding: .75rem;
outline: none;
margin-bottom: 2.5em;
}

button {
width: 100%;
background: #5200FF;
padding: 1em;
color: white;
border: none;
font-size: 1.125rem;
cursor: pointer;
}

@media only screen and (min-width: 770px) {
.form {
display: grid;
grid-template-columns: repeat(2, auto);
gap: 2em;
}

button {
width: auto;
padding: 1em 2.5em;
}
}

@media only screen and (min-width: 1260px) {
body {
display: flex;
}

.left-col, .right-col {
flex-basis: 0;
flex-grow: 1;
height: 100vh;
display: grid;
place-items: center;
}

.left-col {
text-align: right;
}
}
Console
/index.html
-1:10