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.

            
              <!-- 

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

-->
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<nav id="navbar">
  <div class="wrapper">
    <a href="#welcome-section" class="nav-link">Home</a>
    <a href="#about" class="nav-link">About Me</a>
    <a href="#projects" class="nav-link">Projects</a>
  </div>
</nav>
<div class="wrapper">
<header id="welcome-section">
  <h1>Andrielle Hillis</h1>
</header>
<main>
  <a id="profile-link" href="https://github.com/arhillis" target="_blank">GitHub</a> 
  <section id="about">
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Sed vulputate odio ut enim blandit. Volutpat sed cras ornare arcu dui vivamus arcu felis. Gravida dictum fusce ut placerat orci nulla. Id leo in vitae turpis. Egestas congue quisque egestas diam in arcu cursus. Ultrices gravida dictum fusce ut placerat. Consequat nisl vel pretium lectus quam id leo in. Accumsan lacus vel facilisis volutpat est velit. In fermentum et sollicitudin ac orci phasellus egestas tellus rutrum. Eu volutpat odio facilisis mauris sit amet massa vitae tortor. At augue eget arcu dictum. </p>
  </section>
  <section id="projects">
    <a href="https://codepen.io/arhillis/pen/LeBwba" class="project-tile">
      Technical Documentation
    </a>
  </section>
</main>
</div>
            
          
!
            
              *{
  margin: 0;
  padding: 0;
  font-family: Helvetica, sans-serif;
}
.wrapper{
  width: 1000px;
  margin: 0 auto;
}
#navbar{
  position: fixed;
  top: 0;
  background: darkslateblue;
  padding: 10px;
  height: 40px;
  width: 100%;
}
#navbar a{
  margin-left: 20px;
  color: white;
  text-decoration: none;
  font-size: 1.25em;
}
#navbar a:first-child{
  margin-left: 2px;
}
#welcome-section{
  height: 100vh;
}

#welcome-section h1{
  padding-top: 50vh;
  padding-left: 50px;
  font-size: 5em;
  color: darkslateblue;
}
#projects{
  margin-top: 100px;
}
.project-tile{
  width: 200px;
  height: 200px;
  border: 2px solid darkslateblue;
  padding: 20px;
  
}
@media screen and (max-width: 1000px){
  #wrapper{
    width: 100%;
  }
}
            
          
!
            
              // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

/*
UDACITY SHIRT CHALLENGE
if(shirtWidth < 20 && shirtLength < 29 && shirtSleeve <= 8.13){
    console.log("S");
}else if(shirtWidth >= 20 && shirtWidth < 22 && shirtLength >= 29 && shirtLength < 30 && shirtSleeve > 8.13 && shirtSleeve <= 8.38){
    console.log("M");
}else if(shirtWidth >= 22 && shirtWidth < 24 && shirtLength >= 30 && shirtLength < 31 && shirtSleeve > 8.38 && shirtSleeve <= 8.63){
    console.log("L");
}else if(shirtWidth >= 24 && shirtWidth < 26 && shirtLength >= 31 && shirtLength < 33 && shirtSleeve > 8.69 && shirtSleeve <= 8.88){
    console.log("XL");
}else if(shirtWidth >= 26 && shirtWidth < 28 && shirtLength >= 33 && shirtLength < 34 && shirtSleeve > 8.88 && shirtSleeve <= 9.16){
    console.log("2XL");
}else if(shirtWidth >= 28 && shirtLength >= 34 && shirtSleeve >= 10.13){
    console.log("3XL");
}else{
    console.log("N/A");
}
*/
            
          
!
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