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>
<nav id="page-wrapper">
  <header id="header">
    <div class="logo">
      <img id="header-img" class="site-logo" src="https://i.imgur.com/iANcUqS.png" alt="company-logo">
    </div>
    <nav id="nav-bar" class="navig-bar">
      <ul>
        <li><a class="nav-link" href="#home">Home</a></li>
        <li><a class="nav-link" href="#aboutus">About Us</a></li>
        <li><a class="nav-link" href="#products">Our Products</a></li>
        <li><a class="nav-link" href="#contact">Contact Us</a></li>
      </ul>
    </nav>
  </header>

  <main>
    <div class="container">
      <section id="home" class="cover">
        <div class="title-text">
          <h1 id="title">Aashnaa Jewellers</h1>
          <p id="description"><em>Crafting authentic handmade jewellery for you, with love, since 1835.</em></p>
        </div>
        <div class="box-feature">
          <img class="cover-pic" src="https://i.imgur.com/yOT7HLIl.jpg" alt="jewellery stockpic"></div></section></div>
  </main>

  <section id="aboutus" class="aboutussec">
    <div class="sect-text">
      <h2>About Us</h2>
      <p id="about">Aashnaa Jewellers is a long-time family run, trustworthy jewellery business located in the heart of the capital city of Riyadh, Saudi Arabia. We have been crafting jewellery by hand since 1835. <br> At Aashnaa Jewellers, we can assure you that you are in safe hands and we will cater to all your needs as we also craft customised jewellery, just get in touch with us through our Contact Us page, an appointment will be booked for you either virtually or in person, and we will make sure you get the best service here at Aashnaa Jewellers.</p>
    </div>
    <div class="box-feature">
    </div>
  </section>
  <section id="products" class="jewellery">
    <div class="section-text">
      <h3>Featured</h3>
      <p id="collection">Here are some of our favorite featured jewellery pieces featured below.</p>
    </div>
    </section>
    <div class="featured">
      <div class="cont">
        <figure>
          <img src="https://i.imgur.com/wb6jJv9l.jpg" alt="ring on a black cloth">
          <figcaption class="captions">
            <a href="https://www.pexels.com/@say-straight-1400349">Image obtained by say straight via Pexels</a>
          </figcaption>
        </figure>
      </div>
      </div>

      <div class="cont">
        <figure>
          <img id="diamondring" src="https://i.imgur.com/uJClVnTl.jpg" alt="necklace white background">
          <figcaption class="captions">
            <a href="https://www.pexels.com/@mudassir-bhatti-2329430">Image obtained by Mudassir Bhatti via Pexels</a>
          </figcaption>
        </figure>
      </div>
      <div class="cont">
        <figure>
          <img src="https://i.imgur.com/Y3ciGSel.jpg" alt="Indian necklace">
          <figcaption class="captions">
            <a href="https://www.pexels.com/@baljit-johal-11678879">Image obtained by Baljit Johal via Pexels</a>
          </figcaption>
        </figure>
      </div>
      <div class="cont">
        <figure>
          <img id="pink" src="https://i.imgur.com/gkc02COl.jpg" alt="bracelet with pink background">
          <figcaption class="captions">
            <a href="https://www.pexels.com/@the-glorious-studio-3584518">Image obtained by The Glorious Studio via Pexels</a>
          </figcaption>
        </figure>
      </div>
      
      <section>
      <div class="video-section">
        <p id="ringtext">Here is also a video of one of our rings being made by hand by one of our finest jewellers.</p>
        <iframe id="video" src="https://player.vimeo.com/video/674621420" width="640" height="360" frameborder="0" allowfullscreen></iframe>
      </div>
      </section>

  <div>
    <section id="contact" class="contact-sect">
      <div class="section-text">
        <h4>Book an appointment</h4>
        <p>You can either email us at <a id="email3" href="#email">aashnaajewellers@gmail.com</a> or call us at <a id="phone" href="#phone">+966 56 358 1217</a>. For more general enquiries, you can also directly fill a form below to get in touch with us.</p>
      </div>
    </section>
  </div>
      <div class="appt">
        <form id="form" action="https://www.freecodecamp.com/email-submit">
          <label id="name1">Name:</label>
          <input id="name" type="name" placeholder="Full Name" required/>
          <br>
          <label id="email1">Email:</label>
          <input id="email" type="email" name="email" placeholder="johndoe@example.com" required/>
          <br>
        <div>
          <button id="submit">Submit</button>
          </f>
        </div>
      <div class="footer-info">
        <footer class="footer-section">
        <ul>
          <li><span>Privacy</span></li>
          <li><span>Terms & Conditions</span></li>
          <li><span>Contact Us</span></li>
        </ul>
      <span class="personal-info">Made by Afnan Gohar</span><br>
          <span>Copyright &copy; 2022</span>
          </footer>
      </div>
</nav>
              
            
!

CSS

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

* {
  margin: auto;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Arapey', serif;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 1.2vw;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

h1 {
  padding-bottom: 30px;
  padding-left: 0.5em;
  text-align: center;
  font-size: 5vw;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h2 {
  font-size: 2.8vw;
  padding-top: 10px;
  padding-bottom: 5px;
  text-transform: uppercase;
}

header {
  position: fixed;
  display: flex;
  flex-direction: row;
  background: #c2a452;
  color: #000000;
  width: 100%;
  max-height: max-content;
  min-height: 1em;
  margin-top: 0;
  padding-bottom: 5px;
  text-transform: uppercase;
  z-index: 1;
}

.logo {
  width: 10%;
  margin-left: initial;
}

.site-logo {
  margin-left: 0.8em;
  max-width: 60%;
}

.navig-bar {
  width: 70%;
  flex-grow: 2%;
  margin-inline-end: initial;
}

a {
  color: #000000;
  text-decoration: none;
}

header a,footer a {
  color: #000000;
  text-decoration: none;
}

ul {
  display: flex;
  flex-direction: row;
  list-style-type: none;
}

.container {
  display: block;
  grid-template-columns: 100%;
  padding: 0;
  padding-top: 1em;
  width: 100%;
}

section {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 10px 0;
}

section div {
  width: 50%;
  margin: 0 auto;
}

section h2 {
  text-align: center;
}

.cover {
  margin-top: 0;
  padding: 5% 0;
  opacity: 1;
}

.title-text {
  width: 40%;
  text-align: center;
  color: #000000;
  margin: auto;
  padding: 0 20px;
  animation: fade-in;
  animation-duration: 10s;
}

.aboutussec {
  display: flex;
  flex-direction: row-reverse;
  background-color: #c2a452;
  color: #000000;
}

.box-feature {
  width: 60%;
  max-height: auto;
  
}

.box-feature img {
  width: 100%;
  margin-bottom: 0;
}

.box-feature .cover-pic {
  animation: fade-in;
  animation-duration: 5s;
}

.sect-text h2 {
  text-align: center;
}

#aboutus {
  font-size: 20px;
  padding: 5px;
  line-height: 2;
  margin-top: -67px;
}

.jewellery {
  flex-direction: column;
  text-align: center;
}

.featured {
  width: 90%;
  display: grid;
  grid-template-columns: 2fr 2fr 2fr;
  grid-gap: 5%;
  margin: 20px auto;
}

.cont {
  width: 100%;
  color: #ffffff;
}

.cont img {
  max-width: 100%;
  max-height: auto;
  padding-top: 40px;
  padding-left: 350px;
}
  

#video {
  padding-top: 40px;
  padding-left: 210px;
  padding-bottom: 30px;
}

.contact-sect {
  background: #c2a452;
  color: #000000;
}

.contact-sect p {
  padding-right: 2em;
  padding-left: 3em;
  
}

.form-box {
  padding-top: 1em;
}

form .form-entry {
  display: block;
  padding: 0.8em 0;
  
}

form .text-box {
  margin-top: 0.3em;
  width: 100%;
  padding: 0.7em 0;
  border-radius: 2px;
  border: 2px transparent;
}

.footer-section {
  display: flex;
  flex-direction: row-reverse;
  height: 5em;
  width: 100%;
  color: #ffffff;
  background-color: #c2a452;
  text-transform: uppercase;
}

.footer-section div {
  margin-right: 2em;
}

.footer-section span {
  text-align: center;
  margin-left: 2em;
  
}

.footer-section .personal-info {
  margin-left: 15em;
  
}

@media (max-width: 460px) {
    body {
      font-size: 1.4rem;
  }
}

.aboutussec, .jewellery, .contact-sect, .featured {
  display: flex;
  flex-direction: column;
}


.section-text h2 {
  text-align: center;
}

.section-text p {
  text-align: justify;
  margin-right: 10%;
  margin-left: 10%;
  font-size: 2vw;
}

p {
  line-height: 1.5;
  margin-top: 10px;
  text-align: center;
}

h3 {
  font-size: 2.8vw;
  padding-bottom: 10px;
  text-transform: uppercase;
  text-align: center;
  padding-top: 5px;
}

h4 {
  font-size: 2.8vw;
  padding-bottom: 10px;
  text-transform: uppercase;
  text-align: center;
  padding-top: 5px;
}


#e-mail {
  color: #0645AD;
  margin-top: 10px;
}

.captions {
  text-align: center;
}

#pink {
  padding-left: 450px;
}

#ringtext {
  line-height: 1.5;
  margin-top: 15px;
  text-align: center;
  font-size: 20px;
  margin-bottom: 5px;
  padding-left: 10px;
}

#form {
  background-color: #c2a452;
  text-align: center;
}

#name {
  font-size: 15px;
  margin-bottom: 10px;
}

#name1 {
  font-size: 15px;
}

#email {
  font-size: 15px;
  margin-bottom: 10px;
}

#email1 {
  font-size: 15px;
}

#submit {
  font-size: 13px;
  background-color: #ceb87b;
  border-radius: 5px;
  box-shadow: 5px 10px 8px #b08716;
}

#submit:hover {
  cursor: pointer;
  background: #94761d;
  color: #ffffff;
}

#collection {
  position: relative;
  margin-left: 150px;
}

#diamondring {
  margin-top: 0;
}

.sect-text {
  margin-bottom: 40px;
}
              
            
!

JS

              
                
              
            
!
999px

Console