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

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>
  <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;1,700&family=Raleway:wght@300;400;700&display=swap" rel="stylesheet">
  
</head>

<body>
  <!--HEADER-->
  <header id="header" class=""> 
    
    <!--Logo-->
    <img id="header-img" src="https://i.postimg.cc/bvLdY4fX/Surf-  Company-Logo.png" alt="Logo" class="center-box">
    
    <!--Navigation-->
    <nav id="nav-bar">
      <ul id="nav-links">
        <li><a class="nav-link" href="#mission">About</a></li>
        <li><a  class="nav-link" href="#video">Media</a></li>
        <li><a class="nav-link" href="#models">Models</a></li>
        <li><a class="nav-link" href="#form">Newsletter</a></li>
      </ul>
      
    </nav>
    
  </header>
  
  <main>
    
    
    
    <!--Mission-->
    <div id="mission">
      <h1 id="mission-title">Mission</h1>
      <p id="mission-text"> Welcome to Cruise Surfboards! Our Mission is to create surfboards of the highest quality for our customers all around the world!</p>
    </div>
    
    <!--Video-->
    
    <div id="video-container" class="">
      <p id="video-text"> Get on one of our signature long boards and you can start riding Waikiki like the pros!<p>
    <iframe id="video" width="420" height="315"
src="https://www.youtube.com/embed/QLT1-9hDsZc">
</iframe>
    </div>
    
    
    <!--Models-->
    <div id="models">
      <div id="shortboard" class="card-text">
        <h2>Shortboard</h2>
        <p> A short board great for catching any type of wave and agressive riding</p>
        <button>Ride!</button>
      </div>
      <div id="longboard" class="card-text">
        <h2>Longboard</h2>
        <p> A long board great for watching small waves and cruising</p>
        <button>Ride!</button>
      </div>
      <div id="gun" class="card-text">
        <h2>Gun</h2>
        <p> A long board with an aggressive shape that helps ride huge and fast waves!</p>
        <button>Ride!</button>
      </div>
    </div>
    
    
    
    
    
    
    
    
    <!--Signup for Newsletter-->
    <div id="border-box">
    <form id="form" action=/email-newsletter>
      
      <label for="email"> Sign Up for our Newsletter!</label>
      <input type="email" id="email" placeholder="Enter your Email"
             name="email">
      <input type="submit" id="submit" value="Submit" formaction="https://www.freecodecamp.com/email-submit">
    </form>
    </div>
    
    
    
  </main>
  
  <footer></footer> 
  
</body>


















<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                /*Header*/ 

#header {
  display: flex;
  border-bottom: 5px solid #230903;
  justify-content: space-between;
  width: 100%;
  position: fixed;
  top:0;
  background-color: white;
  z-index: 500;
}

/*Header Image*/

#header-img {
  max-width:8%;
  height: auto;
}

/* Header Navbar*/

#nav-bar {
  flex-grow: 1;
  position: relative; 
  
}
#nav-links {
  list-style-type: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  bottom: 0;
  left:0;
}

#nav-links li { 
  display:inline-block;
  padding:5px 100px;
}

.nav-link {
  font-size:25px;
  text-decoration: none;
  color: #230903;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
}

/*End of Header*/



.fire-opal-background {
  background-color: #ED6A5A;
}

.light-cyan-background {
  background-color: #C9E3DC;
}

.center-text {
  width: 100%;
  text-align: center;
  margin: auto;
  padding: 20px;
  display:block
}


/*Mission*/

#mission {
  width:30%;
  background-color: #C9E3DC;
  margin: 20px auto;
  font-family: 'Montserrat', sans-serif;
  margin-top: 180px; /*border: 5px solid black;*/
}

#mission-title { 
  text-align: center;
  padding-top: 15px;
  color: #230903;
  opacity: .9;
  font-weight: 400;
  font-size: 25px;
  font-family: 'Montserrat', sans-serif;
}

#mission-text {
  text-align:center; 
  padding-bottom: 30px;
  color: #585B56;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
}

/*Video*/

#video-container { 
  height: 390px;
  width: 650px;
  border-left: 2px solid black;
  border-right: 2px solid black;
  margin: 20px auto;}

#video-text { 
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 15px;
  text-align: center;
  color: #585B56;
  padding-top: 5px;
  
  


}

#video {
  width:420px;
  margin:auto;
  display:block;
}

@media (min-width:600px) {
  #video {
  width:600px;
  margin:auto;
  display:block;
}
}



/* Models */

#models {
  height:400px;
  width:70%;
  margin: auto;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color:#C9E3DC;
}

#shortboard, #longboard, #gun{
  background-color: #A7BED3;
  width:20%;
  height:70%;
}

.card-text {
  border: 3px solid #230903;
 
}

.card-text h2 { 
  text-align:center;
  color: #230903;
  font-weight: 400;
  font-size: 25px;
  font-family: 'Montserrat', sans-serif;
}

.card-text p {
  width: 60%;
  display:block;
  margin: 0 auto;
  color: #585B56;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  text-align:center;
}

.card-text button {
  display:block;
  margin: auto;
  margin-top: 10px;
  font-size: 25px;
  font-family: 'Montserrat', sans-serif;
  background-color: #FEF585;
  border:none;
  border-radius: 5%;
  width: 40%;
  
}

/*Newsletter Form*/

#border-box {
  border-left: 2px solid black;
  border-right: 2px solid black;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
  width: 20%;
  margin: auto;
}

#form {
  width: 90%;
  height: 150px;
  background-color: #C9E3DC;
  margin: 20px auto;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  text-align:center;
}

#email, #submit {
  color: #230903;
  font-weight: 400;
  font-size: 20px;
  font-family: 'Montserrat', sans-serif;
  width: 80%;
  display: block;
  margin: 10px auto;
}


              
            
!

JS

              
                
              
            
!
999px

Console