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.

            
              <nav>
  <ul>
    <li id=""><a href="#section1">About Me</a></li>
    <li id=""><a href="#section2">My Projects</a></li>
    <li id=""><a href="#section3">Contact</a></li>
  </ul>
  <!-- End of nav items -->
</nav>
<div class="container" id="section1">
  <h>My Name is Mehmet Efe!</h>
  <div>
    <img src="https://storage.googleapis.com/material-icons/external-assets/v4/icons/svg/ic_code_black_24px.svg" />
    <p>I love coding! I love making computers do things. Computers are unbelievably fast and I like using their speed. I make websites just like this and I make programs that work(hopefully).</p>
  </div>
  <hr>
  <div>
    <img src="https://storage.googleapis.com/material-icons/external-assets/v4/icons/svg/ic_palette_black_24px.svg" />
    <p>I also am interested in art. I'm not particularly good at it though. I'm trying my best and practicing.</p>
  </div>
  <hr>
  <div>
    <img src="https://storage.googleapis.com/material-icons/external-assets/v4/icons/svg/ic_videogame_asset_black_24px.svg" />
    <p>I like playing games like every other kid nowadays. My favourite game is <span><a href="http://store.steampowered.com/app/207140/" >SpeedRunners</a></span>. You can check it out as well.</p>
  </div>
</div>
<div class="container" id="section2">
  <div class="cards">
    <div class="card">
        <img src="https://storage.googleapis.com/material-icons/external-assets/v4/icons/svg/ic_web_black_24px.svg" />
      <p>This particular website is my project!<br> I also didn't use any framework while making this website. Pure SCSS and HTML.</p>
    </div>
    <div class="card"> <span> Much more to come</span></div>
  </div>
  
</div>
<div class="container" id="section3"><p class="contact">Well, if you want to contact me you can tweet me, message on discord, steam; or just send an email my way!</p></div>
            
          
!
            
              // Variables //
$navcolor: #C2FF8D;
$navbutton: #F7A6FF;
$navtext: black;
$navbutton-light: #FAC4FF;
// Quick Reset //
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Baloo Bhaina", sans-serif;
}

// Navbar //
nav {
  z-index: 999;
  position: fixed;
  top: 0px;
  display: fixed;
  width: 100%;
  height: 60px;
  background-color: $navcolor;
  padding: 5px;
  box-shadow: 0px 0px 9px #999;
  ul {
    list-style: none;
    text-align: center;
    li {
      background-color: $navbutton;
      position: relative;
      display: inline-block;
      font-family: sans-serif;
      margin: 3px 5px;
      transition: all 200ms ease-in-out;
      box-shadow: 0px 2px 2px #000;
      text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.5);
      &:hover {
        transform: translate(0px, -1px);
        box-shadow: 0px 4px 12px #000;
        background-color: $navbutton-light;
        cursor: pointer;
        text-shadow: 0px 3px 2px rgba(0, 0, 0, 0.5);
      }
      a {
        text-decoration: none;
        color: $navtext;
        display: inline-block;
        padding: 6px 20px;
      }
    }
  }
}

// Main Elements  (Mobile First)//
.container:first-of-type {
  width: 100%;
  height: 0;
  height: initial;
  margin: 0 auto;
  margin-top: 100px;
  padding: 10px;
  background-color: #FEFEFE;
  box-shadow: 0px 0px 30px #444;
  div {
      overflow: auto;
    }
  img {
    width: 300px;
    display: inline-block;
    position: relative;
    float: left;
    left: calc(50% - 150px);
    margin: 0;
  }
  p {
    display: inline-block;
    font-size: 20px;
    float: left;
    font-family: sans-serif;
    font-weight: bold;
    word-break: keep-all;
    height: 200px;
    margin: 40px;
  }
  h {
    margin-top: 50px;
    text-align: center;
    font-size: 50px;
    display: block;
    margin-bottom: 20px;
  }
  img {
    clear: both;
    margin-left: auto;
    margin-right: auto;
    overflow:visible;
  }
  hr {
    clear: both;
    width: 80%;
    position: relative;
    top: -55px;
    margin: 0px auto 50px auto;
  }
  span {
    text-decoration: none;
    transition: all 200ms ease-in-out;
    text-shadow: 0px 0px 0px #000;
    display: inline-block;
    a {
      text-decoration: none;
      color: black;
    }
  }
  span:hover {
    text-shadow: 0px 5px 4px rgba(0, 0, 0, 0.5);
    transform: scale(1.05, 1.05) translate(0px, -2px);
    cursor: pointer;
  }
}
// Section 2 //
.container:nth-of-type(2) {
  width: 100%;
  height:auto;
  margin: 0 auto;
  margin-top: 100px;
  padding: 10px;
  background-color: #FEFEFE;
  box-shadow: 0px 0px 30px #444;
  position:relative;
}

// Cards //
.cards{
  display:inline-block;
  position:absolute;
  left:50%;
  margin-right:-50%;
  transform: translate(-50%,0);
  overflow:auto;
  
}
.card {
  float:left;
  display:inline-block;
  position:relative;
  width: 300px;
  height: 400px;
  margin: 25px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); //My Fave Tone of Grey
  padding: 40px;
  span {
    float:left;
    display:block;
    position:absolute;
    top:50%;
    left: 50%;
    transform:translate(-50%,-50%);
  }
  img {
    float:left;
    width: 100%;
    height:40%;
  } 
  p{
    float:left;
  }
}
.contact {
  position:absolute;
  display:block;
}
#section3 {
  width:1000px;
  box-shadow: 0px 0px 30px #444;
  margin:30px auto;
  .contact{
    text-align:center;
    
  }
  height:100px;
}
// Desktop Second // jokes right?
@media only screen and (min-width: 1000px) {
  .container:first-of-type {
    width: 1000px;
    
    height: 1100px;
    p {
      width: 550px;
    }
    img {
      clear: both;
      float: left;
      margin-top: -65px;
      margin-left: 30px;
      left: 0px;
    }
  }
  .container:nth-of-type(2) {
    width: 1000px;
    height:470px;
  }
}
            
          
!
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