Skip to content

Commit beec6ce

Browse files
authored
Merge pull request #258 from manNomi/fix/university_img
hot fix : 이미지 수정했습니다
2 parents f5f3264 + 102fbe4 commit beec6ce

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

‎src/app/university/[id]/UniversityDetail.tsx‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,11 @@ interface UniversityDetailProps {
1818

1919
const UniversityDetail = ({ university }: UniversityDetailProps) => {
2020
return (
21-
<>
21+
<div className="relative">
2222
<div className="z-0 h-[236px] w-full bg-blue-100">
23-
<Image
24-
alt="대학 이미지"
25-
width={390}
26-
height={236}
27-
src={convertImageUrl(university.backgroundImageUrl)}
28-
className="object-cover"
29-
/>
23+
<Image alt="대학 이미지" src={convertImageUrl(university.backgroundImageUrl)} fill className="object-cover" />
3024
</div>
31-
<div className="z-30 -mt-[66px] rounded-t-3xl bg-white px-5">
25+
<div className="-mt-[66px] rounded-t-3xl bg-white px-5">
3226
<TitleSection
3327
title={university.formatName}
3428
subTitle={university.englishName}
@@ -55,7 +49,7 @@ const UniversityDetail = ({ university }: UniversityDetailProps) => {
5549
<MapSection universityEnglishName={university.englishName} />
5650
<div className="h-48" />
5751
</div>
58-
</>
52+
</div>
5953
);
6054
};
6155

0 commit comments

Comments
 (0)