issue #59
All checks were successful
Test CI / build (push) Successful in 17s

- 일정 메인 화면 구현 중
This commit is contained in:
2025-12-03 22:51:13 +09:00
parent ea7861b63a
commit daab622638
2 changed files with 14 additions and 16 deletions

View File

@@ -124,6 +124,7 @@ html, body, #root {
height: 100%;
min-width: 1280px;
min-height: 720px;
max-height: 1080px;
}
/* Chrome, Safari, Edge */

View File

@@ -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>
)
}