- 일정 메인 화면 구현 중
This commit is contained in:
@@ -124,6 +124,7 @@ html, body, #root {
|
||||
height: 100%;
|
||||
min-width: 1280px;
|
||||
min-height: 720px;
|
||||
max-height: 1080px;
|
||||
}
|
||||
|
||||
/* Chrome, Safari, Edge */
|
||||
|
||||
@@ -1,26 +1,23 @@
|
||||
import { Calendar } from "@/components/ui/calendar";
|
||||
import { DayButton } from "react-day-picker";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { getDefaultClassNames } from "react-day-picker";
|
||||
|
||||
export function ScheduleMainPage() {
|
||||
const defaultClassNames = getDefaultClassNames();
|
||||
|
||||
return (
|
||||
<div className="w-full h-full flex flex-col justify-start items-center">
|
||||
<div className="w-full h-full p-2">
|
||||
<Calendar
|
||||
mode="single"
|
||||
className="rounded-lg w-full h-full max-h-10/12 border"
|
||||
components={{
|
||||
Weeks: (props) => (
|
||||
<tbody {...props} className={props.className}></tbody>
|
||||
className="border w-full rounded-lg"
|
||||
classNames={{
|
||||
month_grid: cn(
|
||||
defaultClassNames.month_grid,
|
||||
"w-full"
|
||||
),
|
||||
Week: (props) => (
|
||||
<tr {...props} className={props.className + " h-1/10"}></tr>
|
||||
),
|
||||
Day: (props) => (
|
||||
<td {...props} className={props.className + " h-1"}></td>
|
||||
)
|
||||
}}
|
||||
>
|
||||
|
||||
</Calendar>
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user