Read in colors and display them with a RGB led with fading

For a challenge of McWorther course on youtube where I have to make a project where a user can input one of the following colors

  • red
  • green
  • blue
  • off
  • yellow
  • cyan
  • magenta
  • aqua

I made this as a solution : https://wokwi.com/projects/445433719314697217

If someone has a idea how to improve it or have other feedback please go ahead