slanted-home

In this example below you will see how to do a slanted-home with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by 1wdtv, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 1wdtv ©

Technologies

  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>slanted-home</title>
  
  
  <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css'>

      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <section id="one">
  <div class="container bg-white" style="border:1px solid red">
  <div class="row">
    <div class="col-md-7 computer"></div>
    
    <div class="col-md-5">
        <h2 class="font-heavy pad-md-top">Learn the Tech. Grow Your Skills.</h2>
        <p>We teach you the skils you need to thrive and survive online.</p>
        <button class="btn btn-block btn-primary font-size-md mar-md-top">Sign Up</button>
      </div>

    </div>
  </div>
</section>



<section id="two">
  <div class="container bg-white" style="border:1px solid red">
  <div class="row">
    <div class="col-md-7">
    			<h2 class="font-heavy pad-md">Learn the Skills You Need to Thrive Online</h3>
			<p class="pad-md">From WordPress customization right through to Facebook Advertising, Business Planning and beyond.</p>
			<ul>
			<li class="pad-sm">New Courses Released Every Week</li>
			<li class="pad-sm">Private Facebook Community</li>
			<li class="pad-sm">Weekly Live Webinars</li>
			<li class="pad-sm">Over $16k of FREE Software</li>
			<li class="pad-sm">Exclusive Discounts & Deals</li>
			</ul>
    </div>
    
    <div class="col-md-5 spence">
        
    </div>

    </div>
  </div>
</section>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/1wdtv/slanted-home-xRYEmP */
@import url(https://fonts.googleapis.com/css?family=Lato:400,300,700,900);

#one {
  background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/277084/swirl480.jpg);
  background-repeat:no-repeat;
  background-size:cover;
  background-position:left;
  min-height:400px;
  border-bottom:10px solid black;

}



#two {
  background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/277084/spence960.jpg);
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;
  min-height:400px;
}

.computer {
  background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/277084/spencebook.png);
  height:300px;
  background-size:contain;
  background-repeat:no-repeat;
  background-position: middle center;
  
}

/*
.spence {
  background-image:url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/277084/spence640-1.png);
  height:400px;
  padding:0;
  background-size:contain;
  background-repeat:no-repeat;
  background-position: bottom;
  z-index:1;
}
*/

Comments