diff --git a/src/shared/util/themeColors.ts b/src/shared/util/themeColors.ts index 3e939c57..f52cba4c 100644 --- a/src/shared/util/themeColors.ts +++ b/src/shared/util/themeColors.ts @@ -1,15 +1,15 @@ export const colors = { ut: { - 'burnt-orange': '#BF5700', + burntorange: '#BF5700', black: '#333F48', orange: '#f8971f', yellow: '#ffd600', - 'light-green': '#a6cd57', + lightgreen: '#a6cd57', green: '#579d42', teal: '#00a9b7', blue: '#005f86', gray: '#9cadb7', - 'off-white': '#d6d2c4', + offwhite: '#d6d2c4', concrete: '#95a5a6', }, theme: { diff --git a/src/views/components/injected/CoursePopup2/CourseHeadingAndActions.tsx b/src/views/components/injected/CoursePopup2/CourseHeadingAndActions.tsx index 960e9fdb..9aa62bd8 100644 --- a/src/views/components/injected/CoursePopup2/CourseHeadingAndActions.tsx +++ b/src/views/components/injected/CoursePopup2/CourseHeadingAndActions.tsx @@ -1,15 +1,30 @@ import React from 'react'; import { Course } from 'src/shared/types/Course'; +import Add from '~icons/material-symbols/add'; +import CalendarMonth from '~icons/material-symbols/calendar-month'; +import Close from '~icons/material-symbols/close'; +import Copy from '~icons/material-symbols/content-copy'; +import Description from '~icons/material-symbols/description'; +import Mood from '~icons/material-symbols/mood'; +import Reviews from '~icons/material-symbols/reviews'; import { Button } from '../../common/Button/Button'; import { Chip, flagMap } from '../../common/Chip/Chip'; -import Icon from '../../common/Icon/Icon'; +import Divider from '../../common/Divider/Divider'; import Text from '../../common/Text/Text'; interface CourseHeadingAndActionsProps { + /* The course to display */ course: Course; + /* The function to call when the popup should be closed */ onClose: () => void; } +/** + * Renders the heading component for the CoursePopup component. + * + * @param {CourseHeadingAndActionsProps} props - The component props. + * @returns {JSX.Element} The rendered component. + */ const CourseHeadingAndActions = ({ course, onClose }: CourseHeadingAndActionsProps) => { const { courseName, department, number, uniqueId, instructors, flags, schedule } = course; const instructorString = instructors @@ -18,6 +33,11 @@ const CourseHeadingAndActions = ({ course, onClose }: CourseHeadingAndActionsPro return `${firstInitial}${instructor.lastName}`; }) .join(', '); + + const handleCopy = () => { + navigator.clipboard.writeText(uniqueId.toString()); + }; + return (
@@ -25,17 +45,19 @@ const CourseHeadingAndActions = ({ course, onClose }: CourseHeadingAndActionsPro {courseName} ({department} {number}) - {/* TODO: change this button, include the left icon */} - - + {/* need to do handlers */} +
+ +
+
with {instructorString} -
+
{flags.map(flag => ( ))} @@ -58,11 +80,21 @@ const CourseHeadingAndActions = ({ course, onClose }: CourseHeadingAndActionsPro ))}
-
- + + + -
);