Skip to content

Commit

Permalink
Use full quality on banner image
Browse files Browse the repository at this point in the history
  • Loading branch information
marnym committed Sep 4, 2023
1 parent da95b8e commit 473dbcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ const Carousel = ({ urls }: { urls: string[] }) => {
src={`${STRAPI_URL}${url}`}
alt=""
className="object-cover opacity-80"
loading={i > 2 ? 'eager' : 'lazy'}
loading={i > 2 ? 'lazy' : 'eager'}
fill
quality={100}
/>
</div>
))}
Expand All @@ -78,6 +79,7 @@ const SingleBannerImage = () => {
style={{ objectFit: 'cover', opacity: 0.8 }}
fill
loading="eager"
quality={100}
/>
)
}
Expand Down
Binary file modified public/images/banner/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 473dbcf

Please sign in to comment.