Skip to content

Commit

Permalink
Update CalendarPage.tsx : Add card
Browse files Browse the repository at this point in the history
  • Loading branch information
김민식 authored and 김민식 committed Nov 29, 2024
1 parent 19223a4 commit 1e98e81
Showing 1 changed file with 12 additions and 25 deletions.
37 changes: 12 additions & 25 deletions src/components/Calendar/CalendarPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,18 @@ function CalendarPage() {
const [date, setDate] = React.useState<Date | undefined>(new Date());

return (
<div className="w-full h-full p-8">
<Calendar
mode="single"
selected={date}
onSelect={setDate}
className="w-full"
/>
<WeeklyCalendar />
{/* <Drawer>
<DrawerTrigger>Open</DrawerTrigger>
<DrawerContent>
<DrawerHeader>
<DrawerTitle>Are you absolutely sure?</DrawerTitle>
<DrawerDescription>
This action cannot be undone.
</DrawerDescription>
</DrawerHeader>
<DrawerFooter>
<Button>Submit</Button>
<DrawerClose>
<Button variant="outline">Cancel</Button>
</DrawerClose>
</DrawerFooter>
</DrawerContent>
</Drawer> */}
<div className="flex flex-col h-full">
<div className="w-full px-8 py-4">
<WeeklyCalendar
mode="single"
selected={date}
onSelect={setDate}
className="w-full"
/>
</div>
<div className="flex flex-col justify-start items-center pt-8 h-full bg-white-aneuk">
<div className="flex flex-col w-[90%] aspect-[2/2.8] p-5 bg-white rounded-[32px] shadow-custom-strong overflow-hidden"></div>
</div>
</div>
);
}
Expand Down

0 comments on commit 1e98e81

Please sign in to comment.