Skip to content

Commit

Permalink
refactor: 아이콘 이미지에 priority 속성 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kyw0716 committed Aug 15, 2024
1 parent 2dcf070 commit 37be4f8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/bookmark/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default function BookmarkLayout({ children }: PropsWithChildren) {
alt="자리나따 즐겨찾기 페이지 아이콘"
width={112}
height={112}
priority
/>
<Margin vertical size={18} />
<Text type="bold-32" colorType="gray900">
Expand Down
1 change: 1 addition & 0 deletions src/app/help/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default function HelpLayout({ children }: PropsWithChildren) {
alt="자리나따 고객센터 페이지 아이콘"
width={114.5}
height={105}
priority
/>
<Margin vertical size={20} />
<Text type="bold-32" colorType="gray900">
Expand Down
2 changes: 1 addition & 1 deletion src/app/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface SearchPageParams extends PageProps {
export default function SearchPage({ searchParams }: SearchPageParams) {
return (
<div>
<Image src="/banner.svg" alt="자리나따 배너 이미지" width={1280} height={387} />
<Image src="/banner.svg" alt="자리나따 배너 이미지" width={1280} height={387} priority />
열차조회 페이지
</div>
);
Expand Down
8 changes: 7 additions & 1 deletion src/app/search/result/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ export default function SearchResultLayout({ children }: PropsWithChildren) {
<main>
<Flex vertical justify="center">
<Flex vertical style={{ width: 1140, padding: '60px 0', minHeight: 'calc(100vh - 64px)' }}>
<Image src={'/search.svg'} alt="자리나따 열차조회 페이지" width={150} height={139} />
<Image
src={'/search.svg'}
alt="자리나따 열차조회 페이지"
width={150}
height={139}
priority
/>
<Margin vertical size={4} />
<Text type="bold-32" colorType="gray900">
원하는 자리를 조회했어요
Expand Down

0 comments on commit 37be4f8

Please sign in to comment.