cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <header id="home">
  <h2>Welcome 🖐</h2>
  <div class="row">
    <img src="https://arawal.files.wordpress.com/2015/07/flat-faces-icons-circle-3.png?w=1024" class="img-responsive" alt="Responsive image">
    <p>Süleyman Tekin</p>
  </div>
  <p><i class="fa fa-university"></i> Istanbul Aydin Univercity</p>
  <p><i class="fa fa-free-code-camp" aria-hidden="true"></i> Software Engineer</p>
  <div class="row">
    <a href="#" target="_blank">
			<i class="fa fa-twitter"></i>
		</a>
    <a href="#" target="_blank">
			<i class="fa fa-facebook"></i>
		</a>
    <a href="#" target="_blank">
			<i class="fa fa-linkedin"></i>
		</a>
    <a href="#" target="_blank">
			<i class="fa fa-github"></i>
		</a>
  </div>
</header>

<nav id="main">
  <ul>
    <li class="logo"><a>ST</a></li>
    <li><a data-id="home">Home</a></li>
    <li><a data-id="about">About</a></li>
    <li><a data-id="references">References</a></li>
    <li><a data-id="projects">Projects</a></li>
  </ul>
</nav>

<section id="about">
  <h2>Welcome 🖐</h2>
  <div class="row">
    <img src="http://i58.tinypic.com/adlrbt.jpg" class="img-responsive" alt="Responsive image">
    <p>Süleyman Tekin</p>
  </div>
  <p><i class="fa fa-university"></i> Istanbul Aydin Univercity</p>
  <p><i class="fa fa-free-code-camp" aria-hidden="true"></i> Software Engineer</p>
  <div class="row">
    <a href="#" target="_blank">
			<i class="fa fa-twitter"></i>
		</a>
    <a href="#" target="_blank">
			<i class="fa fa-facebook"></i>
		</a>
    <a href="#" target="_blank">
			<i class="fa fa-linkedin"></i>
		</a>
    <a href="#" target="_blank">
			<i class="fa fa-github"></i>
		</a>
  </div>
</section>

<section id='references'>
  <div class="pricing-grid">

    <div class="plan plan1">

      <img id="reference" src="https://arawal.files.wordpress.com/2015/07/flat-faces-icons-circle-3.png?w=1024" class="img-responsive" alt="Responsive image">

      <p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Reiciendis, facilis perspiciatis dicta possimus </p>

      <h5>Paul Cole</h5>
    </div>

    <div class="plan plan2">

      <img id="reference" src="https://arawal.files.wordpress.com/2015/07/flat-faces-icons-circle-3.png?w=1024" class="img-responsive" alt="Responsive image">
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quia voluptate voluptates odit impedit voluptatibus cupiditate in ab! Deleniti sint aperiam accusamus fugiat aliquid, illum doloribus qui, laboriosam soluta quia praesentium. </p>
      <h5>Paul Cole</h5>
    </div>

    <div class="plan plan3">

      <img id="reference" src="https://arawal.files.wordpress.com/2015/07/flat-faces-icons-circle-3.png?w=1024" class="img-responsive" alt="Responsive image">
      <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quia voluptate voluptates odit impedit voluptatibus cupiditate in ab! Deleniti sint aperiam accusamus fugiat aliquid, illum doloribus qui, laboriosam </p>

      <h5>Paul Cole</h5>
    </div>

  </div>
</section>

<section id="projects">
  <div class="card">
    <div class="card-header">
      <span class="status">
      NOT COMPLETE 
    </span>
      <span class="info">
      Cycle ends in 22 days
    </span>
    </div>
    <div class="card-body">
      <div>
        <h3>
          Registered Nurse District of
        </h3>
        <p>RT99999999 | District of Columbia</p>
      </div>

      <div class="btn-group">
        <a href="#" class="btn-default">
        VIEW TRANSCRIPT
      </a>
        <a href="#" class="btn-primary">
        REPORT CE
      </a>
      </div>
    </div>
  </div>

  <div class="card">
    <div class="card-header">
      <span class="status">
      NOT COMPLETE 
    </span>
      <span class="info">
      Cycle ends in 22 days
    </span>
    </div>
    <div class="card-body">
      <div>
        <h3>
          Registered Nurse
        </h3>
        <p>RT99999999 | District of Columbia</p>
      </div>
      <div class="btn-group">
        <a href="#" class="btn-default">
        VIEW TRANSCRIPT
      </a>
        <a href="#" class="btn-primary">
        REPORT CE
      </a>
      </div>
    </div>
  </div>

  <div class="card">
    <div class="card-header">
      <span class="status">
      NOT COMPLETE 
    </span>
      <span class="info">
      Cycle ends in 22 days
    </span>
    </div>
    <div class="card-body">
      <h3>
        Registered Nurse District of Columbia
      </h3>
      <p>RT99999999 | District of Columbia</p>
      <div class="btn-group">
        <a href="#" class="btn-default">
        VIEW TRANSCRIPT
      </a>
        <a href="#" class="btn-primary">
        REPORT CE
      </a>
      </div>
    </div>
  </div>
</section>
            
          
!
            
              
.site-wrap {
  max-width: 700px;
  margin: 70px auto;
  background:white;
  padding:40px;
  text-align: justify;
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.05);
  transform: scale(0.98);
  transition: transform 0.5s;
}

body.fixed-nav .site-wrap {
  transform: scale(1);
}


header {
  text-align: center;
  height:50vh;
  background:url(http://wes.io/iEgP/wow-so-deep.jpg) bottom center no-repeat;
  background-size:cover;
  display:flex;
  align-items:center;
  justify-content: center;
}

h1 {
  color:white;
  font-size: 7vw;
  text-shadow: 3px 4px 0 rgba(0,0,0,0.2)
}

nav {
  background:black;
  top:0;
  width: 100%;
  transition:all 0.5s;
  position: relative;
  z-index: 1;
}

body.fixed-nav nav {
  position: fixed;
  box-shadow:0 5px 0 rgba(0,0,0,0.1);
}

nav ul {
  margin: 0;
  padding:0;
  list-style: none;
  display:flex;
}

nav li {
  flex:1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}



li.logo a {
  color:black;
}

.fixed-nav li.logo {
  max-width:100px;
}

nav a {
  text-decoration: none;
  padding:20px;
  display: inline-block;
  color:white !important;
  transition:all 0.2s;
  text-transform: uppercase;
}
li.logo {
  max-width:0;
  overflow: hidden;
  background: #fbd406;
  transition: all 0.5s;
  font-weight: 600;
  font-size: 30px;
}

header,
section {
  font-family: "Rationale", sans-serif;
  height: 100vh;
  background: url(http://www.redtankstudio.com/website/images/slider1.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

section {
  background: white;
  color: black;
}

i {
  color: gray;
  margin-left: 10px;
}

img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

#about{
  background-color: #fbd406;
}



.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan ul li {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding:10px;
}

.plan ul li:last-child {
  border-bottom: 0;
}

.plan a {
  text-decoration: none;
  background:#FEFF00;
  padding:10px;
  color:black;
  border-radius:4px;
}


.plan h2 {
  text-transform: uppercase;
  color:white;
  letter-spacing: 2px;
  text-shadow:3px 3px 0 rgba(0,0,0,0.1);
}

.price {
  font-size: 50px;
  font-family: serif;
  margin: 10px 0;
}


/* Flex Container!!! */
.pricing-grid {
  max-width:750px;
  margin: 0 auto;
  display:flex; 
  align-items:center;
}

.plan {
  background:rgba(255,255,255,0.2);
  margin:20px;
  padding:20px;
  border-radius: 4px;
  text-align: center;
  
  flex:1;
  display:flex;
  flex-direction: column;
  flex-wrap:wrap;
  justify-content: center;
  aling-items:center;
  text-align:center;
}
.plan p {
  margin-top: 30px
}
.plan h5{
  align-self:flex-end;
}

#reference{
  margin: auto;
  height: 70px;
  width: 70px;
}
#projects {
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
}


.card {
  margin-top: 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.09),
              0 0 2px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}


.card-header {
  background: #F2A613;
  color: #fff;
  padding: 15px 27px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header .status {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.43px;
}

.card-header .info {
  font-weight: 600;
  font-size: 14px;
}

.card-body {
  padding: 17px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 18px;
  color: #4C5656;
  font-weight: 600;
  margin: 0;
}

.card-body p {
  font-size: 14px;
  font-weight: 600;
  color: #8EA7A7;
  margin-top: 9px;
  margin-bottom: 30px;
}

.card-body .btn-default {
  color: #6B7E89;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #DBE3E3;
  padding: 8px 20px;
  border-radius: 3px;
  margin-right: 15px;
  margin-top: 10px;
}

.card-body .btn-primary {
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  background: #39A0ED;
  padding: 8px 20px;
  border-radius: 3px;
  margin-top: 10px;
}
            
          
!
            
              const nav = document.querySelector("#main");
const navItems = document.querySelectorAll("#main ul li");
navItems.forEach(item => item.addEventListener("click", scroll));

function scroll(e) {
  const el = document.getElementById(e.target.dataset.id);
  console.log(el)
  el.scrollIntoView({
    behavior: "smooth"
  });
  
  console.log(e.target.dataset.id)
}

let topOfNav = nav.offsetTop;

function fixNav() {
  if (window.scrollY >= topOfNav) {
    document.body.style.paddingTop = nav.offsetHeight + "px";
    document.body.classList.add("fixed-nav");
  } else {
    document.body.classList.remove("fixed-nav");
    document.body.style.paddingTop = 0;
  }
}

window.addEventListener("scroll", fixNav);

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console