123

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
                  <!-- main content -->
    <div class="container">

      <!--top navbar -->
      <nav class="navcontainer">
        <div class="left">
          <a href="https://github.com/mgrienauer" target="_blank" class="glyph"><i class="fa fa-github-alt fa-2x"></i></a>
          <a href="https://www.freecodecamp.org/mgrienauer" target="_blank" class="glyph"><i class="fa fa-free-code-camp fa-2x"></i></a>
          <a href="https://codepen.io/mike93og/#" target="_blank" class="glyph"><i class="fa fa-codepen fa-2x"></i></a>
        </div>
        <a href="#about" class="navitem">About</a>
        <a href="#projects" class="navitem">Projects</a>
        <a href="#contact" class="navitem navcontact">Contact</a>
      </nav>

      <!-- bio/about section of page -->
      <div class="item content">
        <div class="bio">
          <h1>Michael Grienauer</h1>
          <p>
            I am an American currently living in Eastern Europe. I teach English and also
            run an IT club at the school in which I work. I love learning new things and
            have pursued web developement and building websites as a hobby for about a year.
            I am always trying to hone my craft and build new projects.
          </p>
        </div>
        <div class="bio-picture">
          <img src="https://tinyurl.com/ycybrvs9" id="profile-img"/>
        </div>
      </div>

      <!-- portfolio section of page -->
      <div class="item portfolio">

        <h1>Portfolio</h1>
        <div class="project">
          <img src="https://tinyurl.com/ycybrvs9">
        </div>
        <div class="project">
          <a href="www.google.com"><img src="https://tinyurl.com/ycybrvs9"></a>
        </div>
        <div class="project">
          <img src="https://tinyurl.com/ycybrvs9">
        </div>
        <div class="project">
          <img src="https://tinyurl.com/ycybrvs9">
        </div>
        <div class="project">
          <img src="https://tinyurl.com/ycybrvs9">
        </div>
        <div class="project">
          <img src="https://tinyurl.com/ycybrvs9">
        </div>

      </div>

      <!-- contact section of page -->
      <div class="item contact">
        <h1>Contact</h1>
        <div>
          <form action="https://formspree.io/your@email.com" method="POST"
                class="contact-form">
            <input type="text" name="name" placeholder="John Doe" class="form-item">
            <input type="email" name="_replyto" placeholder="youremail@example.com" class="form-item">
            <textarea name="message" placeholder="Enter your message here" class="form-item"></textarea>
            <input type="submit" value="Send" class="form-button">
          </form>
        </div>
        <div class="contact-instructions">
          <h3>How to Contact</h3>
          <p>
            Please enter your first and last name, email address, and message in the
            boxes. Once you've written your message, just hit send! Feel
            free to contact me about any questions you may have. I will try to get
            back to you as soon as possible.
          </p>
          <div class="contact-icons">
            <a href="https://github.com/mgrienauer" target="_blank" class="c-glyph"><i class="fa fa-github-alt fa-2x"></i></a>
            <a href="https://www.freecodecamp.org/mgrienauer" target="_blank" class="c-glyph"><i class="fa fa-free-code-camp fa-2x"></i></a>
            <a href="https://codepen.io/mike93og/#" target="_blank" class="c-glyph"><i class="fa fa-codepen fa-2x"></i></a>
          </div>
        </div>
      </div>
      <div class="navcontainer footer">© 2018 Michael Grienauer</div>
    </div>
            
          
!
            
              
/* html and all general styling */
*, *:before, *:after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

body{
  background-image: url("../background_img.jpg");
  background-attachment: fixed;
  background-size: auto;
  font-family: 'Roboto', sans-serif;
}

a {
  text-decoration: none !important;
}

h1{
  margin: 15px auto 25px auto;
  grid-column: 1 / -1;
  width: 70%;
  text-align: center;
  border-bottom: 1px solid #BDBDBD;
}

h2,h3,h4,h5,h6{
  margin: auto;
  grid-column: 1 / -1;
  width: 50%;
  text-align: center;
  border-bottom: 1px solid #BDBDBD;
}

p{
  font-size: 1em;
  margin: auto;
  grid-column: 1 / -1;
  width: 90%;
  padding: 15px;
  text-align: center;
}

input{
  border: none;
}

/* main content container styling */
.container{
  display: grid;
  max-width: 1024px;
  width: 100%;
  margin: auto;
  grid-gap: 15px;
}

.item{
  display: grid;
  align-items: center;
  justify-content: center;
  color: #757575;
  background-color: #FFFFFF;
  border: 1px solid #BDBDBD;
  font-size: 1.2em;
  box-shadow: 0 0 5px  rgba(0,0,0,0.5);
}

/* navbar styling */
.navcontainer{
  grid-column: 1fr;
  width: 100%;
  max-width: 1024px;
  display: flex;
  flex-wrap: none;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  font-weight: 600;
  background-color: #0288D1;
  box-shadow: 0px 5px 14px 0px rgba(0,0,0,0.5);
}

.navcontainer > .left{
  margin-right: auto;
}

.glyph{
  color: white;
  padding: 0px 15px 0px 15px;
}

.glyph:hover{
  color: #B3E5FC;
  /*border-bottom: 3px solid #B3E5FC;*/
}

.navitem{
  font-family: Helvetica, arial;
  color: white;
  font-size: 24px;
  padding: 15px;
}

.navitem:hover{
  background-color: #03A9F4;
}

.navitem:active{
  background-color: #B3E5FC;
}

/* styling for intro section of page */
.content{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 50vh;
  grid-template-areas:
    "bio bio bio pic pic";
  align-content: center;
}

.bio{
  display: grid;
  grid-area: bio;
}

.bio-picture{
  display: grid;
  grid-area: pic;
}

#profile-img{
  height: 200px;
  width: 200px;
  border-radius: 50%;
  margin: auto;
  justify-content: center;
  object-fit: cover;
  box-shadow: 0 0 7px  rgba(0,0,0,.7);
}

/* portfolio section styling */
.portfolio{
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 15vh;
  grid-auto-rows: auto;
  grid-gap: 10px;
  justify-items: center;
  align-items: center;
  padding: 20px;
}

.portfolio > .project{
  display: grid;
  grid-column: auto;
  box-shadow: 0 0 7px  rgba(0,0,0,.7);
  background-color: #B3E5FC;
}

img{
  display: grid;
  max-width: 100%;
  object-fit: cover;
}

.project img:hover{
  opacity: .7;
  border: 2px solid #03A9F4;
}

.project img:active{
  opacity: .5;
  border: 3px solid #03A9F4;
}

/* contact section styling */
.contact{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "h h"
    "cf instr";
  align-items: start;
  min-height: 60vh;
}

.contact-form{
  display: grid;
  grid-area: cf;
  grid-template-columns: 1fr;
  grid-gap: 5px;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-left: 20px;
}

.form-item{
  grid-column: 1fr;
  border: 1px solid #BDBDBD;
  padding: 10px;
  box-shadow: 0 0 3px  rgba(0,0,0,.2);
}

.form-item:hover{
  border: 2px solid #03A9F4;
}

.form-item:focus{
  border: 2px solid #0288D1;
}

.form-button{
  background-color: #0288D1;
  color: white;
  font-size: 1.1em;
  font-weight: 600;
  padding: 10px;
  margin-bottom: 15px;
  box-shadow: 0 0 5px  rgba(0,0,0,.3);
}

.form-button:hover{
  border: 2px solid #03A9F4;
}

.contact-instructions{
  display: grid;
  grid-area: instr;
}

.contact-icons{
  display: flex;
  justify-self: center;
  align-self: center;
  margin: 15px 0px 15px 0px;
}

.c-glyph{
  padding: 10px 15px;
  color: #0288D1;
}

.c-glyph:hover{
  border-bottom: 3px solid #0288D1;
  color: #03A9F4;
}

textarea{
  height: 150px;
}

.footer{
  min-height: 10vh;
  grid-column: 1 / -1;
  justify-content: center;
  color: white;
}

/* media query view on mobile */
@media (max-width: 600px) {

    h1{
      margin: 15px auto 15px auto;
    }

    h2,h3,h4,h5,h6{
      margin-bottom: 0px;
    }

    .navcontainer {
        flex-wrap: nowrap;
        justify-content: center;
        background-color: #0288D1;
    }

    .navcontainer > a {
        text-align: center;
        padding: 8px;
        flex: 1 1 100%;
        border-right: 1px solid #BDBDBD;
        font-size: 1em;
    }

    .navcontainer > .navcontact {
      border-right: none;
    }

    .glyph{
      display: none;
    }

    .content{
      grid-template-columns: 1fr;
      grid-template-areas:
        "bio"
        "pic";
    }

    .bio-picture{
      padding: 30px 0px;
    }

    .portfolio{
      grid-template-columns: 1fr;
      padding: 10px;
      padding-bottom: 20px;
      grid-gap: 7px;
    }

    .contact{
      grid-template-columns: 1fr;
      grid-template-areas:
        "h"
        "instr"
        "cf";
    }

    .contact-form{
      padding: 10px;
    }

    .form-button{
      margin-bottom: 10px;
    }

    .contact-instructions > h3{
      display: none;
    }

};

            
          
!
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.

Console