index.html 1.26 KB
<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>CodePen - Fun with background gradients</title>
  <link rel="stylesheet" href="./style.css">

</head>
<body>
<!-- partial:index.partial.html -->
<nav>Global navigation</nav>
<header>
  <h1>Fun with background gradients</h1>
  <p>Just a bit of fun while wondering about using simple and subtle CSS gradients for backgrounds...</p>
</header>
<main>
  <ul class="cards">
    <li class="card -red">
      <div class="card--image"></div><h2>Red</h2>
        <p>Red is the color at the long wavelength end of the visible spectrum of light, next to orange and opposite violet.</p>
    </li>
    <li class="card -green">
      <div class="card--image"></div>
      <h2>Green</h2>
      <p>Green is the color between blue and yellow on the visible spectrum. It is evoked by light which has a dominant wavelength of roughly 495–570 nm.</p>
    </li>
    <li class="card -blue">
      <div class="card--image"></div>
      <h2>Blue</h2>
      <p>Blue is one of the three primary colours of pigments in painting and traditional colour theory, as well as in the RGB colour model. It lies between violet and green on the spectrum of visible light.</p>
    </li>
  </ul>
</main>
<!-- partial -->
  
</body>
</html>