<body>
<main>
<section class="join-c">
<h1>Join our community</h1>
<h3>30-day, hassle-free money back guarantee</h3>
<p>Gain access to our full library of tutorials along with expert code reviews.
Perfect for any developers who are serious about honing their skills.</p>
</section>
<section class="monthly" >
<h4>Monthly Subscription</h4>
<div class="price"><span class="">$29</span><span>per month</span></div>
<p>Full access for less than $1 a day</p>
<input type="submit" value="Sign Up">
</section>
<section class="why-us">
<h4>Why Us</h4>
<ul>
<li>Tutorials by industry experts</li>
<li>Peer & expert code review</li>
<li>Coding exercises</li>
<li>Access to our GitHub repos</li>
<li>Community forum</li>
<li>Flashcard decks</li>
<li>New videos every week</li>
</ul>
</section>
</main>
html {
font-size: 16px;
}
body {
display: flex;
justify-content: center;
align-items: center;
max-width: 100%;
height: 100vh;
background: hsl(206, 47%, 93%);
font-family: 'Karla', sans-serif;
margin: 0;
}
main, section {
box-sizing: border-box;
}
section {
box-sizing: border-box;
}
h1, h3, h4, p {
margin: 0;
}
h4{
font-size: 18px;
}
h4, .monthly p {
color: hsl(0, 0%, 100%);
}
h1 {
color: hsl(179, 61%, 44%);
}
li {
list-style: none;
}
ul {
padding: 0;
}
.join-c p {
color: hsl(218, 22%, 67%);
line-height: 28px;
}
.monthly, .why-us {
padding: 30px;
width: 50%;
}
.monthly {
background: hsl(179, 61%, 44%);
border-radius: 0 0 0 10px;
}
.price {
display: flex;
align-items: center;
}
.why-us {
background: hsl(179, 47%, 52%);
border-radius: 0 0 10px 0;
}
span:first-child {
font-size: 35px;
color: hsl(0, 0%, 100%);
font-weight: 700;
padding: 10px 10px 10px 0;
}
span:last-child, li {
color: hsla(0, 0%, 100%, 0.55);
}
main {
display: flex;
align-items: stretch;
justify-content: flex-start;
flex-wrap: wrap;
width: 100%;
max-width: 600px;
border-radius: 10px;
box-shadow: 0px 3px 10px rgba(0,0,0,0.2);
}
.join-c {
background: hsl(0, 0%, 100%);
border-radius: 10px 10px 0 0;
padding: 30px;
width: 100%;
}
h3 {
color: hsl(71, 73%, 54%);
padding: 25px 0 15px 0;
}
span:first-child {
font-size: 35px;
color: hsl(0, 0%, 100%);
font-weight: 700;
padding: 10px 10px 10px 0;
}
input[type="submit"] {
background: hsl(71, 73%, 54%);
width: 80%;
padding: 15px 0;
border-radius: 5px;
border: none;
margin: 20px auto;
color: hsl(0, 0%, 100%);
box-shadow: 0px 5px 8px rgba(0,0,0,0.2);
cursor: pointer;
}
input[type="submit"]:hover {
background: hsl(71, 73%, 49%);
transition: all 0.5s;
}
@media screen and (max-width: 1480px) {
main {
width: 55%;
}
}
@media screen and (max-width: 1080px) {
main {
width: 80%;
}
}
@media screen and (max-width: 780px) {
body {
height: auto;
}
main {
margin: 30px 0;
}
.monthly, .why-us {
width: 100%;
}
.monthly {
border-radius: 0;
}
.why-us {
border-radius: 0 0 10px 10px;
}
}
@media screen and (max-width: 600px) {
main {
width: 90%;
}
input[type="submit"] {
width: 100%;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.