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>
   <title>Zahir Patisserie</title>
</head>

<body>

   <!-- Header start-->

   <header id="header">
      <img id="header-img" src="https://scontent-cdg2-1.xx.fbcdn.net/v/t31.18172-8/12747998_1120783481287802_7197050520750603331_o.jpg?_nc_cat=100&ccb=1-5&_nc_sid=09cbfe&_nc_ohc=sVY6ZW3LTNcAX-L4qI2&_nc_ht=scontent-cdg2-1.xx&oh=cd6e530cdfd90108c1823c61ed1ae772&oe=615C7960" alt="Logo" width="168" height="81" />

      <nav id="nav-bar">
         <!--Navigation bar-->
         <a href="#features" class="nav-link">Features</a>
         <a href="#video" class="nav-link">Video</a>
         <a href="#products" class="nav-link">Pricing</a>
      </nav>
      
   </header>
<main>
   <!-- Header End -->

   <!-- One-pager start -->

   <div class="intro">

      <h1 class="title">Handcrafted, home-taste masterpieces</h1>

      <form id="form" action="https://www.freecodecamp.com/email-submit">

         <input type="email" name="email" id="email" placeholder="Enter email here" required/>
         <input type="submit" id="submit" value="GET STARTED"/>

      </form>
   </div>

   <article id="features">

      <section id="one-feature">

         <svg viewBox="0 0 512 512" width="100" title="seedling" class="icons">
            <path d="M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z" />
         </svg>

         <div class="ingrid-text">
            <!-- THIS IS WHERE I NEED HELP -->
<!--I want to distribute the free space between the H3 and P evenly -->
            
            <h3>Awlays fresh ingridients</h3> <!-- <-Element 1-->
            <p>We use fresh and locally sourced product for our cakes. This makes their taste even more amazing.</p> <!-- <-Element 2-->
            
<!-- The 2 elements are above-->
            
         </div>
      </section>
      <section id="one-feature">

         <svg viewBox="50 0 632 512" width="100" title="shipping-fast" class="icons">
            <path d="M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H112C85.5 0 64 21.5 64 48v48H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h272c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H40c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H64v128c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z" />
         </svg>

         <div class="ingrid-text">
            
               <h3>Free shipping</h3>
            
               <p>We make sure you recieve your cake as soon as we have finished making it.</p>
         </div>
      </section>

      <section id="one-feature">
         <svg viewBox="0 0 512 512" width="100" title="medal">
            <path d="M223.75 130.75L154.62 15.54A31.997 31.997 0 0 0 127.18 0H16.03C3.08 0-4.5 14.57 2.92 25.18l111.27 158.96c29.72-27.77 67.52-46.83 109.56-53.39zM495.97 0H384.82c-11.24 0-21.66 5.9-27.44 15.54l-69.13 115.21c42.04 6.56 79.84 25.62 109.56 53.38L509.08 25.18C516.5 14.57 508.92 0 495.97 0zM256 160c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm92.52 157.26l-37.93 36.96 8.97 52.22c1.6 9.36-8.26 16.51-16.65 12.09L256 393.88l-46.9 24.65c-8.4 4.45-18.25-2.74-16.65-12.09l8.97-52.22-37.93-36.96c-6.82-6.64-3.05-18.23 6.35-19.59l52.43-7.64 23.43-47.52c2.11-4.28 6.19-6.39 10.28-6.39 4.11 0 8.22 2.14 10.33 6.39l23.43 47.52 52.43 7.64c9.4 1.36 13.17 12.95 6.35 19.59z"/>
         </svg>

         <div class="ingrid-text">
            <h3>Quality Assurance</h3>
            <p>For every cake we make, we ensure there are no damages or faults and that we met our clients' standarts.</p>
         </div>

      </section>
   </article>

   <article>
      <iframe width="560" height="315" id="video" src="https://www.youtube.com/embed/lVnir8X8pdI" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      </iframe>
   </article>

   <article id="products">
      <section class="product-section">

         <h4 class="product-header">Everyday cake</h4>
         <div class="product-content">
            <p class="product-price">10$-32$</p>
            <ul class="product-descr">
               <li>Lorem ipsum.</li>
               <li>Lorem ipsum.</li>
               <li>Lorem ipsum dolor.</li>
               <li>Lorem ipsum.</li>
            </ul>
         </div>
      </section>

      <section class="product-section">

         <h4 class="product-header">Birthday cake</h4>
         <div class="product-content">
            <p class="product-price">32$-112$</p>
            <ul class="product-descr">
               <li>Lorem ipsum.</li>
               <li>Lorem ipsum.</li>
               <li>Lorem ipsum dolor.</li>
               <li>Lorem ipsum.</li>
            </ul>
         </div>

      </section>

      <section class="product-section">

         <h4 class="product-header">Wedding cake</h4>
         <div class="product-content">
            <p class="product-price">112$-1012$</p>
            <ul class="product-descr">
               <li>Lorem ipsum.</li>
               <li>Lorem ipsum.</li>
               <li>Lorem ipsum dolor.</li>
               <li>Lorem ipsum.</li>
            </ul>
         </div>

      </section>

   </article>
   </main>
</body>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Montserrat:400,400i,700");
@import url("https://fonts.googleapis.com/css?family=Lato:400,400i,700");


body{
   background-color:#F7EDE2;
   display:flex;
   flex-direction: column;
   font-family: Montserrat, Lato;
   width: 100%;
}

header{
   position: fixed;
   display:grid;
   grid-template-columns: 300px 1fr;
   background:white;
   padding:5px;
   top:0px;
   left:0px;
   bottom:auto;
   right: 0px;
   z-index:1;
}

main{
   display: flex;
   flex-direction:column;
   margin:auto;
   align-items:center;
   max-width:780px;
   position:relative;
   top:6em;
   z-index:0;
}

#header-img{
   padding-left:50px;
   grid-column:1;
   justify-self:start;
}

@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
  }
}

@media (max-width: 650px) {
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
}

#nav-bar{
   grid-column:2;
   padding-right:50px;
   justify-self:end;
   align-self: center;
}

.nav-link {
	color: #494949 !important;
	text-transform: uppercase;
	text-decoration: none;
	background: #ffffff;
	padding: 10px;
	border: 0px solid #494949 !important;
	display: inline-block;
	transition: all 0.4s ease 0s;
}
.nav-link:hover {
	color: #ffffff !important;
   border-radius:2px;
	background: #F3C1B9;
	border-color: #F4AE3E !important;
	transition: all 0.4s ease 0s;
}

.intro{
   display:flex;
   flex-direction:column;
   align-items:center;
   justify-content: center;
   text-align: center;
}

.intro h1{
   font-size:30px;
   margin:40px;
}
#form{
   display:flex;
   flex-direction:column;
   align-items:center;
   gap:50px 50px;
}
input[type='email'] {
  padding: 14px;
}
#submit{
   color: #ffffff !important;
   margin:20px;
   padding: 14px;
	border: 0px solid #494949;
   border-radius:2px;
	background: #EF6E6C;
	border-color: #EF6E6C !important;
}
#submit:hover {
   cursor: pointer;
   background:#ED5C5A;
}

/* */
#features{
   display:grid;
   grid-template-columns: 1fr;
   margin:30px;
}
#one-feature{
   display:grid;
   grid-template-columns: 120px 1fr;
   padding:30px;
}
.ingrid-text > h3{
   margin-top:10px;
  margin-bottom:-4px;
}
.ingrid-text > p {
}

#video{
   padding: 30px;
   background-color:#DCE5E3;
   border: 0px solid;
   border-radius: 10px;
   overflow: hidden;
   z-index: 1;
}

#products{
   margin-top:30px;
   margin-bottom:40px;
   display:flex;
   justify-content:center;
   align-items:center;
}

.product-section{
   display:flex;
   flex-direction:column;
   align-items:center;
   text-align:center;
   background-color:#F9E0DC;
   width: calc(100% / 3.3);
   border: 0px solid;
   border-radius: 0px;
   padding:0px;
   margin:10px;
}
.product-header{
   color:black;
   font-size:18px;
   width:100%;
   font-weight:600;
}
.product-price{
      font-weight:700;
   }
.product-content{
   display:flex;
   flex-direction:column;
   align-text:center;
}
.product-descr{
   display:flex;
   flex-direction:column;
   align-text:center;
   align-items:center;
}
              
            
!

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