Spaces:
Runtime error
Runtime error
Download utils/streakColor.js from Json026/Habit-tracker: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/spaces/Json026/Habit-tracker/resolve/main/utils/streakColor.js
- Command line
-
hf download hf://spaces/Json026/Habit-tracker/utils/streakColor.js
-
curl -L -o streakColor.js https://huggingface.co/spaces/Json026/Habit-tracker/resolve/main/utils/streakColor.js
286 Bytes
| export const getStreakColor = (days) => { | |
| if (days <= 3) return "bg-red-500"; | |
| if (days <= 6) return "bg-yellow-400"; | |
| if (days <= 9) return "bg-green-400"; | |
| if (days <= 14) return "bg-green-500"; | |
| if (days <= 21) return "bg-green-600"; | |
| return "bg-emerald-700"; // elite tier | |
| }; |