Highlight projects ending soon...

...not projects that have already ended
This commit is contained in:
Max Wofford 2024-12-19 00:32:31 -05:00
parent 3e581ee6a0
commit 1d133db6dc

View file

@ -55,8 +55,9 @@ function getDeadlineClass(deadlineStr) {
const diffTime = deadline - now;
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
if (diffDays <= 2) return 'very-urgent';
if (diffDays <= 7) return 'urgent';
if (diffDays < 0) return 'ended';
if (diffDays <= 7) return 'very-urgent';
if (diffDays <= 14) return 'urgent';
return '';
}