mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
Merge pull request #21 from zenzen-sol/sol/image-boost
chore: Image boost & lighthouse improvements
This commit is contained in:
commit
2f7a2aaddf
@ -117,6 +117,7 @@ export default async function ProductPage({
|
||||
height={product.featuredImage.height}
|
||||
width={product.featuredImage.width}
|
||||
className="h-full w-full object-cover"
|
||||
priority={true}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
@ -80,6 +80,7 @@ export default async function BlogArticlePage({
|
||||
height={article?.image.height}
|
||||
width={article?.image.width}
|
||||
className="h-full w-full object-cover"
|
||||
priority={true}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
@ -72,7 +72,7 @@ export async function HomepageProducts({ lang }: { lang?: SupportedLocale }) {
|
||||
>
|
||||
<HomepageProductsItem item={firstProduct} priority={true} />
|
||||
<HomepageProductsItem item={secondProduct} priority={true} />
|
||||
<HomepageProductsItem item={thirdProduct} />
|
||||
<HomepageProductsItem item={thirdProduct} priority={true} />
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ export function MenuModal({ scrolled }: { scrolled: boolean }) {
|
||||
type="button"
|
||||
onClick={() => setIsOpen(true)}
|
||||
className="transition-all ease-in-out hover:scale-110"
|
||||
aria-label="Open menu"
|
||||
>
|
||||
<MenuIcon />
|
||||
</button>
|
||||
|
@ -48,6 +48,7 @@ export default async function StoriesDetail({
|
||||
'h-full w-full object-cover',
|
||||
'transition duration-300 ease-in-out hover:scale-105'
|
||||
)}
|
||||
priority={true}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
@ -27,6 +27,7 @@ export function ProductTastingNotes({ product }: { product: Product }) {
|
||||
width={imageWidth}
|
||||
height={imageHeight}
|
||||
alt={imageAlt || imageUrl}
|
||||
priority={true}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user