From 71f3bac897c6b606a699bad2603366ea27356d9c Mon Sep 17 00:00:00 2001 From: Ben Cole Date: Wed, 29 Jan 2025 16:21:11 -0600 Subject: [PATCH] Added default purple coursebar --- src/components/Post/Post.css | 3 +++ src/components/Post/Post.jsx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Post/Post.css b/src/components/Post/Post.css index d5d18c9..b6874f2 100644 --- a/src/components/Post/Post.css +++ b/src/components/Post/Post.css @@ -17,6 +17,9 @@ color: #fff; } +.post-bar-default { + background-color: #6C3BB6; +} .post-bar-cs { background-color: #7593ff; } diff --git a/src/components/Post/Post.jsx b/src/components/Post/Post.jsx index a3fe70f..b44322a 100644 --- a/src/components/Post/Post.jsx +++ b/src/components/Post/Post.jsx @@ -10,6 +10,7 @@ import "./Post.css"; import { set } from 'firebase/database'; const courseClassMap = { + DEFAULT: "post-bar-default", CS: "post-bar-cs", PHYSICS: "post-bar-physics", GEN_ENG: "post-bar-gen_eng", @@ -22,7 +23,7 @@ function getCourseBarClass(courseName) { return courseClassMap[prefix]; } } - return ""; + return courseClassMap["DEFAULT"]; } function getQuarterClass(quarter) {