File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export default async function HomePage() {
2626 href = { `/${ homePage ?. featuredCourse ?. _type } /${ homePage ?. featuredCourse ?. slug } ` }
2727 >
2828 { homePage ?. featuredCourse ?. coverImage && (
29- < CoverImage image = { homePage ?. featuredCourse ?. coverImage } />
29+ < CoverImage image = { homePage ?. featuredCourse ?. coverImage } priority />
3030 ) }
3131 < h2 className = "text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl" >
3232 { homePage ?. featuredCourse ?. title }
@@ -54,7 +54,7 @@ export default async function HomePage() {
5454 href = { `/${ homePage ?. latestPodcast ?. _type } /${ homePage ?. latestPodcast ?. slug } ` }
5555 >
5656 { homePage ?. latestPodcast ?. coverImage && (
57- < CoverImage image = { homePage ?. latestPodcast ?. coverImage } />
57+ < CoverImage image = { homePage ?. latestPodcast ?. coverImage } priority />
5858 ) }
5959 < h2 className = "text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl" >
6060 { homePage ?. latestPodcast ?. title }
Original file line number Diff line number Diff line change @@ -52,7 +52,9 @@ export default function CoverImage(props: CoverImageProps) {
5252 height = { height || 1080 }
5353 priority = { priority }
5454 quality = { quality || "auto" }
55- sizes = "100vw"
55+ sizes = "(max-width: 768px) 100vw,
56+ (max-width: 1200px) 50vw,
57+ 33vw"
5658 alt = { source ?. context ?. custom ?. alt || "" }
5759 src = { source ?. public_id }
5860 placeholder = "blur"
You can’t perform that action at this time.
0 commit comments