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

              
                
  <link rel="stylesheet" href="style.css">
  <!-- HERE GOES HEADER  -->
  <header id="header">
    <!-- logo -->
    <div class="img">
      <img src="https://res.cloudinary.com/omobola/image/upload/v1618940763/RWD/logo.png" id="header-img" alt="zarina logo">
    </div>

    <!-- nav bar -->
    <nav id="nav-bar">
      <ul id="head-ul">
        <li><a href="#feature" class="nav-link">Features</a></li>
        <li><a href="#work" class="nav-link">How It Works</a></li>
        <li><a href="#pricing" class="nav-link">Pricing</a></li>
      </ul>
    </nav>
  </header>

  <!-- main content -->
  <!-- feature section -->
  <section id="feature" class="sects">
    <div class="container">
      <h2>FEATURES</h2>
      <!-- first box -->
      <div class="box-container">

        <div class="box">
          <article>
            <h3>Premium Materials</h3>
            <p class="copy">
              Our trombones use the shiniest brass which is sourced locally.
              This will increase the longevity of your purchase.
            </p>
          </article>
        </div>
        <!-- second box -->
        <div class="box">
          <article>
            <h3>Fast Shipping</h3>
            <p class="copy">
              We make sure you recieve your trombone as soon as we have finished making it.
              We also provide free returns if you are not satisfied.
            </p>
          </article>
        </div>
        <!-- third box -->
        <div class="box">
          <article>
            <h3>Quality Assurance</h3>
            <p class="copy">
              Our trombones use the shiniest brass which is sourced locally.
              This will increase the longevity of your purchase.
            </p>
          </article>
        </div>
      </div>
    </div>
  </section>

  <!-- Second section -->
  <section id="work" class="sects promo">
    <div class="container">
      <h2>HOW IT WORKS</h2>
      <video id="video" controls>
        <source src="https://youtu.be/bKqVGXKRloU" type="video/mp4">
        product promotional video
      </video>

      <div class="">
      	<h1 id="hform">Get a Copy of Our Frequently Updated Catalog with an Exclusive Offers </h1>
        <form action="https://www.freecodecamp.com/email-submit" method="post" id="form">

          <div class="" id="">
            <label for="email"></label>
            <input type="email" name="email" id="email" placeholder="Enter your email address" required>
          </div>

          <div class="">
            <input type="submit" value="Get Started" id="submit">
          </div>
        </form>
      </div>

    </div>
  </section>

  <!-- third section -->
  <section id="pricing" class="sects">
    <div class="container">
      <h2>PRICING</h2>
      <div class="box-container box2">
        <div class="box">
          <h4>Fresh Pineapples</h4>
          <figure>
            <img src="img/pineapple.jpg" class="image" alt="image of a fresh pineapple">
          </figure>
          <p class="price">
            <strong>&dollar;600</strong>
          </p>
          <p class="short-copy">
            loarcu adhuc noster option animal tacimates a magnis homero senectus finibus no inceptos ridiculus.
            curae verear urna parturient atqui sagittis
          </p>

          <button type="submit">PEEK</button>
        </div>

        <div class="box">
          <h4>Mushy Strawberries</h4>
          <figure>
            <img src="img/strawberries.jpg" class="image" alt="image of strawberries">
          </figure>
          <p class="price">
            <strong>&dollar;900</strong>
          </p>
          <p class="short-copy">
            loarcu adhuc noster option animal tacimates a magnis homero senectus finibus no inceptos ridiculus.
            curae verear urna parturient atqui sagittis
          </p>

          <button type="submit">PEEK</button>
        </div>

        <div class="box">
          <h4>Fresh Pineapples</h4>
          <figure>
            <img src="img/lemon.jpg" class="image" alt="image of lemons">
          </figure>
          <p class="price">
            <strong>&dollar;1200</strong>
          </p>
          <p class="short-copy">
            loarcu adhuc noster option animal tacimates a magnis homero senectus finibus no inceptos ridiculus.
            curae verear urna parturient atqui sagittis
          </p>

          <button type="submit">PEEK</button>
        </div>
      </div>
    </div>
  </section>

  <!-- footer -->
  <footer>
    <div class="container">
      <div id="ft-box">
        <ul id="ft">
          <li class="ft-nav"><a href="#">privacy</a></li>
          <li class="ft-nav"><a href="#">term</a></li>
          <li class="ft-nav"><a href="#">contact</a></li>
        </ul>
      </div>
      <p><small>&copy 2021. Copyright, Zarina</small></p>
    </div>
  </footer>

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

              
            
!

CSS

              
                /* ---colors---
---- #d9a3c7
---- #c4c4c4
---- #80ffd6
*/

/* ---global--- */
body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-rendering: optimizeLegibility;
	background-color: #80ffd6;
}

/* --- header--- */

header {
	background-color: #fff;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: auto;
	position: fixed;
	top: 0;
	z-index: 100;
	padding: 0;
	margin: 0;
	width: 100%;
}

.img {
	margin: 0;
	padding: 0 1.5em;
}

#header-img {
	width: 35vw;
	height: auto;
	padding: 0;
	margin: 0;
}

/*  *#nav-bar {
	background-color: pink;
	
	
	/*  *justify-self: center;/* control 
}*/

ul {
	list-style: none;
	padding: .5em 0;
	margin: 0;
	
}

.nav-link {
	display: grid;
	text-decoration: none;
	padding: .2em;
	font-size: 120%;
	color: #000;
}

h2,h3,h4 {
	text-align: center;
}


/* ------ reusable----- */
.container {
	width: 90%;
	margin: 0 auto 8% auto;
}

.sects {
	padding: 1em 0 2em 0;
	/*  background-color: orange;/* control */
}

h2, h3 {
	font-size: 120%;
	padding: .5em 0 2em 0;
}

.box-container {
	display: grid;
	grid-gap: 1em;
}

.box {
	border: none;
	border-radius: .3em;
	background-color: #fff;
	padding: 1em;
}

.box2 {
	text-align: center;
}
.image {
	width: 5em;
	height: auto;
	margin: 2% auto;
}

.copy,
.short-copy {
	font-size: 80%;
	text-align: center;
	line-height: 1.5em;
	padding: 0 .3em;
}

/* ----sections--- */

.promo {
	background-color: #fff;
}

#video {
	width: 100%;
	height: auto;
}


#form {
	display: flex;
	flex-direction: column;
}

input {
	padding: .5em;
	border: none;
	border-radius: .3em;
}

#email {
	width: 90%;
	border: .05em solid black;
	background-color: #ccc;
}

#submit{
	font-size: 100%;
	width: 95%;
	background-color: #80ffd6;
	margin-top: .6em;
}

#hform {
	font-size: 130%;
	text-align: justify;
	margin: 1.5em 0;
	padding: 0 .5em 0 0;
	line-height: 2em;
}

#feature {
	padding-top: 12em;
}

button {
	background-color:  #80ffd6;
	font-size: 95%;
	padding: .6em;
	border: none;
	border-radius: .4em;
	margin: .5em 0;
	width: 30%;
	outline: none;
}

/*.price {
	font-size: ;
}
*/


/* ---footer--- */
footer {
	background-color: #fff;
	padding: .6em 0 .3em 0;
}



#ft {
	display: flex;
	justify-content: flex-end;
}

a  {
	padding: .8em 0 .8em .5em;
	color: black;
	text-decoration: none;
}

footer p {
	text-align: right;
}


/* ---media query--- */

/* ---rules for smartphone screen size---*/

@media (min-width: 768px) {
	
/* ---anything in header goes here---- */
	
header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	margin: 0;
	padding: 0;
}

#head-ul {
	display: flex;
}

#nav-bar {
	display: flex;
}


#head-ul {
	display: flex;
	/*justify-content: flex-end;*/
}

.nav-link {
	display: flex;
	margin-right: .8em;
}

#header-img {
	width: 90px;
	height: 50px;
	/*background-color: orange;*/
	padding: 0;
	margin: 0;
}

/* ------ reusable----- */
.container {
	width: 95%;
	margin: 0 auto 10% auto;
}

.box-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-gap: .8em;
}

.box {
	padding: 1.5em;
}

h2, h3, h4 {
	font-size: 50%;
}

h2 {
	padding: 10em;
}

h3, h4 {
	padding: .8em 0 3em 0;
}
.copy,
.short-copy {
	font-size: 40%;
	text-align: justify;
	line-height: 1.2em;
	padding: .5em;
}


/* ----sections--- */

.promo {
	background-color: false;
}

.work {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 5em;
}

#video {
	/*margin-top: 2em; control*/
	align-self: center;
}

#hform {
	font-size: 60%;
	text-align: left;
	margin: 2em 0;
	/*padding: 0 .5em 0 0;*/
	line-height: 1.8em;
}

#email {
	width: 88%;
	padding: 1em;
}


#submit{
	font-size: 150%;
}

.price {
	font-size: 40%;
	padding: 1.5em 0;
}

/* ---footer--- */
#ft {
	justify-content: center;
}

footer  p {
	font-size: 45%;
	text-align: center;
}
}

              
            
!

JS

              
                
              
            
!
999px

Console