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