Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  <title>Product Landing FreeCodeCamp</title>
  <link rel="stylesheet" href="./assets/css/productlandingstyle.css" />
  <link rel="preconnect" href="https://fonts.googleapis.com" />
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  <link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,700;1,400&display=swap"
    rel="stylesheet" />
</head>

<body>
  <header id="header" class="header">
    <img src="https://res.cloudinary.com/elisabettac77/image/upload/v1649692052/onigiri_fb6sdi.png" id="header-img"
      alt="logo" class="header-img" />
    <h1>
      Onigiri Bar
    </h1>
    <h2>
      Japanese Home Restaurant
    </h2>
    <nav id="nav-bar">
      <ul>
        <li class="nav-link"><a href="#features">Features</a></li>
        <li class="nav-link"><a href="#video">Explainer Video</a></li>
        <li class="nav-link"><a href="#contact">Contact me!</a></li>
      </ul>
    </nav>
  </header>
  <main>
    <section id="features">
      <div class="container">
        <div class="riga">
          <div class="icona">
            <ion-icon class="ionicona" name="briefcase-outline"></ion-icon>
          </div>
          <div class="testo">
            <p class="lorem">
              Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br />In est quam, dictum sit amet arcu id,
              fringilla lobortis nulla.
            </p>
          </div>
        </div>
        <div class="riga">
          <div class="icona">
            <ion-icon class="ionicona" name="construct-outline"></ion-icon>
          </div>
          <div class="testo">
            <p class="lorem">
              Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br />In est quam, dictum sit amet arcu id,
              fringilla lobortis nulla.
            </p>
          </div>
        </div>
        <div class="riga">
          <div class="icona">
            <ion-icon class="ionicona" name="people-circle-outline"></ion-icon>
          </div>
          <div class="testo">
            <p class="lorem">
              Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br />In est quam, dictum sit amet arcu id,
              fringilla lobortis nulla.
            </p>
          </div>
        </div>
      </div>
    </section>
    <section id="contact">
      <div class="modulo">
        <form class="send" id="form" action="https://www.freecodecamp.com/email-submit">
          <div class="campi">
            <label for="name">Your name:</label>
            <input type="text" placeholder="Name" id="name" name="name" />
          </div>
          <div class="campi">
            <label for="email">Your e-mail:</label>
            <input type="email" placeholder="Email Address" id="email" name="email" />
          </div>
          <div>
            <button id="submit" type="submit" class="button">Send</button>
          </div>
        </form>
      </div>
    </section>
    <section class="videotutorial">
        <h1 class="tutorial">
          Tutorial
        </h1>
        <div class="youtube">
          <iframe id="video" width="560" height="315" src="https://www.youtube.com/embed/W1tjHt_QM5g" title="YouTube video player"
            frameborder="0"
            allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
            allowfullscreen></iframe>
        </div>
    </section>
  </main>
  <footer>
    <p>
      &copy; <a href="https://www.linkedin.com/in/elisabettac77/"> Elisabetta Carrara</a> 2022
    </p>
  </footer>
  <script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script>
  <script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script>
</body>

</html>
              
            
!

CSS

              
                /*
Global Fonts (Montserrat from Google Fonts)
*/

body {
    font-family: 'Montserrat', sans-serif;
}

/*
Header Styles
*/

.header {
    background-color: green;
    text-align: center;
    width:100;
}

.header-img {
    width: 150px;
}

body header h1 {
    color: whitesmoke;
    text-align: center;
}

body header h2 {
    color: whitesmoke;
    text-align: center;
}

body header nav ul {
    list-style-type: none;
    padding-top:30px;
    padding-bottom:30px;
    background-color: gray;
    width:100%;
}

body header nav li {
    display: inline;
    margin: 30px;
    padding: 30px;
}

/*
  Features Section - Flexbox
  */

.container {
    display: flex;
    flex-flow:row wrap;
    background-color: gray;
    width: 100%;
    justify-content:center;
}

.riga {
    display: flex;
    background-color: gray;
    flex-direction: column;
    padding: 20px;
    margin:5px;
    width:28%;
    
}

.icona {
    background-color: whitesmoke;
    text-align: center;
}

.ionicona {
    color: green;
    font-size: 50px;
    text-align: center;
}

.lorem {
    color: whitesmoke;
    font-size: 18px;
    text-align: center;
}

/*
Form Styles
*/

.modulo {
    background-color: lightgrey;
    margin-top: 20px;
    padding: 20px;
}

.campi {
    padding: 10px;
}

.send {
    background-color: whitesmoke;
    padding: 30px;
    text-align: center;
    color: green;
    font-weight: bold;
    font-size: 20px;
}

.button {
    border: 8px solid gray;
    background-color: green;
    color: whitesmoke;
    margin: 20px;
    padding: 10px 50px;
    font-size: 20px;
    font-weight: bold;
}

/*
Video Styles
*/

.videotutorial {
    background-color:green;
    padding:80px;
}

.videotutorial h1 {
    color:whitesmoke;
    text-align:center;
    padding-bottom:50px;
}

.youtube {
    position: relative;
    padding-bottom: 56.10%;
    height: 0;
    overflow: hidden;
}

.youtube iframe,
.youtube object,
.youtube embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/*
Footer Styles
*/

body footer p,
a {
    color:whitesmoke;
    padding-top:30px;
    padding-bottom:30px;
    background-color:gray;
}

/*
Media Query for Video - smaller sizes
*/
@media only screen and (min-width:320px) and (max-width:768px) {
    .videotutorial {
        padding:0px;
    }
    
    .videotutorial h1 {
        padding-top:25px;
        padding-bottom:20px;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console