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

              
                <!-- Import fa-fa icons and fonts for document -->

<script src="https://kit.fontawesome.com/c0610b2a19.js" crossorigin="anonymous"></script>

<style>
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');
</style>

<!-- Sticky Nav Bar -->

<header id="header">
  <div id="nav-wrapper">
    <nav id="nav-bar">
      <div class="header-column" id="logo-column">
        <img src="https://raw.githubusercontent.com/lforsey/images/fc2edf2687e91270dbc69151d91a5bf9e655b154/Blucher.svg" id="header-img" alt="Free (cc0) shoe vector I found to match this theme."/>
      </div>
      <div class="header-column" id="nav-column">      
        <ul id="nav-list">
          <li><a class="nav-link" href="#title">About</a></li>
          <li><a class="nav-link" href="#features">Features</a></li>
          <li><a class="nav-link" href="#video">Testimonials</a></li>
        </ul>
      </div>
    </nav>
  </div>
</header>
  
<!-- Main document -->

<main id="page-wrapper">
  <div class="content-wrapper">
    <div id="hero-wrapper" class="container">
      <h1 id="title">The Fanciest Shoes</h1>
      <p class="about"><i class="fas fa-arrow-right" id="about-arrow"></i>you have ever seen</p>
      <p class="about"><i class="fas fa-arrow-right" id="about-arrow-two"></i>in your life</p>
      <p class="about"><i class="fas fa-arrow-right" id="about-arrow-three"></i>seriously, what are you waiting for, just buy them already</p>
      <img src="https://raw.githubusercontent.com/lforsey/images/main/CROPPEDirene-kredenets-KStSiM1UvPw-unsplash.jpg" id="image" alt="some really nice shoes with a good color scheme from unsplash -- https://unsplash.com/@ikredenets?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText"/>
    </div>
    <div id="features" class="inner-container">
      <ul id="shoe-list">
        <li class="fa-fa-list"><i class="fas fa-dragon" id="paw-bullet"></i>Pure Dragon Leather</li>
        <li class="fa-fa-list"><i class="fas fa-couch" id="paw-bullet-two"></i>Blissfully Comfortable Padding</li>
        <li class="fa-fa-list"><i class="fas fa-gem" id="paw-bullet-three"></i>Top Quality Diamond Pattern Sole</li>
      </ul>
      <div id="email-submit" class="inner-container">
        <p id="form-title">Enter your email for a subscribers only discount</p>
        <form id="form" action="https://www.freecodecamp.com/email-submit">
          <div class="form-group">
            <input
              type="email"
              name="email"
              id="email"
              placeholder="Enter your email"
              required/>
          </div>
          <div class="form-group">
            <button type="submit" id="submit" class="submit-btn">Submit</button>
          </div>
        </form>
      </div>
    </div>
    <div id="testimonial-container" class="inner-container">
      <iframe id="video" width="560" src="https://www.youtube.com/embed/KbfvObAXHoE" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      <div class="inner-container" id="vid-container">
        <p class="video-desc">This is a bunch of text, that would be describing a shoe video, if this was a product video for shoes and not just a placeholder. Instead, enjoy some cat ipsum text as a placeholder.</p>
        <p class="video-desc" id="above-grid">If it smells like fish eat as much as you wish eat fish on floor so meow loudly just to annoy owners, and catty ipsum so crash against wall but walk away like nothing happened bite off human's toes. Mewl for food at 4am eat grass, throw it back up or unwrap toilet paper.</p>
        <section class="inline-grid">
          <div class="fagrid" id="fagrid-one"><i class="fas fa-dragon fa-3x"></i><p class="fagrid-desc">These are for show</p></div>
          <div class="fagrid" id="fagrid-two"><p class="fagrid-desc">CSS grid</p><i class="fas fa-cat fa-3x"></i></div>
          <div class="fagrid" id="fagrid-three"><i class="fas fa-dog fa-3x"></i><p class="fagrid-desc">Nested inside</p></div>
          <div class="fagrid" id="fagrid-four"><p class="fagrid-desc">Flex columns</p><i class="fas fa-gem fa-3x"></i></div>
        </section>
        <p class="video-desc" id="below-grid">Morning beauty routine of licking self i is playing on your console hooman sit in box. What a cat-ass-trophy!. Chew foot walk on a keyboard i do no work yet get food, shelter, and lots of stuff just like man who lives with us so plan steps for world domination yet shove bum in owner's face like camera lens is good you understand your place in my world, so spill litter box, scratch at owner, destroy all furniture, especially couch.</p>
      </div>
    </div>
  </div>
</main>

<!--    Footer    -->


<div class="footer">
  <i class="fa fa-copyright" id="copy-fa"></i><p>Created by lforsey 2022</p>
</div>
              
            
!

CSS

              
                /* Colour Scheme */

:root {
  --main-cream: #E7DEDA;
  --main-green: #42564C;
  --main-brown: #994C2F;
  --main-orange: #D28051;
}

/* Document Reset */

*,
*::before,
*::after {
  box-sizing: inherit;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 4em;
  box-sizing: border-box;
}

h1 {
  font-family: "Libre Baskerville", serif;
  font-size: 3em;
  color: var(--main-brown);
  text-shadow: 2px 2px 2px #41554C;
}

@media (max-width: 1000px){
  h1 {
    font-size: 2em;
  }
}

p {
  font-size: 1.2em;
  font-family: "Libre Baskerville", serif;
}

@media (max-width: 1000px){
  p {
    font-size: 1em;
  } 
}

li {
  font-size: 1.5em;
  margin: 1.2em;
  list-style-type: none;
}

@media (max-width: 1000px){
  li {
    font-size: 1.2em;
  } 
}

header {
  position: sticky;
  top: 0;
  background: #fff;
}

#page-wrapper {
  width: 100%;
  height: 100%;
  background: var(--main-cream);
  margin: auto;
  display: flex;
}

#nav-bar {
  display: flex;
  flex-direction: row;
  margin: 0;
  position: sticky;
}

.header-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
}

@media (max-width: 1000px){
  #logo-column {
    display: none;
  } 
}

#header-img {
  width: 30%;
  margin: auto;
}

#nav-list {
  display: flex;
  justify-content: space-between;
}

.nav-link {
  color: var(--main-green);
}

#hero-wrapper {
  display: flex;
  flex-direction: column;
  margin: auto;
  text-align: center;
}

#title {
  padding-top: 1em;
}

.about {
  font-size: 1em;
  font-family: "Libre Baskerville", serif;
}

@media (max-width: 1000px){
  #about {
    font-size: 0.8em;
    margin-top: 0.8em;
  } 
}

#about-arrow,
#about-arrow-two,
#about-arrow-three {
  padding-right: 0.5em;
}

#image {
  max-width: 40%;
  margin: 2em auto 2em auto;
  object-fit: cover;
  border-radius: 2em;
  box-shadow: 0.3em 0.5em 1em;
  transition: border-radius 1s linear;
}

@media (max-width: 1000px){
  #image {
    max-width: 60%;
  }
}

#image:hover {
  border-radius: 85px 10px 90px 20px;
  transition-duration: 2s linear;
}

#paw-bullet,
#paw-bullet-two,
#paw-bullet-three {
  padding-right: 0.5em;
}

.inner-container {
  max-width: 60%;
  background: #fff;
  margin: auto auto 2em auto;
  padding: 1em 0 1em 0;
  border-radius: 0.5em;
  box-shadow: 0.3em 0.5em 1em;
}

@media (max-width: 1000px) {
  .inner-container {
    max-width: 95%;
  }
}

#shoe-list {
  text-align: center;
  margin: auto;
  color: #984C2E;
  text-shadow: 0.5px 0.5px 2px #41554C;
}

#form-title {
  text-align: center;
  color: var(--main-brown);
  text-shadow: 1px 1px 2px #41554C;
  margin: auto auto 0.5em auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin: auto;
  padding: 0.5em 2em 0.5em 2em
}

#email,
#submit {
  text-align: center;
  font-size: 1.2em;
  padding: 0.3em;
  border-radius: 5px;
  border: 0.1em solid #000;
}

#submit:hover {
  background: var(--main-green);
  color: #fff;
  cursor: pointer;
}

#email-submit {
  display: flex;
  flex-direction: column;
}

#testimonial-container {
  display: flex;
  flex-direction: column;
  margin: auto auto 2em auto;
}

#video {
  display: flex;
  margin: 1em auto 2em auto;
  width: 560px;
  height: 315px;
}

@media (max-width: 1000px) {
  #video {
    max-width: 80%;
  }
}

#vid-container {
  padding: 1.5em;
}

@media (max-width: 1000px) {
  #vid-container {
    max-width: 80%;
  }
}

.video-desc {
 text-align: center;
 margin: 0.5em;
}

#above-grid {
  margin-bottom: 2em;
}

#below-grid {
  margin-top: 2em;
}

/* Attempt to make inline grid layout */

.inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--main-green);
  border-radius: 2em;
  padding: 2em;
  box-shadow: 0.3em 0.5em 1em;
}

.fagrid {
  display: grid;
  justify-content: center;
  text-align: center;
  padding: 1em;
  color: var(--main-green);
  transition: transform 0.5s linear;
}

.fagrid:hover {
  transform: scale(1.2);
}

.footer {
  font-size: 1em;
  font-family: "Libre Baskerville", serif;
  padding: 0.6em;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
}

#copy-fa {
  margin-right: 0.2em;
}
              
            
!

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