feat: Derek vinson/calendar header (#94)
* 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>
This commit is contained in:
@@ -3,7 +3,7 @@ import { Meta, StoryObj } from '@storybook/react';
|
|||||||
import CalendarHeader from '@views/components/common/CalendarHeader/CalenderHeader';
|
import CalendarHeader from '@views/components/common/CalendarHeader/CalenderHeader';
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'Components/CalendarHeader',
|
title: 'Components/Common/CalendarHeader',
|
||||||
component: CalendarHeader,
|
component: CalendarHeader,
|
||||||
parameters: {
|
parameters: {
|
||||||
layout: 'centered',
|
layout: 'centered',
|
||||||
|
|||||||
@@ -12,40 +12,41 @@ import ScheduleTotalHoursAndCourses from '../ScheduleTotalHoursAndCourses/Schedu
|
|||||||
import CourseStatus from '../CourseStatus/CourseStatus';
|
import CourseStatus from '../CourseStatus/CourseStatus';
|
||||||
|
|
||||||
const CalendarHeader = () => (
|
const CalendarHeader = () => (
|
||||||
<div
|
<div className='min-h-79px min-w-672px flex px-0 py-15'>
|
||||||
style={{
|
<div className='flex flex-row gap-20'>
|
||||||
display: 'flex',
|
<div className='flex gap-10'>
|
||||||
minWidth: '672px',
|
<div className='flex gap-1'>
|
||||||
minHeight: '79px',
|
<Button variant='single' icon={MenuIcon} color='ut-gray' />
|
||||||
padding: '15px 0px',
|
<div className='flex items-center'>
|
||||||
justifyContent: 'space-between',
|
<LogoIcon style={{ marginRight: '5px' }} />
|
||||||
alignItems: 'center',
|
<div className='flex flex-col gap-1 whitespace-nowrap'>
|
||||||
alignContent: 'center',
|
<Text className='leading-trim text-cap font-roboto text-base text-ut-burntorange font-medium'>
|
||||||
rowGap: '10px',
|
UT Registration
|
||||||
alignSelf: 'stretch',
|
</Text>
|
||||||
flexWrap: 'wrap',
|
<Text className='leading-trim text-cap font-roboto text-base text-ut-orange font-medium'>
|
||||||
}}
|
Plus
|
||||||
>
|
</Text>
|
||||||
<Button variant='single' icon={MenuIcon} color='ut-gray' />
|
</div>
|
||||||
|
</div>
|
||||||
<div style={{ display: 'flex', alignItems: 'center' }}>
|
</div>
|
||||||
<LogoIcon style={{ marginRight: '5px' }} />
|
<div className='flex flex-col'>
|
||||||
<Text>Your Logo Text</Text>
|
<ScheduleTotalHoursAndCourses scheduleName='SCHEDULE' totalHours={22} totalCourses={8} />
|
||||||
|
DATA UPDATED ON: 12:00 AM 02/01/2024
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className='flex flex-row items-center space-x-8'>
|
||||||
|
<div className='flex flex-row space-x-4'>
|
||||||
|
<CourseStatus size='small' status={Status.WAITLISTED} />
|
||||||
|
<CourseStatus size='small' status={Status.CLOSED} />
|
||||||
|
<CourseStatus size='small' status={Status.CANCELLED} />
|
||||||
|
</div>
|
||||||
|
<div className='flex flex-row'>
|
||||||
|
<Button variant='single' icon={UndoIcon} color='ut-black' />
|
||||||
|
<Button variant='single' icon={RedoIcon} color='ut-black' />
|
||||||
|
<Button variant='single' icon={SettingsIcon} color='ut-black' />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ScheduleTotalHoursAndCourses scheduleName='SCHEDULE' totalHours={22} totalCourses={8} />
|
|
||||||
|
|
||||||
<CourseStatus size='small' status={Status.WAITLISTED} />
|
|
||||||
<CourseStatus size='small' status={Status.CLOSED} />
|
|
||||||
<CourseStatus size='small' status={Status.CANCELLED} />
|
|
||||||
|
|
||||||
<div style={{ display: 'flex' }}>
|
|
||||||
<Button variant='outline' icon={UndoIcon} color='ut-black' />
|
|
||||||
<Button variant='outline' icon={RedoIcon} color='ut-black' />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<Button variant='outline' icon={SettingsIcon} color='ut-black' />
|
|
||||||
|
|
||||||
<Divider type='solid' />
|
<Divider type='solid' />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export default function ScheduleTotalHoursAndCourses({
|
|||||||
totalCourses,
|
totalCourses,
|
||||||
}: ScheduleTotalHoursAndCoursesProps): JSX.Element {
|
}: ScheduleTotalHoursAndCoursesProps): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<div className='min-w-64 flex flex-wrap content-center items-baseline gap-2 uppercase'>
|
<div className='min-w-64 flex whitespace-nowrap content-center items-baseline gap-2 uppercase'>
|
||||||
<Text className='text-[#BF5700]' variant='h1' as='span'>
|
<Text className='text-[#BF5700]' variant='h1' as='span'>
|
||||||
{`${scheduleName}: `}
|
{`${scheduleName}: `}
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
Reference in New Issue
Block a user