Skip to content

A simple solution for changing component's color based on a year following a sequence of colors

License

Notifications You must be signed in to change notification settings

notMilhouse/Color-Switcher-by-Year

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color-Switcher-by-Year

A simple solution for changing component's color based on a year following a sequence of colors.

When developing a website for a school club, I wanted to make the interface color change based on the senior year students shirt color. Since every class has its own shirt and its color follows a sequence, this solution basically just makes a calculation based on the year and the number of possible colors (7 in this case) to define which color to pick.

About

A simple solution for changing component's color based on a year following a sequence of colors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published