Skip to content

Commit

Permalink
lazy loading images in sponsor section
Browse files Browse the repository at this point in the history
  • Loading branch information
teoh4770 committed Apr 13, 2024
1 parent 8bbe93b commit 2b167f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/sections/Sponsor.section.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { sponsors } from './data';
import { TopBorder, BottomBorder, Hawk, BirdParts } from '@assets';
import { logEvent, analytics } from '../../utils/Analytics';
Expand Down Expand Up @@ -91,6 +90,7 @@ const SponsorSection = () => {
src={sponsor.image}
alt={sponsor.name}
className="aspect-video h-full w-auto object-contain transition-transform duration-300 ease-in-out hover:scale-105"
loading="lazy"
/>
</a>
)
Expand Down Expand Up @@ -119,6 +119,7 @@ const SponsorSection = () => {
src={sponsor.image}
alt={sponsor.name}
className="aspect-video h-full w-auto object-contain transition-transform duration-300 ease-in-out hover:scale-105"
loading="lazy"
/>
</a>
))}
Expand Down Expand Up @@ -150,6 +151,7 @@ const SponsorSection = () => {
src={sponsor.image}
alt={sponsor.name}
className="aspect-video h-full w-auto object-contain transition-transform duration-300 ease-in-out hover:scale-105"
loading="lazy"
/>
</a>
)
Expand Down Expand Up @@ -182,6 +184,7 @@ const SponsorSection = () => {
src={sponsor.image}
alt={sponsor.name}
className="aspect-video h-full w-auto object-contain transition-transform duration-300 ease-in-out hover:scale-105"
loading="lazy"
/>
</a>
)
Expand Down Expand Up @@ -217,6 +220,7 @@ const SponsorSection = () => {
src={partner.image}
alt={partner.name}
className="aspect-video h-full w-auto object-contain transition-transform duration-300 ease-in-out hover:scale-105"
loading="lazy"
/>
</a>
))}
Expand Down

0 comments on commit 2b167f7

Please sign in to comment.