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://kit.fontawesome.com/d9fa3c452a.js" crossorigin="anonymous"></script>

<body>
  <header id="header">
    <img id="header-img" src="content/e-logo.jpg" alt="Company logo">
    <nav id="nav-bar">
      <a href="#started" class="nav-link">Get Started</a>
      <a href="#vid" class="nav-link">See The Product</a>
      <a href="#buy-now" class="nav-link">Buy Now</a>
    </nav>
  </header>
  <main class="main">
    <div id="started" class="get-started">
      <h1>Automated, Fast & Reliable Companies</h1>
      <form id="form" action="https://www.freecodecamp.org/email-submit" method="GET">
        <input type="email" name="email" id="email" placeholder="Enter your email here...">
        <input type="submit" id="submit" value="Get in touch">
      </form>
    </div>
    <div class="description-container">
      <i class="fas fa-robot"></i>
      <h3 class="title-1">All-new Robotic System</h3>
      <p class="description-1">Our new technology allows us to completely automate every work done in the company,
        which is why it is the fastest and the most effecient on the market.</p>

      <i class="fas fa-hands-helping"></i>
      <h3 class="title-2">Unmatchable Support for Clients</h3>
      <p class="description-2">Need help in anything? Don't worry as our team is available to assist you
        <span>24/7</span>.
      </p>

      <i class="fas fa-mobile-alt"></i>
      <i class="fas fa-laptop"></i>
      <h3 class="title-3">Ready-to-use anywhere, anytime</h3>
      <p class="description-3">You can open up details of your company on any device. All you need is a working
        internet connection and a place to sit so you can watch the robots do all the work while you relax.</p>
    </div>

    <div id="vid" class="video-proof">
      <h2>Watch the overview of the company you get</h2>
      <video id="video" src="https://youtu.be/1ba_KQaS8Zc" controls loop></video>
    </div>

    <h2 class="plan-heading">Buy now for a limited price</h2>
    <div class="plans" id="buy-now">
      <div class="plan plan-simple">
        <h3>Snail Company</h3>
        <p class="plans__options">
          <i class="fas fa-circle"></i>
          Lorem, ipsum<br>
          <i class="fas fa-circle"></i>
          Lorem, ipsum<br>
          <i class="fas fa-circle"></i>
          Lorem, ipsum dolor<br>
          <i class="fas fa-circle"></i>
          Lorem, ipsum<br>
        </p>
        <button>Select</button>
      </div>
      <div class="plan plan-medium">
        <h3>Fire Company</h3>
        <p class="plans__options">
          <i class="fas fa-circle"></i>
          Lorem, ipsum<br>
          <i class="fas fa-circle"></i>
          Lorem, ipsum dolor<br>
          <i class="fas fa-circle"></i>
          Lorem ipsum dolor<br>
          <i class="fas fa-circle"></i>
          Lorem, ipsum<br>
        </p>
        <button>Select</button>
      </div>
      <div class="plan plan-premium">
        <h3>Rocket Company</h3>
        <p class="plans__options">
          <i class="fas fa-circle"></i>
          Lorem, ipsum<br>
          <i class="fas fa-circle"></i>
          Lorem, ipsum<br>
          <i class="fas fa-circle"></i>
          Lorem, ipsum dolor<br>
          <i class="fas fa-circle"></i>
          Lorem, ipsum sit<br>
        </p>
        <button>Select</button>
      </div>
    </div>
  </main>
  <footer>
    <div class="footer">
      <ul class="list">
        <li class="list-item">Terms</li>
        <li class="list-item">Contact</li>
        <li class="list-item">Privacy</li>
        <li class="list-item">Products</li>
        <li class="list-item">About</li>
      </ul>
      <p class="copy-symbol">
        <i class="far fa-copyright"></i>
        Copyright 2021, Company
      </p>
    </div>
  </footer>
</body>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;700&family=Open+Sans+Condensed:wght@300;700&display=swap');

:root {
    --color-primary: rgb(255, 0, 0);
    --color-white: #F4F5F5;
    --color-black: #231F20;
    --text-heading: 'Comfortaa', cursive; 
    --text-body: 'Open Sans Condensed', sans-serif;
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
}

body {
    font-family: var(--text-body);
}

h1, h2, h3 {
    font-family: var(--text-heading);
    text-transform: capitalize;
    word-spacing: 3px;
}

h1 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

h2 {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-white);
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

/* Header Element */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-white);
    height: 55px;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.nav-link {
    color: var(--color-black);
    text-decoration: none;
    margin: 0 3vw;
    font-weight: 700;
}

.nav-link:hover {
    color: var(--color-primary);
    transition: 0.15s;
}

#header-img {
    width: 12rem;
    height: 8rem;
}

@media screen and (max-width: 700px) {
        header {
            flex-direction: column;
            justify-content: center;
            height: 40px;
        }
        #header-img {
            position: absolute;
            z-index: 99;
        }
        nav {
            z-index: 100;
        }
        .main {
            margin-top: 105px;
        }
        .fa-mobile-alt {
            display: none;
        }
        .description-container {
            margin-bottom: 2rem;
        }
}

/* Get Started Element */

main {
    margin: 60px 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.get-started {
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form > input {
    font-size: 1.1rem;
    font-family: var(--text-body);
    font-weight: 700;
    outline: 0;
    border: 1px solid var(--color-black);
    border-radius: 2rem;
    margin: 0.6rem 0;
    padding: 0.6rem 1.8rem;
}

#email {
    min-width: 250px;
    width: 20vw;
}

#email:hover {
    filter: brightness(0.8);
    background: var(--color-white);
    transform: scale(1.01);
    transition: 0.15s;
}

#submit {
    min-width: 144px;
    width: 10vw;
}

#submit:hover {
    filter: brightness(0.8);
    transform: scale(1.01);
    transition: 0.15s;
}

/* Description Element */

.description-container {
    position: relative;
    display: grid;
    grid-template-columns: 100px 1fr;
    grid-template-rows: repeat(6, minmax(50px, 1fr));
    grid-template-areas:
    "robot   title-1"
    "robot   desc-1"
    "support title-2"
    "support desc-2"
    "devices title-3"
    "devices desc-3";
}

.description-container > i {
    font-size: 3rem;
    color: var(--color-primary);
    filter: brightness(0.9);
}

.description-container > p {
    font-size: 1.1rem;
    word-spacing: 2px;
}

.fa-robot {
    justify-self: center;
    align-self: center;
    grid-area: robot;
}
.title-1 {
    grid-area: title-1;
    align-self: flex-end;
}
.description-1 {
    grid-area: desc-1;
}

.fa-hands-helping {
    grid-area: support;
    justify-self: center;
    align-self: center;
}
.title-2 {
    grid-area: title-2;
    align-self: flex-end;
}
.description-2 {
    grid-area: desc-2;
}

.fa-laptop {
    grid-area: devices;
    justify-self: center;
    align-self: center;
}
.title-3 {
    grid-area: title-3;
    align-self: flex-end;
}
.description-3 {
    grid-area: desc-3;
}

.fa-mobile-alt {
    position: relative;
    bottom: 55px;
    left: 55px;
}

/* Video Showcase */

.video-proof {
    padding: 1.5rem 1.5rem;
    margin: 0 1rem 2.5rem;
    border: 1px solid var(--color-white);
    border-radius: 50px;
    background-color: rgb(10, 10, 10);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#video {
    width: 100%;
    margin-top: 1.5rem;
}

/* Plans */

.plan-heading {
    color: var(--color-black);
    word-spacing: 5px;
}

.plans {
    width: 80vw;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.plan {
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem;
    border: 2px solid var(--color-black);
    border-radius: 2rem;
    width: 1fr;
    margin: 1rem;
}

.plan:hover, .plan:target, .plan:active {
    transform: scale(1.03);
    transition: 0.2s;
}

.fa-circle {
    font-size: 0.5rem;
    margin-right: 0.3rem;
}

.plan > p {
    font-size: 1.1rem;
    margin: 1.2rem 0;
    line-height: 1.5;
}

button {
    padding: 0.8rem 3rem;
    outline: 0;
    border: 1px solid var(--color-black);
    border-radius: 1.5rem;
    font-family: var(--text-body);
    font-weight: 700;
    font-size: 1.2rem;
}

button:hover {
    cursor: pointer;
}

/* Snail Plan */

.plan-simple {
    color: var(--color-white);
    background: linear-gradient(315deg, #ca7968 0%, #0c0c0c 78%);
}

.plan-simple > button {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    filter: brightness(0.75);
}

.plan-simple > button:hover {
    filter: brightness(1);
    background: #0c0c0c50;
    transform: scale(1.02);
    transition: 0.2s;
}

/* Fire Plan */

.plan-medium {
    background: linear-gradient(315deg, #f7b42c 0%, #fc575e 74%);
}

.plan-medium > button {
    color: var(--color-black);
    border-color: var(--color-black);
    background: rgba(0, 0, 0, 0.1);
    filter: brightness(0.8);
}

.plan-medium > button:hover {
    color: var(--color-black);
    border-color: var(--color-black);
    background: #fc575f44;
    transform: scale(1.02);
    transition: 0.2s;
    filter: brightness(1);
}

/* Rocket Plan */

.plan-premium {
    color: var(--color-white);
    background-color: #2b4162;
    background-image: linear-gradient(315deg, #2b4162 0%, #12100e 74%);
}

.plan-premium > button {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    filter: brightness(0.75);
}

.plan-premium > button:hover {
    background: rgba(0, 0, 0, 0.1);
    filter: brightness(1);
    transform: scale(1.02);
    transition: 0.2s;
}

/* Footer Element*/

.footer {
    color: rgb(71, 71, 71);
    height: 5rem;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.list {
    padding: 0;
    display: flex;
    list-style: none;
}

.list-item {
    margin: 0.8rem 4vw;
    font-weight: 700;
}

.list-item:hover {
    color: black;
    cursor: pointer;
}

              
            
!

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