diff --git a/frontend/src/pages/pc/public/schedule/sections/VarietySection.jsx b/frontend/src/pages/pc/public/schedule/sections/VarietySection.jsx index 2cdd3c5..88015ac 100644 --- a/frontend/src/pages/pc/public/schedule/sections/VarietySection.jsx +++ b/frontend/src/pages/pc/public/schedule/sections/VarietySection.jsx @@ -1,4 +1,4 @@ -import { Calendar, Clock, Tv, ExternalLink } from 'lucide-react'; +import { Calendar, Clock, Tv, ExternalLink, Play } from 'lucide-react'; import { decodeHtmlEntities, formatFullDate, formatTime } from './utils'; /** @@ -7,80 +7,93 @@ import { decodeHtmlEntities, formatFullDate, formatTime } from './utils'; function VarietySection({ schedule }) { const members = schedule.members || []; const isFullGroup = members.length === 5; + const hasThumbnail = !!schedule.thumbnailUrl; + const hasReplayUrl = !!schedule.replayUrl; + + // 다시보기 링크가 유튜브인지 확인 + const isYoutubeReplay = hasReplayUrl && /youtu\.?be/i.test(schedule.replayUrl); return ( -
- {/* 썸네일 */} - {schedule.thumbnailUrl && ( -
- {schedule.title} +
+ {/* 상단: 썸네일 + 오버레이 */} + {hasThumbnail && ( +
+ {hasReplayUrl ? ( + +
+ {schedule.title} +
+ {/* 재생 오버레이 */} +
+
+ +
+
+
+ ) : ( +
+ {schedule.title} +
+ )}
)} - {/* 정보 카드 */} -
- {/* 방송사 뱃지 + 제목 */} -
+ {/* 콘텐츠 */} +
+ {/* 방송사 + 날짜 */} +
{schedule.broadcaster && ( - - + + {schedule.broadcaster} )} + + {formatFullDate(schedule.date)} + {schedule.time && ` · ${formatTime(schedule.time)}`} +
-

+ {/* 제목 */} +

{decodeHtmlEntities(schedule.title)}

- {/* 메타 정보 */} -
-
- - {formatFullDate(schedule.date)} -
- {schedule.time && ( -
- - {formatTime(schedule.time)} -
- )} -
- {/* 멤버 */} {members.length > 0 && ( -
-

출연 멤버

-
- {isFullGroup ? ( - - 프로미스나인 +
+ {isFullGroup ? ( + + 프로미스나인 + + ) : ( + members.map((member) => ( + + {member.name} - ) : ( - members.map((member) => ( - - {member.name} - - )) - )} -
+ )) + )}
)} - {/* 다시보기 링크 */} - {schedule.replayUrl && ( -
+ {/* 다시보기 버튼 */} + {hasReplayUrl && ( +