<!-- Reference for the bullet points: https://www.whirlpool.com/kitchen/refrigeration.html -->
<title>Refrigeration Landing Page</title>
<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=Poppins:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<header id="header">
  <img id="header-img" src="https://i.imgur.com/bJgb9HY.png" alt="logo-image">
  <nav id="nav-bar">
    <ul>
      <li><a href="#main" class="nav-link">Home</a></li>
      <li><a href="#types" class="nav-link">Types</a></li>
      <li><a href="#video" class="nav-link">Selection</a></li>
    </ul>
  </nav>
</header>
<main id="main">
  <section class="slogan">
    <h2>Suitable refrigerators for every type of kitchen</h2>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <label for="email">Sign up to our monthly newsletter for sales, new product announcements and more.</label><br>
      <input type="email" id="email" name="email" placeholder="Enter your email"><br>
      <input type="submit" id="submit" value="SUBMIT">
    </form>
  </section>
  <div id="types">
    <div class="p" id="top-freezer">
      <img class="product-image" src="https://i.imgur.com/81wqpwl.png" alt="top-freezer">
      <div class="features">
        <h2>Top Freezer</h2>
        <ul>
          <li>A traditional setup and look</li>
          <li>Easy access to frozen items</li>
          <li>More refrigerator space than freezer space</li>
          <li>Large door clearances, requiring more open space in front of the unit</li>
          <li>Budget friendly</li>
        </ul>
        <a href="#!" class="shop">SHOP</a>
      </div>
    </div>
    <hr>
    <div class="p flex-reverse" id="bottom-freezer">
      <div class="features">
        <h2>Bottom Freezer</h2>
        <ul>
          <li>Easy access to fresh items</li>
          <li>More refrigerator space than freezer space</li>
          <li>Large door clearances, requiring more open space in front of the unit</li>
          <li>Budget friendly</li>
        </ul>
        <a href="#!" class="shop">SHOP</a>
      </div>
      <img class="product-image" src="https://i.imgur.com/4q7uQXM.png" alt="bottom-freezer">
    </div>
    <hr>
    <div class="p" id="side-by-side">
      <img class="product-image" src="https://i.imgur.com/qlxQeJQ.png" alt="side-by-side">
      <div class="features">
        <h2>Side-by-Side</h2>
        <ul>
          <li>Vertical storage to keep both fresh and frozen items at eye level</li>
          <li>Slightly more freezer capacity than a french door</li>
          <li>Adjustable shelves, door bins, and more for custamizable storage</li>
          <li>Exterior ice and water dispensers</li>
          <li>Reduced door swing clearance; great for narrow or tight spaces</li>
        </ul>
        <a href="#!" class="shop">SHOP</a>
      </div>
    </div>
    <hr>
    <div class="p flex-reverse" id="french-door">
      <div class="features">
        <h2>French Door</h2>
        <ul>
          <li>Wide refrigerators and freezer compartments for items like frozen pizza or large casserole dishes and platters</li>
          <li>Adjustable shelves, compartments and more for custamizable storage</li>
        </ul>
        <a href="#!" class="shop">SHOP</a>
      </div>
      <img class="product-image" id="french-door-img" src="https://i.imgur.com/FobiiNX.png" alt="french-door">
    </div>
  </div>
  <hr>
  <div class="videoWrapper">
    <iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/3KGSYYXVrNk" id="video" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
  </div>
  <footer>
    <ul>
      <li><a href="#!">Privacy</a></li>
      <li><a href="#!">Terms</a></li>
      <li><a href="#!">Contact</a></li>
    </ul>
    <p>&copy; 2021 Chill Out Refrigeration</p>
  </footer>
</main>
:root {
  --primary: #333333;
  --secondary: #eeeeee;
  --nav-hover: #1567ff;
  --gradient1: #66bbff;
  --gradient2: #0051ff;
  --box-shadow: #000000;
  --email-bg-focus: #ffffff;
  --email-shadow-focus: #e6af2e;
  --submit: #e6af2e;
  --submit-hover: #eece83;
  --shop: #49306b;
  --shop-hover: #6b3057;
  --footer-hover: #ffffff;
}
* {
  margin: 0;
  padding: 0;
}
html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  color: var(--primary);
  background-color: var(--secondary);
  font: 1.6rem "Poppins", sans-serif;
  max-width: 960px;
  margin: auto;
}
a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.2s ease;
}
li {
  list-style-type: none;
}
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  flex-flow: row wrap;
  background-color: var(--secondary);
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  max-width: 964px;
  margin: auto;
}
#header-img {
  width: 38rem;
  max-width: 100%;
}
nav ul {
  display: flex;
  flex-flow: row wrap;
  padding: 1.25rem;
}
.nav-link {
  color: var(--primary);
  padding: 1.25rem;
  border-radius: 0.4rem;
}
nav ul li :hover {
  background-color: var(--nav-hover);
  color: var(--secondary);
}
.slogan {
  background: linear-gradient(90deg, var(--gradient1), var(--gradient2));
  text-align: center;
  color: var(--secondary);
  padding: 2rem;
  margin: 14.7rem 0 2rem;
  box-shadow: 0 0 0.2rem var(--box-shadow);
}
input {
  font-family: "Poppins", sans-serif;
  color: var(--primary);
}
#email {
  max-width: 100%;
  padding: 0.5rem;
  font-size: 1.6rem;
  border-style: none;
  margin: 1.5rem;
  border-radius: 0.2rem;
  background-color: var(--secondary);
}
#email:focus {
  outline: 0;
  box-shadow: 0 0 0.2rem 0.2rem var(--email-shadow-focus);
  background-color: var(--email-bg-focus);
}
#submit {
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  background-color: var(--submit);
  cursor: pointer;
  border-style: none;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
}
#submit:hover {
  background-color: var(--submit-hover);
}
.product-image {
  width: 20rem;
  height: 30rem;
  object-fit: contain;
}
h2 {
  padding: 1rem 0;
}
.features {
  padding: 1rem 3rem;
  max-width: 30rem;
}
.features li {
  list-style-type: square;
  padding: 1rem 0;
}
.p {
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}
.shop {
  position: absolute;
  margin: 2rem 0;
  padding: 0.7rem 1.4rem;
  background-color: var(--shop);
  color: var(--secondary);
  border-radius: 0.4rem;
  box-shadow: 0 0 0.2rem 0.1rem var(--box-shadow);
}
.shop:hover {
  background-color: var(--shop-hover);
}
#video {
  display: block;
  margin: auto;
}
hr {
  box-shadow: 0px 0px 0.05rem var(--box-shadow);
  margin: 5rem auto;
  max-width: 960px;
}
footer {
  background-color: var(--primary);
  color: var(--secondary);
  margin-top: 5rem;
  padding: 1rem;
  text-align: end;
  border-top-left-radius: 0.2rem;
  border-top-right-radius: 0.2rem;
}
footer ul {
  display: flex;
  justify-content: flex-end;
  flex-flow: row wrap;
  margin: 1rem 0;
}
footer a {
  color: var(--secondary);
  padding: 0.5rem;
}
footer a:hover {
  color: var(--footer-hover);
}
/* Vertically rearrange products for mobile, thus, avoid sorting confusion (first --> image, second --> feature) */
@media (max-width: 540px) {
  .flex-reverse {
    flex-direction: column-reverse;
  }
  #header-img {
    width: 100vw;
  }
  .features {
    padding: 1rem;
  }
  .shop {
    margin: 2rem 25%;
  }
}
/* Center navigation bar for mobile */
@media (max-width: 652px) {
  #header {
    justify-content: center;
    align-items: center;
  }
}
/* Embedded youtube video needed better responsiveness */
@media (max-width: 560px) {
  .videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
  }
  .videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.