Playlists, Play Next, Code Refactor

This commit is contained in:
Shiny Nematoda 2022-04-21 18:38:21 +05:30
parent 5486be7613
commit 51c56abe16
17 changed files with 664 additions and 204 deletions

16
src/scripts/colors.js Normal file
View file

@ -0,0 +1,16 @@
const c = [
"linear-gradient(45deg, #88c0d0, #5e81ac)",
"linear-gradient(45deg, #5e81ac, #b48ead)",
"linear-gradient(45deg, #a3be8c, #88c0d0)",
"linear-gradient(45deg, #ebcb8b, #a3be8c)",
"linear-gradient(45deg, #d08770, #bf616a)"
];
export function useColors() {
return c
}
export function useRand() {
const i = Math.floor(Math.random() * c.length);
return c[i]
}