feat: color
This commit is contained in:
parent
285f0ef1e0
commit
000e644c6b
4 changed files with 27 additions and 13 deletions
|
|
@ -29,7 +29,7 @@ const {
|
|||
<Footer />
|
||||
<script is:inline>
|
||||
window.getTopicColor = function (topicName) {
|
||||
switch (topicName) {
|
||||
switch ((topicName || "").toLowerCase()) {
|
||||
case "software":
|
||||
return "#0073e6";
|
||||
case "algorithms":
|
||||
|
|
@ -37,7 +37,9 @@ const {
|
|||
case "meditations":
|
||||
return "#6a0dad";
|
||||
case "autonomous-racing":
|
||||
return "#009975";
|
||||
return "#3d8a44";
|
||||
case "git":
|
||||
return "#e67300";
|
||||
default:
|
||||
return "#000000";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue