feat: update with TailwindCSS
This commit is contained in:
@@ -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
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user