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

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

<body>
  <main>
    <div id="header">
      <h1>i</h1>
      <img id="header-img" alt="Luv" src=http://res.cloudinary.com/hbrwdfccc/image/upload/v1530360429/1522851754Red-Heart-PNG-Clipart.png>
      <h1>Fruit Platters</h1>
      <nav id="nav-bar">
        <ul>
          <li id="home"><a class="nav-link" href="#start">Home</a></li>
          <li id="about"><a class="nav-link" href="#showBaladi">About</a></li>
          <li id="menu"><a class="nav-link" href="#baladiMenu">Menu</a></li>
          <li id="contact"><a class="navlink" href="#contactBaladi">Contact</a>
          </li>
        </ul>
      </nav>
    </div>

    <a name="start" id="start" class="intlink">Hidden Anchor</a>
    <section class="content" id="aboutUs">
      <div class="subSection">

        <h2 id="aboutBaladi">The iLuvFruit Promise</h2>

        <p>We provide the perfect, healthy dessert platter for any occasion! <br/> We're the best because we use the freshest, ripest and most seasonal fruits. <br/>Everything is hand-selected for your order and taste-tested before being included in the platter.</p>

      </div>
    </section>

    <a name="showBaladi" id="showBaladi" class="intlink">&nbsp;</a>
    <section class="content page" id="showPage">
      <p id="hook">Let us show you why you will love fruit too!</p>
      <video id="video" width="500" height="500" poster="http://res.cloudinary.com/hbrwdfccc/image/upload/v1529116367/15747484_10208951538722655_1076384815680512258_n.jpg" controls><source src="http://res.cloudinary.com/hbrwdfccc/video/upload/v1529115940/My_Movie.mp4" type="video/mp4" mute></video>
    </section>

    <a name="baladimenu" id="baladiMenu" class="intlink">&nbsp;</a>
    <section id="menuSection">
      <h2 id="menutitle">Menu</h2>
      
      <ul class="listing">
        <li>
          <h2>Mixed Fruit Platter</h2>
          <div class="body">
            <p>This festive platter will grace any table.</p>
            <img alt=" fruit platter" src="http://res.cloudinary.com/hbrwdfccc/image/upload/v1529116367/15747484_10208951538722655_1076384815680512258_n.jpg">
          </div>
          <div class="cta"><a href="">Order Now</a></div>
        </li>
        <li>
          <h2>Fruitalicious Watermelon Cake</h2>
          <div class="body">
            <p>This is the perfect sugar-free cake for one!</p>
            <img alt="fruit platter" src="http://res.cloudinary.com/hbrwdfccc/image/upload/v1529283447/15826674_10208951614604552_5561096515346681873_n.jpg">
          </div>
          <div class="cta"><a href="">Order Now</a></div>
        </li>
        <li class="wide">
          <h2>Festive Season Platter</h2>
          <div class="body">
            <p>Perfectly festive fruit platter for your next gathering.</p><img alt="fruit platter" src="http://res.cloudinary.com/hbrwdfccc/image/upload/v1529283498/15747629_10208951540202692_1411884552463792969_n.jpg">
          </div>
          <div class="cta"><a href="">Order Now</a></div>
        </li>
        <li>
          <h2>Watermelon Pizza</h2>
          <div class="body">
            <p>A thin watermelon pizza with assorted fruit toppings.</p>
            <img alt="fruit platter" src="http://res.cloudinary.com/hbrwdfccc/image/upload/v1529283436/15823040_10208951605244318_6677319074459958395_n.jpg">
          </div>
          <div class="cta"><a href="">Order Now</a></div>
        </li>
      </ul>
    </section>
    <a name="contactBaladi" id="contactBaladi" class="intlink">&nbsp;</a>
    <section class="content page" id="contactForm">
      <div class="subSection left">
        <h2>Contact Us!</h2>
        <ul>
          <li>Tel: 555-555-5555</li>
          <li>Fax: 555-555-5555</li>
        </ul>
      </div>
      <div class="subSection right">
        <form id="form" action="https://www.freecodecamp.com/email-submit">
          <label for="email">Email:</label>
          <input name="email" id="email" type="email" placeholder="Email address"><label for="comments">Message:</label>
          <textarea name="comments" rows="4" cols="22" placeholder="Comments here."></textarea>
          <span id="submitBtn">
              <input type="submit" id="submit"></input>
              </span>
        </form>
      </div>
    </section>

  </main>
</body>
              
            
!

CSS

              
                body {
  color: white;
  font-family: "Ribeye Marrow", helvetica;
  margin: 0 auto;
  padding: 0;
  display: block;
  width: 100%;
  height: auto;
  font-size: 1em;
}

main {
  width: 100%;
  height: auto;
  /*background: white; */
  font-family: Chathura, arial;
  margin-top: 9rem;
  box-sizing: border-box;
  /*
  grid-template-columns: auto;
  grid-template-rows: auto;*/
}
/* Define the main Navigation block */
#nav-bar {
  background: rgba(250, 0, 0, 0);
  backdrop-filter: blur(18px);
  color: white;
  border-radius: 3%;
  width: 100%;
  padding: 0;
  font-family: Chathura, helvetica, san-serif;
  line-height: 1rem;
  font-size: 2rem;
  grid-area: nav;
  margin: 0;
  text-align: center;
  align-items: center;
  align-content: center;
  justify-content: center;
}


#nav-bar ul {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  width: 100%;
  -webkit-flex-flow: row nowrap;
  justify-content: space-between;
  
  list-style: none;
  padding: 0;
  margin: 1px 1px 1px 1px;
  margin-left: auto;
  margin-right: auto;
}

#nav-bar ul li {
  text-decoration: none;
  border-bottom: 1px dotted white;
  color: white;
  margin: 10px 0px 10px 0px;
  font-weight: bold;
  font-variant: small-caps;
  padding: 0;
  display: inline-block;
}

#nav-bar ul li a {
  text-decoration: none;
  text-align: center;
  color: white;
}

#nav-bar ul li:hover {
  color: gold;
  transition: color 200ms ease-in-out;
}

#nav-bar ul *:hover {
  font-size: 2.3rem;
  transition: font-size 200ms ease-in-out;
}
#header-img {
  grid-area: icon;
  width: 4em;
  margin: 1.4em 0em 0.3em 0.3em;
}

#header {
  z-index: 1; /** force header to be on top ! **/
  display: grid;
  width: 100%;
  height: auto;
  grid-template-areas: 
    "firstletter icon companyname" 
    "nav nav nav" ;
  grid-template-columns: auto fit-content auto;
  grid-template-rows: auto auto;
  grid-gap: 0rem 0px;
  justify-content: center;
  align-content: center;
  margin: .5rem 0px 0px 0px;
  text-align: center;
  height: auto;
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 2;
  position: fixed;
  top: 0;
  background: linear-gradient(
    135deg,
    rgba(250, 250, 250, 1),
    rgba(244, 164, 66, 0.9),
    rgba(250, 0, 0, 0.8),
    rgba(244, 164, 66, 0.9),
    rgba(250, 250, 250, 1)
  );
}

#header h1:first-child {
  grid-area: firstletter !important;
}

#header h1 {
  font-family: "Ribeye Marrow", helvetica;
  font-size: 2.3em;
  grid-area: companyname;
  display: inline;
  margin-left: auto;
  margin-right: auto;
  vertical-align: center;
  justify-self: center;
  padding-left: 0.1em;
  position: relative;
  top: 0rem;
}

.subSection {
  padding: 0;
  display: grid;
  grid-template-rows: fit-content auto;
  grid-template-columns: fit-content auto;
}
#contactForm h2 {
  border-top: 5px dashed rgba(255, 244, 179, 1); 
  border-bottom: 5px dashed rgba(255, 244, 179, 1); 
  border-right: 5px dashed rgba(255, 244, 179, 1); 
  border-left: 5px dashed rgba(255, 244, 179, 1);
  
}
.subSection h2 {
  font-style: oblique;
  font-family: "open sans", san-serif;
  /*
  border-top: 5px dashed rgba(255, 244, 179, 1); 
  border-bottom: 5px dashed rgba(255, 244, 179, 1); 
  border-right: 5px dashed rgba(255, 244, 179, 1); 
  border-left: 5px dashed rgba(255, 244, 179, 1);
  */
  padding: 1rem 1rem 1rem 1rem;
  margin-right: 0rem;
  text-align: start;
  align-self: start;
  margin-left: 0em;
  background: rgba(250, 0, 0, 0.6);
  backdrop-filter: blur(18px);
  color: white;
  width: 20vw;
  float: left;
}
#menuSection {
  border-right: .5rem double rgba(250, 0, 0, 0.6);
  border-left: .5rem double rgba(250, 0,0,0.6);
  border-top: .5rem solid rgba(250, 0,0,0.6);
  border-bottom: .5rem solid rgba(250, 0,0,0.6);
  background-color: rgba(250, 0, 0, 0.6);
  background: none;
  background-image: none;
  border-sizing: box-border;
} 
#menutitle {
  line-height: 1rem;
  font-family: "open sans", san-serif;
  padding: 1rem 1rem 1rem 1rem;
  margin-right: 0rem;
  text-align: center;
  align-self: start;
  margin-left: 0em;
  color: rgba(250, 0, 0, 0.6);
  width: 5rem;
  height: auto;
  font-size: 2rem;
  border-bottom: 2px rgba(250, 0, 0, 0.6) solid;
  border-right: 2px rgba(250, 0, 0, 0.6) solid;
  margin-top: 0rem;
  height: 1rem;
}
.subSection {
  background: rgba(250, 250, 0, 0.3);
  /*color: purple; /**black;**/
  color: rgb(134, 179, 0);
  box-sizing: border-box;
}
.subSection ul {
  list-style: none;
  display: inline-block;
  padding: 0;
  margin: 0;
  padding: 1rem;
}

#aboutUs h1 {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 4;
  grid-row-end: 5;
}
#aboutUs p {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 2;
}
#aboutUs {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 2;
  grid-row-end: 3;
  box-sizing: border-box;
  height: auto;
  width: auto;
  padding: auto;
  margin-top: 1rem;
  margin-bottom: 0;
}
video {
  opacity: 1;
  display: block;
  margin: 0 auto;
  padding: 0;
  background: none;
  text-align: center;
  object-fit: cover;
}
#hook:before {
  border: 1px red solid;
}
#hook {
  padding: 1rem 0 1rem 1rem;
  opacity: 1;
  /*
  border: 0.2em dashed rgba(250, 250, 250, 1);*/
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
  margin-right: auto;
  margin-left: auto;
  font-family: "Shadows Into Light", arial, serif;
  font-size: 2em;
  font-weight: bold;
  color: rgba(255, 244, 179, 1); 
  background-color: rgba(250, 0, 0, 0.7);
  width: 64vw;
}

p:not(#hook) {
  font-family: "Yanone Kaffeesatz", san-serif;
  color: purple; 
  text-indent: 1rem;
  margin-left: 1rem;
  margin-right: 0.5rem;
  letter-spacing: 1px;
  word-spacing: 0.1rem;
  font-size: 1.3em;
}
#showPage {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 3;
  grid-row-end: 4;
}


#menuSection {
  color: black; 
  display: table;
  margin-left: auto;
  margin-right: auto;
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 3;
  grid-row-end: 4;
  background-color: lightyellow;
  width: 100%;
}

.page {
  width: 100%;
}

.listing {
  list-style: none;
  margin: 3em;
  display: grid;
  grid-gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  color: rgba(250, 0, 0, 0.6); /*#1a0600;*/
  padding: .5rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.listing h2 {
  color: rgba(250, 0, 0, 0.6); /*white;*/
  font-family: "open sans", san-serif;
  font-size: 1rem;
  text-align: center;
  margin-left: .2rem;
  margin-right: .2rem;
  padding-left: 1px;
  padding-right: 1px;
  border-top: 1px yellow solid;
  border-bottom: 1px yellow solid;
}
.cta a {
  color: rgba(250, 0, 0, 0.5);
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  font-family: "Ribeye Marrow", helvetica;
  letter-spacing: 1px;
  word-spacing: 0.2rem;
}
.listing li {
  border: 1px solid #ffe066;
  border-radius: 0.5em;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 140, 102, 0.5);
}
.listing .cta {
  margin-top: auto;
  border-top: 0.1em solid #ffe066;
  padding: 1em;
  text-align: center;
}
.listing .body {
  padding: 1em;
  text-align: center;
}
.listing a:hover {
  font-size: 1.5rem;
  background-color: rgba(255, 255, 229, 0.1);
  transition: font-size 200ms ease-in-out;       
}

.listing img {
  width: 10em;
}

input,
textarea {
  display: inline-block;
  font: 1em sans-serif;
  font-family: Chathura, arial;
  width: 44vw;
  height: auto;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  border: 0.1em solid rgb(134, 179, 0);
  align: start;
  justify-self: start;
}
textarea,
input {
  margin-top: 0.1rem;
}
input:focus,
textarea:focus {
  /* To give a little highligh on active elements */
  border-color: green;
  font-size: 2rem;
}
.noback {
  background: none !important;
}
/**
table tr {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: nowrap;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-around;
}
table td {
  display: block;
}
**/
#contactForm {
  box-sizing: border-box;
  margin-left: 0rem;
  width: auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: fit-content;
  grid-template-areas: 'left right';
}

#contactForm ul {
  margin: 0;
  padding: 0;
  margin-bottom: 9rem;
}
#contactForm ul li {
  margin: 0 0 0 1rem;
  align: center;
  padding: 0;
  font-family: Chathura, Helvetica, sans-serif;
  font-size: 2em;
  font-weight: 600;
  font-style: bold;
  display: block;
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 2;
  grid-row-end: 3;
}
form {
  align-self: center;
  font-size: 1.5em;
  display: static;
  color: white;
  font-family: Chathura, arial;
  text-align: start;
  box-sizing: box-width;
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 2;
}
#submit {
  display: block;
  margin-right: auto;
  height: auto;
  margin-top: 0.5rem;
  margin-bottom: .3em;
  font-size: 3rem;
  line-height: 2.5rem;
  font-family: Chathura, arial;
  border-radius: 5%;
 /* background-color: #4d0026;*/
  background-color: rgb(134, 179, 0);
  color: white;
  padding-left: .3rem;
  padding-right: .3rem;
  padding-top: 0;
  padding-bottom: 0;
  width: 10rem;
}
#submitBtn :hover {
  text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
  transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
}
#submitBtn :active {
  font-size: 2.3rem;
  transition: font-size 200ms ease-in-out;
}
label {
  display: block;
  margin-top: 0.5rem;
  width: 1fr;
  text-align: left;
  justify-self: start;
  color: purple;
  font-size: 1.5rem;
}

#start,#showBaladi,#baladiMenu {
  display: block;
  width: 100%;
  position: relative;
  color: purple;
  visibility: hidden;
  grid-column-start: 1;
  grid-column-end: 2;
}
/*
#showBaladi {
  top: -10rem;
}*/
#baladiMenu {
  top: -8rem;
}
main a {
  height: 0;
  padding: 0;
  margin: 0;
}
/***************************************
* Define handling for smaller screens
***************************************/
@media screen and (max-width: 520px) {
  main {
    width: auto;
    margin-top: 5rem;
    box-sizing: border-box;
    background-color: white;
  }
  body {
    display: block;
    margin-top: 0;
    height: auto;
    background: #f4df42;
    width: auto;
    box-sizing: border-box;
  }
  a {
    padding: 0;
    margin: 0;
    height: 0;
  }
  #nav-bar {
    visibility: hidden;
    width: 0em;
    display: none;
  }
  #header-img {
    margin: 2.3rem 0.2rem 1rem 0.2rem;
    width: 2.3rem;
  }
  #header {
    width: 100%;
    padding: auto;
    margin: auto;
    height: auto;
    grid-template-areas:
      "firstletter icon"
      "companyname";
    grid-template-columns: auto;
    grid-template-rows: fit-content;
    grid-gap: 0px 0px;
  }
  #hook {
    font-size: 1.3rem;
    padding-right: 1rem;
  }
  h1 {
    font-size: 1.5em;
  }
  h2,.subSection {
    font-size: 1.3em;
    background-color: rgba(250, 0, 0, 0.7);
  }
  
  .subSection h2, #menuSection h2 {
    width: 100%;
    display: block;
    border: none;
    text-align: center;
  }
  .left h2, .right, .right form {
    width: 100%;
    box-sizing: border-box;
    display: block;
    position: static;
  }
  .right form {
    padding-left: .2rem;
    padding-bottom: .2rem;
  }
  #menuSection {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: none;
  }
 
  .listing h2 {
    font-family= "Ribeye Marrow", arial, helvetica;
    font-size: 1.5em;
    width: 100%;
    box-sizing: border-box;
  }
  p, li, #email, textarea {
    font-size: 1em !important;
    color: #4d0026 !important;
    box-sizing: border-box;
  }
  #submit {
    font-size: 1em;
  }

  #aboutUs p {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
  }
  input,textarea {
    border: 2px #4d0026 solid;
  }
  video {
    display: block;
    border: none;
    width: 68vw;
    height: auto;
    margin-top: 0;
  }
  textarea,#email {
    width: 90vw;
  }
  #aboutUs,
  #showPage,
  .subSection,
  .content,
  .page,
  .noback,
  #contactForm, .listing {
    width: auto;
    background-color: rgba(0, 0, 0, .6);
    background: rgba(250, 0, 0, 0.1);
    padding: 0;
    opacity: 1;
    margin: 0;
    box-sizing: border-box;
  }
  #showPage {
    padding-bottom: 1rem;
  }
  .listing li h2 {
    box-sizing: border-box;
    padding-left: 0rem;
    color: white;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 1px;
    word-spacing: 0.1rem;
  }
  #contactForm {
    display: block;
  }
  #contactForm ul {
    margin-bottom: 0rem;
    text-align: center;
    width: 100%;
  } 
  #contactForm ul, #contactForm li {
    font-size: 2rem;
    padding: 0;
    margin: 0;
  }
  /*
  #contactForm ul li {
    font-size: 2.3rem;
  }
  .subSection  h2 {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
  }
  .left {
    padding: 0;
    margin: 0;
    display: table;
    background: none;
  }
  .right {
    padding: 0;
    margin: 0;
  }*/
}

              
            
!

JS

              
                

              
            
!
999px

Console