Updated with Tailwind

This commit is contained in:
knownotunknown
2024-02-09 12:05:02 -06:00
parent e3301cc200
commit 279ac076b0
2 changed files with 6 additions and 26 deletions

View File

@@ -20,7 +20,7 @@ type Story = StoryObj<typeof meta>;
export const Default: Story = { export const Default: Story = {
args: { args: {
scheduleName: 'text', scheduleName: 'SCHEDULE',
totalHours: 22, totalHours: 22,
totalCourses: 8 totalCourses: 8
}, },

View File

@@ -1,9 +1,4 @@
import clsx from 'clsx'; import React from 'react';
import React, { useState } from 'react';
import { Course, Status } from '@shared/types/Course';
import { StatusIcon } from '@shared/util/icons';
import { CourseColors, getCourseColors, pickFontColor } from '@shared/util/colors';
import DragIndicatorIcon from '~icons/material-symbols/drag-indicator';
import Text from '../Text/Text'; import Text from '../Text/Text';
/** /**
@@ -22,20 +17,9 @@ export interface ScheduleTotalHoursAndCoursesProps {
*/ */
export default function ScheduleTotalHoursAndCoursess({ scheduleName, totalHours, totalCourses }: ScheduleTotalHoursAndCoursesProps): JSX.Element { export default function ScheduleTotalHoursAndCoursess({ scheduleName, totalHours, totalCourses }: ScheduleTotalHoursAndCoursesProps): JSX.Element {
return ( return (
<div <div className="flex min-w-64 items-center content-center gap-2 flex-wrap uppercase">
style={{
display: 'flex',
minWidth: '245px',
alignItems: 'center',
alignContent: 'center',
gap: '5px 10px',
flexWrap: 'wrap',
}}
>
<Text <Text
style={{ className="text-[#BF5700]"
color: '#BF5700',
}}
variant='h1' variant='h1'
as='span' as='span'
> >
@@ -44,18 +28,14 @@ export default function ScheduleTotalHoursAndCoursess({ scheduleName, totalHours
<Text <Text
variant='h3' variant='h3'
as='span' as='span'
style={{ className="text-[#1A2024]"
color: '#1A2024'
}}
> >
{`${totalHours} HOURS`} {`${totalHours} HOURS`}
</Text> </Text>
<Text <Text
variant='h4' variant='h4'
as='span' as='span'
style={{ className="text-[#333F48]"
color: '#333F48'
}}
> >
{`${totalCourses} courses`} {`${totalCourses} courses`}
</Text> </Text>