* CalendarHeader alignment progress * Boom * css * Between * Lol * Gap fix * whitespace-nowrap * Gaps * Finished alignment of CourseStatus and Buttons * Colors * ESLint auto format * Color UT Registration Plus text * Reverting vscode --------- Co-authored-by: Vinson Zheng <vinsonzheng499@gmail.com>
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
import React from 'react';
|
|
import Text from '../Text/Text';
|
|
|
|
/**
|
|
* Props for ScheduleTotalHoursAndCourses
|
|
*/
|
|
export interface ScheduleTotalHoursAndCoursesProps {
|
|
scheduleName: string;
|
|
totalHours: number;
|
|
totalCourses: number;
|
|
}
|
|
|
|
/**
|
|
* The ScheduleTotalHoursAndCourses as per the Labels and Details Figma section
|
|
*
|
|
* @param props ScheduleTotalHoursAndCoursesProps
|
|
*/
|
|
export default function ScheduleTotalHoursAndCourses({
|
|
scheduleName,
|
|
totalHours,
|
|
totalCourses,
|
|
}: ScheduleTotalHoursAndCoursesProps): JSX.Element {
|
|
return (
|
|
<div className='min-w-64 flex whitespace-nowrap content-center items-baseline gap-2 uppercase'>
|
|
<Text className='text-[#BF5700]' variant='h1' as='span'>
|
|
{`${scheduleName}: `}
|
|
</Text>
|
|
<Text variant='h3' as='div' className='flex flex-row items-center gap-2 text-[#1A2024]'>
|
|
{`${totalHours} HOURS`}
|
|
<Text variant='h4' as='span' className='text-[#333F48]'>
|
|
{`${totalCourses} courses`}
|
|
</Text>
|
|
</Text>
|
|
</div>
|
|
);
|
|
}
|