feat: refactor
This commit is contained in:
parent
b83f17d087
commit
8666e5a169
57 changed files with 5734 additions and 5313 deletions
14
src/utils/colors.js
Normal file
14
src/utils/colors.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
export function getTopicColor(topicName) {
|
||||
switch (topicName) {
|
||||
case "software":
|
||||
return "#0073e6";
|
||||
case "operating-systems":
|
||||
return "#009975";
|
||||
case "algorithms":
|
||||
return "#d50032";
|
||||
case "meditations":
|
||||
return "#6a0dad";
|
||||
default:
|
||||
return "#000000";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue