diff --git a/src/features/home/HomeScreen.tsx b/src/features/home/HomeScreen.tsx index fd88455..9dbab8e 100644 --- a/src/features/home/HomeScreen.tsx +++ b/src/features/home/HomeScreen.tsx @@ -179,18 +179,8 @@ function HomeScreen() { {/* 배너 카드(relative)가 뒤 섹션보다 나중에 그려져 그림자가 덮지 않게 뒤 섹션도 relative로 둔다 */} - {/* 대여 중인 물품 → 신청 안내(신청마감 D-nn) → 신청한 행사 순으로, 내 대여·신청 현황을 먼저 보여 준다 */} + {/* Figma: 홈 주간 캘린더 추가ver (nodeId 5556:34771) — 신청 안내(신청마감 D-nn) → 학사 일정 → 대여 중인 물품 → 신청한 행사 순 */}
-
- {/* 대여 현황은 반납 대기·확인을 나눠 보여 주려고 홈 조회가 아니라 빌릴게 반납 조회·대여 내역 조회로 받는다 */} - }> - navigate(BILLILGE_TAB_PATHS.rent)} - onMore={() => navigate(BILLILGE_TAB_PATHS.return)} - onReturnRequest={openReturnRequest} - /> - -
@@ -201,6 +191,23 @@ function HomeScreen() { onSelect={openApplySection} /> + {/* 학사 일정은 홈 조회가 아니라 학사 일정 조회로 받아서, 카드가 자기 안에서 일정 영역만 Suspense로 감싼다 */} +
+ push(getCalendarsPath(date))} + onOpen={() => push(CALENDARS_PATH)} + /> +
+
+ {/* 대여 현황은 반납 대기·확인을 나눠 보여 주려고 홈 조회가 아니라 빌릴게 반납 조회·대여 내역 조회로 받는다 */} + }> + navigate(BILLILGE_TAB_PATHS.rent)} + onMore={() => navigate(BILLILGE_TAB_PATHS.return)} + onReturnRequest={openReturnRequest} + /> + +
}>
- {/* 학사 일정은 홈 조회가 아니라 학사 일정 조회로 받아서, 카드가 자기 안에서 일정 영역만 Suspense로 감싼다 */} -
- push(getCalendarsPath(date))} - onOpen={() => push(CALENDARS_PATH)} - /> -
}> void; } -// Figma: 학사일정 · 주간 (nodeId 5365:90592), 홈 주간 캘린더 추가ver (5365:90496) +// Figma: 학사일정 · 주간 (nodeId 5556:34815), 홈 주간 캘린더 추가ver (5556:34771) // 카드 라운드는 Figma가 이 카드만 16px(radius 변수)로 그렸다. function HomeCalendarSection({ onOpen, onMore }: HomeCalendarSectionProps) { const [today] = useState(getToday); diff --git a/src/features/home/components/HomeCalendarWeek.tsx b/src/features/home/components/HomeCalendarWeek.tsx index a7b2678..8873568 100644 --- a/src/features/home/components/HomeCalendarWeek.tsx +++ b/src/features/home/components/HomeCalendarWeek.tsx @@ -9,7 +9,7 @@ import { } from "@/features/calendars/utils/calendarSchedules"; import { calendarsQueries } from "@/shared/entities/calendars/calendarsQueries"; -// Figma 학사일정 · 주간(5365:90592)은 일정 카드 3개 아래에 "1건 더보기"를 둔다 +// 일정 카드는 3개까지 보이고 나머지는 "N건 더보기"로 넘긴다 const VISIBLE_SCHEDULE_LIMIT = 3; interface HomeCalendarWeekProps { @@ -49,11 +49,13 @@ function HomeCalendarWeek({
    {daySchedules.slice(0, VISIBLE_SCHEDULE_LIMIT).map((schedule) => (
  • + {/* 한 줄 카드라 긴 제목은 기간을 밀어내지 않게 말줄임한다 */} void; } -// 날짜는 일정과 상관없어서 점 없이 그대로 그리고, 일정 카드 한 장(62px: 위아래 12 + 제목 18 + 4 + 기간 16) 자리만 채운다. +// 날짜는 일정과 상관없어서 점 없이 그대로 그리고, 일정 카드 한 장(44px: 테두리 1 + 위아래 12 + 제목 18) 자리만 채운다. function HomeCalendarWeekSkeleton({ weekDates, today, @@ -30,7 +30,7 @@ function HomeCalendarWeekSkeleton({ />