diff --git a/src/features/events/components/EventsCard.tsx b/src/features/events/components/EventsCard.tsx index ef1a13fe..c579e37e 100644 --- a/src/features/events/components/EventsCard.tsx +++ b/src/features/events/components/EventsCard.tsx @@ -37,27 +37,26 @@ function EventsCard({ const isOpen = recruitStatus === "OPEN"; return ( -
- {/* 썸네일이 없으면 Figma와 같은 단색 placeholder. - CTA 버튼 안에 버튼을 중첩할 수 없어서, 상세 진입은 썸네일과 텍스트 블록에만 건다. */} +
+ {/* 버튼 안에 CTA 버튼을 중첩할 수 없어서, 상세 진입 버튼을 카드 전체에 덮어 깔고 CTA만 그 위로 올린다. + isolate로 카드 안에서만 z 순서를 정해 목록 위에 겹치는 헤더 같은 요소와 섞이지 않게 한다. */} +
{/* Figma에서 오른쪽 칼럼은 썸네일과 같은 높이(112)에 justify-between이라 뱃지는 위, 버튼은 아래 끝에 붙는다 */}
- +
-
+ {/* CTA 옆 빈 자리는 상세 진입으로 남겨야 해서 래퍼를 줄 전체가 아니라 버튼 너비로만 둔다 */} +
{applicationId === null ? (
diff --git a/src/features/home/components/HomeApplyCard.tsx b/src/features/home/components/HomeApplyCard.tsx index ff725230..82ce9ce0 100644 --- a/src/features/home/components/HomeApplyCard.tsx +++ b/src/features/home/components/HomeApplyCard.tsx @@ -5,7 +5,8 @@ import type { HomeApplySection } from "@/shared/entities/home/homeTypes"; // Figma: Upcoming Event Card (nodeId 3147:146262), Upcoming Application Card (3491:149798) // 행사·사물함이 같은 모양이다. 배지 옆 `행사일` 문구는 Figma에서 투명 처리돼 있어 그리지 않는다. -// 버튼 안에 버튼을 둘 수 없어서, 카드 선택은 배지·제목 영역에만 건다(행사 목록 카드와 같은 방식). +// 버튼 안에 버튼을 둘 수 없어서, 카드 선택 버튼을 카드 전체에 덮어 깔고 신청하기 버튼만 그 위로 올린다 +// (행사 목록 카드와 같은 방식). isolate로 카드 안에서만 z 순서를 정한다. interface HomeApplyCardProps { section: HomeApplySection; onSelect: () => void; @@ -13,13 +14,22 @@ interface HomeApplyCardProps { } function HomeApplyCard({ section, onSelect, onApply }: HomeApplyCardProps) { + // 사물함 제목은 운영 회차 이름(예: 2026-2학기)이라 무엇을 신청하는지 붙여 준다 + const title = + section.targetType === "LOCKER" + ? `${section.title} 사물함 배정` + : section.title; + return ( -
+
+ {/* 사물함은 상세 없이 신청으로 가서 "상세 보기" 대신 보이는 제목을 그대로 이름으로 쓴다 */} - +
+
+ +
); } diff --git a/src/shared/entities/home/homeQueries.ts b/src/shared/entities/home/homeQueries.ts index b4a2574d..20350497 100644 --- a/src/shared/entities/home/homeQueries.ts +++ b/src/shared/entities/home/homeQueries.ts @@ -55,8 +55,8 @@ export const homeResponseSchema = z.looseObject({ // 오늘이나 그 뒤에 열리는 신청한 행사 appliedEvents: previewSchema( z.looseObject({ - // 누르면 이것으로 신청내역 상세를 연다 applicationId: z.number(), + // 누르면 이것으로 행사 상세를 연다 eventId: z.number(), title: z.string(), eventDate: z.string(),