Skip to content

Commit 3c33bd6

Browse files
manNomi한만욱
andauthored
refactor : home_page 중요 이미지 priority 설정했습니다 (#210)
Co-authored-by: 한만욱 <[email protected]>
1 parent 577ca02 commit 3c33bd6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/app/_home/_ui/PopularUniversitySection

src/app/_home/_ui/PopularUniversitySection/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const PopularUniversitySection = ({ universities }: PopularUniversitySectionProp
1616
return (
1717
<div ref={containerRef} className="overflow-x-auto">
1818
<div className="flex gap-2">
19-
{universities.map((university) => (
19+
{universities.map((university, index) => (
2020
<Link key={university.id} href={`/university/${university.id}`}>
2121
<div className="relative w-[153px]">
2222
<div className="relative w-[153px]">
@@ -31,6 +31,7 @@ const PopularUniversitySection = ({ universities }: PopularUniversitySectionProp
3131
width={153}
3232
height={120}
3333
alt={`${university.koreanName || "대학교"} 배경 이미지`}
34+
priority={index < 3}
3435
/>
3536
</div>
3637
<div className="absolute bottom-[9px] left-[10px] z-10 text-sm font-semibold leading-[160%] tracking-[0.15px] text-white">

0 commit comments

Comments
 (0)