diff --git a/src/components/CourseNode.tsx b/src/components/CourseNode.tsx index 377efb9..9fe5eb2 100644 --- a/src/components/CourseNode.tsx +++ b/src/components/CourseNode.tsx @@ -8,9 +8,19 @@ export default function CourseNode({ data }: NodeProps) { const { selectedCourse, highlightedSet } = useExplorerStore(); const dimmed = selectedCourse !== null && !highlightedSet.has(data.code); + const year = data.code.charAt(5); + + const borderColour = + year === "1" ? "border-green-500" : + year === "2" ? "border-blue-500" : + year === "3" ? "border-yellow-500" : + year === "4" ? "border-red-500" : + "border-gray-300"; + + return (