Build an Availability Table - Build an Availability Table

Tell us what’s happening:

il ya un probleme avec la question Vous devez utiliser deux arrêts de couleur (exprimés en pourcentage) pour que la transition d’une couleur à la suivante soit nette #legend-gradient. N’oubliez pas d’utiliser vos --color#variables. j’ai fait tous juste est elle ne ce valide pas

Your code so far

<!-- file: index.html -->
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Availability Table</title>
    <link href="styles.css">
</head>

<body>
    <table>
        <thead>
            <tr>
                <th class="time">columna 1</th>
                <th class="time">columna 2</th>
                <th class="time">columna 3</th>
                <th class="time">columna 4</th>
            </tr>
        </thead>
        <tbody>
            <tr class="sharp">
                <th class="time">9am</th>
                <td class="available-0"></td>
                <td class="available-1"></td>
                <td class="available-2"></td>
            </tr>
            <tr class="sharp">
                <th class="time">10am</th>
                <td class="available-3"></td>
                <td class="available-4"></td>
                <td class="available-5"></td>
            </tr>
            <tr class="sharp">
                <th class="time">11am</th>
                <td class="available-0"></td>
                <td class="available-1"></td>
                <td class="available-2"></td>
            </tr>
            <tr class="half">
                <th class="time">12am</th>
                <td class="available-3"></td>
                <td class="available-4"></td>
                <td class="available-5"></td>
            </tr>
            <tr class="half">
                <th class="time">1am</th>
                <td class="available-0"></td>
                <td class="available-1"></td>
                <td class="available-2"></td>
            </tr>
        </tbody>
    </table>
    <div id="legend">
        <span>Availability</span>
        <div id="legend-gradient"></div>
    </div>
    

</body>

</html>
/* file: styles.css */
/* file: styles.css */
:root {
  --color0: #4A90E2;
  --color1:#50E3C2;
  --color2:#270790;
  --color3:#265908;
  --color4:#273876;
  --color5:#280987;
  --solid-border: #000000;
  --dashed-border: #000000;
}
#legend-gradient
  {
  width: 75%;
  height: 20px;
  background-image: linear-gradient(
    to right,
    var(--color0) 0%,   var(--color0) 20%,
    var(--color1) 20%,  var(--color1) 40%,
    var(--color2) 40%,  var(--color2) 60%,
    var(--color3) 60%,  var(--color3) 80%,
    var(--color4) 80%,  var(--color4) 100%
  );
}

.available-0{
  background-color: var(--color0);
}
.available-1{
  background-color: var(--color1);
}
.available-2{
  background-color: var(--color2);
}
.available-3{
  background-color: var(--color3);
}
.available-4{
  background-color: var(--color4);
}
.available-5{
  background-color: var(--color5);
}
variable {
  background: linear-gradient(
  var(--color0),
  var(--color1),
  var(--color2),
  var(--color3),
  var(--color4),
  var(--color5);
  )
}
.sharp td {
  display:between;
  justify-content:center;
  border-bottom: var(--solid-border);
}

.half td {
  border-bottom: var(--dashed-border);
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

Challenge Information:

Build an Availability Table - Build an Availability Table
https://www.freecodecamp.org/learn/full-stack-developer/lab-availability-table/build-an-availability-table

You need to use the syntax like in this example Gradient with multi-position color-stops