fix(event): 학교 축제 상세 날짜 옆 배지를 학교명 → 축제 타입으로

학교명은 이미 제목에 포함되어 중복이므로 '대학 축제' 타입 표시로 변경.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
caadiq 2026-06-01 12:50:32 +09:00
parent 2ddc16d532
commit 70fb6527fe
2 changed files with 15 additions and 19 deletions

View file

@ -612,15 +612,13 @@ function MobileEventSection({ schedule }) {
{/* 정보 카드 */} {/* 정보 카드 */}
<div className="bg-white rounded-xl shadow-sm p-4"> <div className="bg-white rounded-xl shadow-sm p-4">
<div className="flex items-center gap-2 mb-2 flex-wrap"> <div className="flex items-center gap-2 mb-2 flex-wrap">
{schedule.schoolName && (
<span <span
className="inline-flex items-center gap-1 px-2 py-0.5 text-xs font-semibold rounded-md" className="inline-flex items-center gap-1 px-2 py-0.5 text-xs font-semibold rounded-md"
style={{ backgroundColor: `${categoryColor}25`, color: '#92400e' }} style={{ backgroundColor: `${categoryColor}25`, color: '#92400e' }}
> >
<PartyPopper size={10} /> <PartyPopper size={10} />
{schedule.schoolName} {schedule.subtype === 'university' ? '대학 축제' : (schedule.category?.name || '행사')}
</span> </span>
)}
<span className="text-xs text-gray-400"> <span className="text-xs text-gray-400">
{formatFullDate(schedule.date)} {formatFullDate(schedule.date)}
{schedule.time && ` · ${formatTime(schedule.time)}`} {schedule.time && ` · ${formatTime(schedule.time)}`}

View file

@ -97,17 +97,15 @@ function EventSection({ schedule }) {
{/* 오른쪽: 정보 */} {/* 오른쪽: 정보 */}
<div className="flex-1 bg-white rounded-2xl shadow-sm border border-gray-100 p-8"> <div className="flex-1 bg-white rounded-2xl shadow-sm border border-gray-100 p-8">
{/* 학교 + 날짜 */} {/* 타입 + 날짜 */}
<div className="flex items-center gap-3 mb-4 flex-wrap"> <div className="flex items-center gap-3 mb-4 flex-wrap">
{schedule.schoolName && (
<span <span
className="inline-flex items-center gap-1.5 px-3 py-1.5 text-base font-semibold rounded-md" className="inline-flex items-center gap-1.5 px-3 py-1.5 text-base font-semibold rounded-md"
style={{ backgroundColor: `${categoryColor}25`, color: '#92400e' }} style={{ backgroundColor: `${categoryColor}25`, color: '#92400e' }}
> >
<PartyPopper size={15} /> <PartyPopper size={15} />
{schedule.schoolName} {schedule.subtype === 'university' ? '대학 축제' : (schedule.category?.name || '행사')}
</span> </span>
)}
<span className="flex items-center gap-1.5 text-base text-gray-500"> <span className="flex items-center gap-1.5 text-base text-gray-500">
<Calendar size={15} /> <Calendar size={15} />
{formatFullDate(schedule.date)} {formatFullDate(schedule.date)}