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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Tangerine">
<!--salmon color #E75A4C
dusty rose color #AD4439
brownish-red #903830 
greyish-lavender #AEA2C0
dusty light blue #286FBA-->

<header id="header"><!--header img w/ id header-img-->
  <h1 id="greeting">Wecome to E's Easy Spending Boutique!</h1>
  <a><img id = "header-img"src="https://musicbakery.com/wp-content/uploads/2016/08/classical-string-quartet.png" alt = "Abstract drawing of string quartet."></a><br>
  <nav id=nav-bar>
   <!--three clickable elements (class nav-link) corresponding to page elements, responsively designed(scrolls w/ screen)-->
<div>
<button class="nav-link"><a href="#video">Product Demo</a></button>
    </div>
    <div>
<button class="nav-link"><a href="#form">Order Form</a></button>
    </div>
    <div> 
      <button class="nav-link"><a href="#footer">Contact Us</a></button>       
        </div>
  </nav>
</header><br>
<div>
  <h2 id="blurb">We specialize in custom-made nyckelharpas, perfect for the musician who has everything! From wood or metal inlays, specialty designs such as geometric or floral, your imagination is the limit. Please tell us how we can make an instrument you'll want to pass down through the generations.</h2>
<!--embedded video of product w/ id = video https://youtu.be/JfJp-LuxR_o-->
  <video width="320" height="240" controls id="video">
  <source src="https://youtu.be/JfJp-LuxR_o" type="video/mp4">
</video>
</div>
<div>
  <form id="form" action="https://www.freecodecamp.org/email-submit"><p>Product Inquiries</p>
    <input id="email" type="email" placeholder="Email"></input><br>
  <input id="comments" type="textarea" placeholder="How would you like your nyckelharpa customized?"></input><br>
<input type="submit" id="submit" href="https://www.freecodecamp.org/email-submit">Submit</input><br>
<!--form element w/ id=form-->
<!--text area w/ id=email, placeholder text, and HTML5 validation for input-->
  <!--submit button w/ id=submit, and email sent to https://www.freecodecamp.com/email-submit-->
  </form>
    </div><br>
<!--must utilize flexbox once and must have one media query-->
<footer id="footer">
  <div>
  <button class="bottom-buttons">Contact Us</button>
  </div>
  <div>
    <button class="bottom-buttons">Tutorials</button>
  </div>
  <div>
    <button class="bottom-buttons">Sheet Music</button>
  </div>
</footer>

              
            
!

CSS

              
                <style>
@media (max-width: 300) {
  h2{
    font-size: 20px;
  }
}
#header {
 color: #E75A4C;
  
}
#header-img {
  display: flex;
  position: relative;
  margin: auto;
}
#greeting {
  text-align:center;
  font-family:'Tangerine', lucida;
  font-size:80px;
  text-shadow: 4px 4px 4px #aaa;
}
#nav-bar {
  background-color: #AEA2C0;
  position: fixed;
  top: 0px;
  left: 0px;
}
.nav-link {
  font-size: 40px;
  text-align: center;
  font-family: "Tangerine", lucida;
  padding: 10px 20px 10px 20px;
  border-color: #286FBA;
  border-width: 5px;
  border-style: solid;
  border-radius: 10px;
  background-color: white;
  position: relative;
  
}
#blurb {
  font-size: 40px;
  text-align: center;
  font-family: "Tangerine", lucida;
  color: black;
}
#video {
  display: flex;
  margin: auto;
}
#form {
 display: flex;
  margin: auto;
  flex-direction: column;
}
p {
  text-align:center;
  font-family:'Tangerine', lucida;
  font-size:80px;
  color: #E75A4C;
}
#email {
  padding: 5px 5px 5px 5px;
  text-align:center;
  font-family:'Tangerine', lucida;
  font-size:40px;
  color: #286FBA;
}
#comments {
  padding: 5px 5px 5px 5px;
  text-align:center;
  font-family:'Tangerine', lucida;
  font-size:40px;
  color: #286FBA;
}
#submit {
  margin: 5px 5px 5px 5px;
  text-align:center;
  font-family:'Tangerine', lucida;
  font-size:80px;
  color: #286FBA;
  padding: 5px 5px 5px 5px;
}
#footer {
  background-color: #AEA2C0;
  display: flex;
  flex-direction: row;
  margin: auto;
  position: relative;
  justify-content: space-evenly;
  
}
.bottom-buttons {
  display: flex;
  font-size: 40px;
  text-align: center;
  font-family: "Tangerine", lucida;
  padding: 10px 20px 10px 20px;
  border-color: #286FBA;
  border-width: 5px;
  border-style: solid;
  border-radius: 10px;
  background-color: white;
  position: relative;
  margin: auto;
}
</style>
  

              
            
!

JS

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

              
            
!
999px

Console