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

              
                <head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body>
<header id="header">
    <img id="header-img" src="https://i.imgur.com/sCE7wr1.png" alt="studyhub logo">

<nav id="nav-bar">
  <div class="nav-bar-menu">
  <ul>
  <li class="li-it"><a class="nav-link" href="#get-started"><b>Get Started</b></a></li>
  <li class="li-it"><a class="nav-link" href="#pricing"><b>Pricing</b></a></li>
  <li class="li-it"><a class="nav-link" href="#about"><b>About</b></a></li>
  </ul>
  </div>
  </nav>
</header>

<div class="flex-container" id="about">
  <div class="flex-item"><p class="st-hb">StudyHub helps you learn from home by yourself and most importantly for free.</p>
    <p class="st-hb sec">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod</p>
    
    
    </div>  
      <div class="flex-item illustration"><img src="https://i.imgur.com/oq5MnGl.png" alt="girl studying on video chat"></div>
</div>

<div class="outer">
  <p class="inner"><b>Video from FreeCodeCamp Youtube!</b></p>
  <iframe class="inner" width="420" height="315" src="https://www.youtube.com/embed/pQN-pnXPaVg"> </iframe>
</div>

<div id="paragraph">
  <p >Subscription Plans </p>
</div> 

<section id="pricing">
  <div class="option">
    <p><b><i>Single Course</i></b></p>
<!--     <div class="dollar">
      <p>$5</p> </div> -->
  </div>
  
    <div class="option">
      <p><b><i>Monthly</i></b></p>
<!--           <div class="dollar">
      <p>$15</p> </div> -->
  </div>
  
    <div class="option">
      <p><b><i>Yearly</i></b></p>
<!--           <div class="dollar">
      <p>$20</p> </div> -->
  </div>
</section>

<section id="information">
    <div class="info">
  <ul class="info-ul"> 
    <li class="features">first feature</li> 
    <hr>
    <li class="features">second feature</li> 
    <hr>
    <li class="features">last feature</li> 
  </ul>  
  </div>
  
  <div class="info">
 <ul class="info-ul"> 
    <li class="features">first feature</li> 
    <hr> 
    <li class="features">second feature</li> 
    <hr>
    <li class="features">last feature</li> 
  </ul>  
  </div>  
  
  <div class="info">
 <ul class="info-ul"> 
    <li class="features">first feature</li> 
    <hr>
    <li class="features">second feature</li> 
    <hr>
    <li class="features">last feature</li> 
  </ul>  
  </div>
</section>

<section id="get-started">
       <form id="form" 
          action=" https://www.freecodecamp.com/email-submit">
        <label id="email-label"
               for="email">To get started, enter your email:</label>
  <br>
  <input class="form-control"
         type="email"
         id="email"
         name="email"
         placeholder=" email@example.com"
         required >
  <br>
   <input class="input-control sbutton"
          id="submit"
          type="submit"
          value="Submit!">
    </form>
</section>

<footer>
  <div>
    <p class="credits"><b>©2022 Made for FreeCodeCamp Responsive Design Course</b></p>
  </div>
</footer>  
</body> 
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Comfortaa:wght@300&family=Righteous&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Comfortaa';
  background-image: url("https://i.imgur.com/WtVzeGd.png");
  background-repeat: repeat;
  max-width: 100%;
  height: auto;
  text-align: center;
}

/* Nav-Bar */
 nav {
  width: 100%;
  overflow: auto;
  position: relative;
}

.li-it {
  display: inline;
  padding: 8px;
  float: right;
  display: block;
  text-align: center;
  padding: 14px 16px;
  margin-left: 15px;
  font-size: 75%;
}

#header-img{
  max-width: 4.4%;
  max-height: 4.4%;
  border-radius: 50%;
  display: inline;
}

header {
  background-color: #ffddf4;
  padding-bottom: 0px;
  top: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed !important;
  width: 100%;
  z-index: 1;
}

.nav-link {
  font-size: 110%;
  text-decoration: none;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.illustration, iframe {
  max-width: 100%;
  height: auto;
}

.flex-container {
  display: flex;
  padding: 2%;
  flex-direction: row;
/*   max-width: 100%;
  height: auto; */
}

.flex-item {
  padding: 2%;
  font-size: 250%;
/*   width: 50%; */
  height: auto;
}

.st-hb {
  padding-top: 2%;
  color: #3D383D;
}

.sec {
  padding-top: 3%;
}

@media only screen and (max-width: 600px) {
  .flex-container {
    flex-direction: column;
  }
}

.option {
  font-size: 100%;
}

iframe {
  height: 12.5rem;
  max-height: 240px;
}

.outer {
  width: 100%;
  text-align: center;
  height: auto;
  background-color: #191970;
  padding-top: 2.5%;
  padding-bottom: 2.5%;
  border-radius: 5%;
}

.inner {
  color: #FF4500;
  font-size: 200%;
}

label {
  font-family: 'Architects Daughter';
}

#paragraph {
  margin-top: 7%;
  font-size: 2rem;
}

/* submit button */
.sbutton {
  width: 20%;
  border-color: #191970;
  appearance: none;
  background-color: #191970;
  border-radius: 0.75rem;
  box-sizing: border-box;
  color: #FFDDF4;
  cursor: pointer;
  font-family: Roobert, sans-serif;
  line-height: normal;
  margin: 0;
  outline: none;
  padding: 4px 8px;
  text-decoration: none;
  transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
  touch-action: manipulation;
  will-change: transform;
}

.sbutton:disabled {
  pointer-events: none;
} 

.sbutton:hover { 
  transform: translateY(-2px);
}

form {
  margin-top: 5%;
}

#email-label {
  font-family: Roobert, sans-serif;
  font-size: 1.6rem;
}  

.form-control {
  border-radius: 0.75rem; 
  border-color: black;
  margin-top: 1.5%;
  margin-bottom: 1.25%;
  width: 35%;
  border-color: #191970;
}

/* footer */
footer {
  background-color: #ffddf4;
  margin-bottom: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  left: 0;
  font-size: 20px;
  z-index: 1;
  margin-top: 5%;
  height: 3%;
  max-height: 2%;
  vertical-align: middle;
  color: #0000cd;
  font-size: 75%;
}

/* Pricing */
#pricing {
  display: flex;
  margin-left: 5%;
  margin-right: 5%;
  height: height;
}

b {
  font-size: 125%;
  padding-top: 10%;
  margin-top: 10%;
}

hr {
  width: 55%;
}

.option {
  background: white;
  margin-left: 10px;
  border-radius: 0.5rem 0.5rem 0 0; 
  padding: 0;
  width: 50%;
  height: 3rem;
  background-color: #191970;
  color: #ffddf4;
}

#information {
  display: flex;
  margin-left: 5%;
  margin-right: 5%;
  height: auto;
}

.info {
  background: silver;
  margin-left: 10px;
  border-radius: 0 0 0.5rem 0.5rem;
  width: 50%;
}

li {
  text-align: center;
}

.info-ul {
  list-style-type: none;
}

.dollar p {
  margin: -12.5%;
  margin-left: 70%;
  font-size: 2rem;
}

.features {
  margin-top: 5%;
  margin-bottom: 5%;
} 
              
            
!

JS

              
                
              
            
!
999px

Console