Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container">
  <header>
    <div id="navbar">
      <div class="site-logo text">
        mePort
      </div>
      <nav>
        <ul>
          <li><a href="#welcome-section" class="nav-link">About</a></li>
          <li><a href="#projects" class="nav-link">Projects</a></li>
          <li><a href="#contact" class="nav-link">Contact</a></li>
        </ul>
      </nav>      
    </div>

  </header>
  <main>
    <article>
      <section id="welcome-section" class="full-width">
        <div class="hero-txt">
          <h1 class="title">Hello</h1>
          <div class="subtitle">This is Roadster -</div>
          <a href="https://w-digital.co" target="_blank" class="btn">Hire Front End Engineer</a>
        </div>
      </section>
      <section id="projects" class="full-width">
        <div class="title">Project</div>
        <ul class="project-list project-tile">
          <li class="project-item">
            <a href="https://codepen.io/windo/full/NBmYrP" target="_blank">
              <figure class="img-container">
                <img src="https://w-digital.co/assets/img/projects/windo-tech-doc-project.png" class="windo-tech-doc-project.png">                   <figcaption class="title">Responsive Technical Documentation</figcaption>
              </figure>
            </a>
            <ul class="category-list">
              <li class="category-item">responsive web design</li>
              <li class="category-item">digital documentation</li>
            </ul>
          </li>          
          <li class="project-item">
            <a href="" target="_blank">
              <figure class="img-container">
                <img src="https://w-digital.co/assets/img/projects/windo-site-survey-form-project.png" alt="windo-site-survey-form-project.png" class="img">
                <figcaption class="title">Site Survey Form Project</figcaption>
              </figure>
            </a>
            <ul class="category-list">
              <li class="category-item">responsive web design</li>
              <li class="category-item">form</li>
            </ul>
          </li>
          <li class="project-item">
            <a href="" target="_blank">
              <figure class="img-container">
                <img src="https://w-digital.co/assets/img/projects/windo-product-landing-page.jpg" alt="windo-product-landing-page.jpg" class="img">
                <figcaption class="title">Product Landing Page</figcaption>
              </figure>
            </a>
            <ul class="category-list">
              <li class="category-item">responsive web design</li>
              <li class="category-item">landing page</li>
              <li class="category-item">product page</li>
            </ul>
          </li>
          <li class="project-item">
            <a href="" target="_blank">
              <figure class="img-container">
                <img src="https://w-digital.co/assets/img/projects/windo-tribute-page.jpg" alt="windo-tribute-page.png" class="img">
                <figcaption class="title">Tribute Page</figcaption>
              </figure>
            </a>
            <ul class="category-list">
              <li class="category-item">responsive web design</li>
              <li class="category-item">tribute page</li>
            </ul>
          </li>

          <li class="project-item">
            <a href="" target="_blank">
              <figure class="img-container">
                <img src="https://w-digital.co/assets/img/projects/windo-portfolio-landing-page.png" alt="windo-portfolio-page.png" class="img">
                <figcaption class="title">Portfolio Landing Page</figcaption>
              </figure>
            </a>
            <ul class="category-list">
              <li class="category-item">responsive web design</li>
              <li class="category-item">portfolio page</li>
              <li class="category-item">landing page</li>
            </ul>
          </li>
        </ul>
      </section>
      
      <section id="contact" class="full-width">
        <div class="title">Contact</div>
        <div class="presence-list">
          <li class="presence-item">
            <span class="logo"></span>
            <a href="https://github.com/hantumobil" id="profile-link" target="_blank" class="link">
              <div class="title">
                github/hantumobil
              </div>
            </a>
          </li>         
        </div>
      </section>
    </article>
  </main>
  <footer>        
    <div class="footer-container">
      crafted in 2018 by <a href="https://w-digital.co">Windo</a>
    </div>
  </footer>

</div>
              
            
!

CSS

              
                :root {
  --purple: #e14594;
  --purple-dark: #7045af;
  --blue: #2b3595;
  --blue-dark: #182952;
  
  --body-color: white;
  --a-color: rgba(255, 255, 255, .83);
  --a-color-hover: rgba(255, 255, 255, .83);
  --header-bg-color: var(--blue);
  --welcome-bg-color: var(--blue);
}

body, html {
  font-family: 'Rubik', sans-serif;
  font-weight: 200;
  font-size: 1em;
  line-height: 1.618em;
  color: var(--body-color, black);
}

header {
  position: absolute;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
  padding: 1.618em 0;
}
.site-logo.text {
  display: inline;
  width: 10%;
  font-size: 1.618em; 
  font-weight: 800;
  border-bottom: 4px solid;
}

nav ul {
  display: flex;  
  margin: 0;
  padding: 0;
}
nav ul li {
  list-style-type: none;
  padding: 1em;
}
nav ul li a {
  width: 100%;
  color: var(--body-color);
  border-bottom: 2px solid
}
nav ul li a:hover {
  text-decoration: none;
  color: white;
}

section#welcome-section {
  background: linear-gradient(45deg, var(--welcome-bg-color), var(--purple-dark));
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
}
section.full-width {
  max-width: 100%;
  min-height: 100vh;
  height: 100%;
}
.hero-txt {
  text-align: center;
}
.hero-txt > .title {
  font-weight: 400;
  font-size: 3.8em;
  line-height: 1.618em;
  margin: 0;
  padding: 0;
  letter-spacing: .15em;   
}

.hero-txt > .subtitle {
  font-size: 1.618em;
  line-height: 1.618em;
  opacity: .6;
  letter-spacing: .5em;
}
.hero-txt > .btn {
  display: block;
  margin: 1.618em;
  font-size: 1.2em;
}
.btn {
  padding: 1.618em;
  background: var(--purple);
  border: 3px solid var(--purple-dark);
  border-radius: 3em;
  box-shadow: 0px 10px 0px rgba(0, 0, 0, .16);
}
.btn:hover {
  border: 3px solid var(--purple-dark);
  background: var(--purple-dark);
  border-radius: 3em;  
}
a {
  color: var(--a-color);
}
a:hover {
  text-decoration: none;
  color: var(--a-color-hover);
}


/* projects */
#projects {
  background: var(--blue-dark);
}

.title {
  font-weight: 400;
  font-size: 1.6em;
  line-height: 1.618em;
  margin: 0;
  padding: 0;
  letter-spacing: .15em;   
}
.full-width > .title {
  border-bottom: 3px solid;
}

.project-list {
  margin-top: 3em;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;;
}
.project-item {
  list-style: none;
  flex-basis: 25%;
  flex-grow: 1;
  flex-shrink: 0;
  margin: 0 1em 3em 1em;
}
.project-item a {
  width: 100%;
  height: auto;
}
figure.img-container {
  margin: 0;
  width: 100%;
}
figure > img {
  max-width: 100%;
  width: 100%;
  height; auto;
  border-radius: 10px; 
}
figure > figcaption {
  max-width: 100%;
  width: 100%;
  height: auto;
}
.project-item > a > figure > .title, .project-item > .title {
  font-size: 1em;
  line-height: 1.618em;
  font-weight: 200;
  text-align: center;
  margin: 1em 0;
}
.category-list {
  display: flex;  
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}
.category-item {
  list-style: none;
  margin: 1em;
  text-align: center;
  line-height: 1em;  
  background: var(--blue);
  padding: 1em;
  font-size: .618em;
  border-radius: 1.618em;
}



/* contact */
section#contact {
  background: linear-gradient(360deg, var(--blue), var(--blue-dark));
}
.presence-list{
  display: flex;
  flex-flow: row wrap;
  margin: 0;
  margin-top: 1.618em;
}
.presence-item {
  list-style: none;
  margin: 0 1.618em;
}

footer {
  background: var(--blue);
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
footer a {
  color: 
}


@media (max-width: 480px) {
  .hero-txt {
    padding: 1em;
  }
}

#navbar {
  position: fixed;
  text-align: center;
  top: 15px;
  height: 100px;
}
/* to be used */
.full-width {
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
  padding: 6em 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console