MAP Trucking Temp

by lukerichison

HTML

<div id="page">
<header>
  <h1 id="logo"><a href="#">MAP Trucking Inc.</a></h1>
  <nav id="f-nav">
    <a href="#" class="current">Home</a>
    <a href="#">Services</a>
    <a href="#">Contact</a>
  </nav>
</header>
<main>
  <section>
    <header>
      <h2>Thanks for visiting MAP Trucking!</h2>
      <p>We provide trucking services to oil wells in southeast Illinois and southwest Indiana.</p>
    </header>
    <p>Founded in 2004 in Poseyville, Indiana, we employ a highly experienced crew and good operating equipment, and are the service company of choice for a good number of operators in the area. The company is fully insured for any requirement.</p>
    <p>MAP Trucking, Inc., is a member of the Independent Oil Producers Association, and maintains ties to the Indiana Oil &amp; Gas Association and Illinois Oil and Gas Association through our president, Mark A. Peach.</p>
  </section>
  <section>
    <p>We operate three 80 barrel tank trucks, a winch truck, a Super Wilson pulling unit, and a water disposal plant north of Albion, Illinois.</p>
    <p>Look through our list of services to see if we are the right trucking company for your needs.</p>
    <a href="#">Services</a>
  </section>
</main>
</div>
<nav id="m-nav">
  <a id="menu">&#9776;</a>
  <a href="#" class="current">Home</a>
  <a href="#">Services</a>
  <a href="#">Contact</a>
</nav>

CSS

@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,700);
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  background-color: #EDEDED;
}
#page > header {
  background: url(http://www.iraqenergy.org/images/energy-news/61632_600x450_b9c7c.jpg) no-repeat center;
  background-size: cover;
}

@keyframes reveal-logo {
  0% {opacity: 0;}
  100% {opacity: 1;}
}
#logo {
  opacity: 0;
  animation: reveal-logo 1s 0.25s ease-in-out;
  animation-fill-mode: forwards;
  margin: 0 20%;
  background: url(http://lukerichisondesign.com/images/maptrucking.svg) no-repeat center;
  background-size: 60%;
  padding: 20% 15%;
}
#logo a {
  border: 0;
  font: 0/0 a;
  text-shadow: none;
  color: transparent;
}
#f-nav {
  display:none;
}
#m-nav {
  position: fixed;
  top: 0;
  right: 100%;
  height: 100%;
  background-color: #434343;
  width: 14em;
}
#page,
#m-nav {
  transition: transform 0.5s ease;
  transform: translateX(0);
}
.panel #page,
.panel #m-nav {
  transform: translateX(14em);
}
#menu,
nav a {
  font-family: 'Source Sans Pro', sans-serif;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.2em;
  letter-spacing: 0.125em;
  padding: 0.25em;
  
  display: block;
  margin: 0 0.5em;
  border-bottom: 1px solid #616161;
}
nav a.current {
  font-weight: bold;
}
#menu,
nav a:last-child {
  border-bottom-color: transparent;
}
#menu {
  position: absolute;
  cursor: pointer;
  top: 0.5em;
  right: -3em;
  width: 2em;
  height: 1.6em;
  border-radius: 0.25em;
  text-align: center;
  margin: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 1;
}

main section {
  padding: 2em;
  font-family: 'Source Sans Pro', sans-serif;
  color: #64666E;

}
main section:nth-child(2n){
  background-color: #9DC8E3;
  color: white;
}
main section header {
  text-align: center;
  margin-bottom: 3em;
}
main section header h2 {
  font-size: 2em;
  font-weight: normal;
  text-transform: uppercase;
  margin: 0.25em 10%;
}
main section...

JavaScript

$('#menu').click(function() {
  $('body').toggleClass("panel");
});
$('#page').click(function() {
  $('body').removeClass("panel");
});