Build an Availability Table - Build an Availability Table

Tell us what’s happening:

  1. You should use two color-stops (expressed in percentage) to make the transition from one color to the following color a hard line for your #legend-gradient. Remember to use your --color# variables. HELP PLS…

Your code so far

<!-- 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 rel="stylesheet" href="styles.css">
</head>

<body>
  <table>
    <tr class="sharp">
        <th class="time">10:00<th>
        <th class="time">11:00<th>
        <th class="time">12:00<th>
        <th class="time">13:00</th>
    </tr>
    <tr class="sharp">
            <td class="available-1"></td>
            <td class="available-0"></td>
            <td class="available-5"></td>
            <td class="available-3"></td>
            <td class="available-2"></td>
    </tr>
    <tr class="half">
            <td class="available-1"></td>
            <td class="available-0"></td>
            <td class="available-5"></td>
            <td class="available-3"></td>
            <td class="available-2"></td>
    </tr>
    <tr class="half">
            <td class="available-1"></td>
            <td class="available-0"></td>
            <td class="available-5"></td>
            <td class="available-3"></td>
            <td class="available-2"></td>
    </tr>
    <tr>
        <td class="available-1"></td>
        <td class="available-2"><td>
        <td class="available-3"><td>
        <td class="available-4"><td> 
    </tr>
  </table>
  <div id="legend">
    <span>Availability</span>
    <div id="legend-gradient"></div>
  </div>
</body>

</html>
/* file: styles.css */
:root{
  --color0: #fb44cc;
  --color1: #aa66ff;
  --color2: #bb77dd;
  --color3: #cc88bb;
  --color4: #ee44dd;
  --color5: #ff88aa;
  --solid-border: 2px solid red;
  --dashed-border: 2px dashed gray;
}
.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);
}
.sharp td{
  border-bottom: var(--solid-border);
}
.half td{
  border-bottom: var(--dashed-border);
}
#legend-gradient{
  background-image: linear-gradient(45deg,
  var(--color0) 0%,
  var(--color0) 15%,
  var(--color1) 15%,
  var(--color1) 30%,
  var(--color2) 30%,
  var(--color2) 45%,
  var(--color3) 45%,
  var(--color3) 70%,
  var(--color4) 70%,
  var(--color4) 85%,
  var(--color5) 85%,
  var(--color5) 100%
);
}

Your browser information:

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

Challenge Information:

Build an Availability Table - Build an Availability Table

you are not using two-color stops

here an example for reference:

I still don’t understand…

background-image: linear-gradient(45deg, 
  var(--color0) 0% 15%,
  var(--color1) 15% 30%,
  var(--color2) 30% 45%,
  var(--color3) 45% 70%,
  var(--color4) 70% 85%,
  var(--color4) 85% 90%,
  var(--color5) 90% 100%
  );

I thought I could just remove the repetition, but no

background-image: linear-gradient(
  to left,
  var(--color0)0% 20%,
  var(--color1)20% 40%,
  var(--color2)40% 60%,
  var(--color3)60% 80%,
  var(--color4)80% 100%,
  var(--color5)100%
);
I did it, and it's supposed to be correct now, but why is it an error...

you have color4 twice

here you need to add a space after the ) and color5 needs more space, color4 arrivs at 100% so there is no space for color5