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.

            
              <header>
  <h1><a name = "Home">Sunny G. Wong</h1>
</header>
<nav>
  <ul id="list">
    <a href="#Home">
      <li class>Home</li>
    </a>
    <a href="#about">
      <li>About</li>
    </a>
    <a href="#BME">
      <li>Bio-medical Engineering</li>
    </a>
    <a href="#portfolio">
      <li>Portfolio</li>
    </a>
    <a href="#contact">
      <li>Contact</li>
    </a>
  </ul>
</nav>

<div class="content content2" id="section">
  <div>
    <a name="about"></a>
    <section>
      Hi my name is <u>Sunny</u>!
    </section>
    <div class='forimg'>
    <img src="http://res.cloudinary.com/dcxlwzxtr/image/upload/v1501181566/headshot_hh1vbn.jpg" class='aboutimg'></div>
    <p class="about-section"> Hello and welcome to my second project! If you want to view my first project click <a href="#MLK project"><b>here.</b></a> I am currently a masters student studying Biomedical Engineering at NYU's Tandon's School of Engineering. This website is a
      representation of my desire to learn how to code and a snippet of who I am. I began to learn front end development languages through freecodecamp.com over my winter break and hope to finish the entire course within a year. I am happy to have found
      such a great resource and I hope to grow as both an engineer and coder in due time.
      <a name="BME"></a>
    </p>
  </div>

  <div>
    <section>
      As a Biomedical Engineer.
    </section>
    <p class="BME-section">I graduated Stony Brook University in May 2016 with a bachelors of engineering in Biomedical Engineering. I began a quest to obtain my master's degree at NYU's engineering school under the same major. I have worked in a cardiovascular research lab
      at Stony Brook and plan to work on a project at NYU as well. As a Biomedical Engineer I was learning a lot about the body, physics, and engineering processes. However, it was all through a book or classroom I felt like I lacked technical skills
      to make up for all my time. This is also a reason why I took up coding, but I am glad I took the an opprotunity to work in a lab. I was able to gain some insight on R&D life and was able to carry out several projects as a disciplined engineer.
    </p>
  </div>
  <a name="portfolio"></a>
  <section>
    Portfolio
  </section>

  <p class="portfolio-section">
    I began teaching myself how to code over my winter break in 2017 through freecodecamp.com. I love coding because, seeing my ideas come to life is so satisfying. I know I have a long ways to go. Please feel free to check out my coding projects that I have
    completed, feedback is greatly appreciated.
  </p>
  <div class="portfolio-collection">
    <div>
      <p data-height="265" data-theme-id="0" data-slug-hash="WRoJMR" data-default-tab="result" data-user="SunnyWong" data-embed-version="2" data-pen-title="Tribute to MLK" class="codepen">See the Pen <a href="https://codepen.io/SunnyWong/pen/WRoJMR/">Tribute to MLK</a> by Sunny Wong (<a href="https://codepen.io/SunnyWong">@SunnyWong</a>) on <a href="https://codepen.io">CodePen</a>.</p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>
    </div>
    <div>
    <p data-height="265" data-theme-id="0" data-slug-hash="RgRdjz" data-default-tab="result" data-user="SunnyWong" data-embed-version="2" data-pen-title="Random Quote Machine - FCC Challenge" class="codepen">See the Pen <a href="https://codepen.io/SunnyWong/pen/RgRdjz/">Random Quote Machine - FCC Challenge</a> by Sunny Wong (<a href="https://codepen.io/SunnyWong">@SunnyWong</a>) on <a href="https://codepen.io">CodePen</a>.</p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>
      </div>
    <div>
      <p data-height="265" data-theme-id="0" data-slug-hash="pwRvrr" data-default-tab="result" data-user="SunnyWong" data-embed-version="2" data-pen-title="FCC Weather App" class="codepen">See the Pen <a href="https://codepen.io/SunnyWong/pen/pwRvrr/">FCC Weather App</a> by Sunny Wong (<a href="https://codepen.io/SunnyWong">@SunnyWong</a>) on <a href="https://codepen.io">CodePen</a>.</p>
<script async src="https://production-assets.codepen.io/assets/embed/ei.js"></script>
      </div>
  </div>


  <div>
    <a name="contact"></a>
    <section>
      Find me on social media!
    </section>
    <div class="socialMediaIcons">
      <a href="https://www.instagram.com/swong_o/?hl=en" target="_blank"><i class="fa fa-instagram adjustIcon" style="font-size:36px"></i></a>
      <a href="https://www.linkedin.com/in/sunny-gy-wong/" target="_blank"><i class="fa fa-linkedin-square adjustIcon" style="font-size:36px"></i></a>
      <a href="https://withsunnyblog.wordpress.com/" target="_blank"><i class="fa fa-wordpress adjustIcon" style="font-size:36px"></i></a>
    </div>
    <p class="contact-section">
      A "hello" is all it takes to start a friendly conversation and connect you to someone. Feel free to send me a message and follow me on social media!
    </p>
  </div>
</div>
            
          
!
            
              .content2 {
  top: 100px;
}

.content3 {
  top: 150px;
}

.active {
  font-weight: bold;
}

.content {
  z-index: 10;
  position: relative;
  background-image: url("http://www.walldevil.com/wallpapers/a75/blue-clouds-minimalistic-wallpaper-desktop-minimalist-wallpapers.jpg");
}

body {
  margin: 0;
  padding: 0;
  font-family: arial;
}

header {
  position: fixed;
  background-color: black;
  width: 100%;
  z-index: 9;
  height: 100px;
  color: white;
  text-align: center;
  background-size: 80%;
  background-image: url("http://www.pixelstalk.net/wp-content/uploads/2016/04/Free-Awesome-Minimalist-Wallpapers-HD.jpg");
}

nav ul {
  height: 50px;
  color: white;
  background-color: rgba(21, 45, 69, 1);
  padding: 0;
  width: 100%;
  position: relative;
  top: 100px;
  text-align: center;
  z-index: 10;
  margin: 0;
}

nav ul li {
  display: inline-block;
  text-decoration: none;
  padding: 20px;
  color: white;
}

a {
  text-decoration: none;
  color: inherit;
}

section{
  background-color: rgba(255, 255, 255, .5);
  text-align: center;
  line-height: 1.5em;
  padding:10px 40px;
  margin: 0 auto;
  width: 60%;
  font-size: 35px;
}
.socialMediaIcons{
  background-color: rgba(255, 255, 255, .5);
  text-align: center;
  padding:0 40px;
  margin: 0 auto;
  width: 60%;
  font-size: 35px;
}
.socialMediaIcons>a:hover{
  transition: color 1s;
  color:rgba(21, 45, 69, .5);
}

.about-section {
  text-align: justify;
  line-height: 1.5em;
  padding: 40px;
  margin: 0 auto;
  width: 60%;
  z-index: 10;
  background-color: rgba(255, 255, 255, .5);
}

.BME-section {
  text-align: justify;
  line-height: 1.5em;
  padding: 40px;
  margin: 0 auto;
  width: 60%;
  background-color: rgba(255, 255, 255, .5);
}

.portfolio-section {
  text-align: justify;
  line-height: 1.5em;
  padding: 40px;
  margin: 0 auto;
  width: 60%;
  background-color: rgba(255, 255, 255, .5);
}

.contact-section {
  text-align: justify;
  line-height: 1.5em;
  padding: 40px;
  margin: 0 auto;
  width: 60%;
  background-color: rgba(255, 255, 255, .5);
}

.fix-nav-bar {
  background-color: rgba(21, 45, 69, 1);
  padding: 0;
  width: 100%;
  position: fixed;
  top: 0;
  text-align: center;
  z-index: 11;
  margin: 0;
}

.aboutimg{
  width:200px;
  display:flex;
  margin:0 auto;
  border-radius:50%;
  border:solid black;
}
.forimg{
  background:rgba(255, 255, 255, .5);
  width:60%;
  margin:0 auto;
  padding:0 40px;
}
.portfolio-collection{
  display:flex;
  flex-direction:column;
  justify-content:center
  align-items:center;
  background:rgba(255, 255, 255, .5);
  width:60%;
  margin:0 auto;
  padding:0 40px;
}

@media screen and (max-width:650px) {
  nav ul li{
    margin:0;
    padding: 20px 5px;
  }
}
            
          
!
            
              $(window).scroll(function() {
    var y = $(document).scrollTop();
    if (y > 100) {
        $("#list").addClass("fix-nav-bar");
        $("#section").addClass("content3");
    } else {
        $("#list").removeClass("fix-nav-bar");
      $("#section").removeClass("content3");
    }
});

$("a[href='#Home']").click(function() {
  $("html, body").animate({ scrollTop: 0 }, "slow");
  return false;
});
                 
            
          
!
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