perf: apply Vercel Next.js best practices (caching, image optimization, metadata)
This commit is contained in:
@@ -37,6 +37,8 @@ function ProjectCard({ hero_image, category, title, year, subtitle, slug, index
|
||||
src={hero_image || "https://images.unsplash.com/photo-1550745165-9bc0b252726f"}
|
||||
alt={title}
|
||||
fill
|
||||
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
||||
priority={index < 3}
|
||||
className="object-cover transition-all duration-700 grayscale group-hover:grayscale-0"
|
||||
/>
|
||||
</motion.div>
|
||||
|
||||
Reference in New Issue
Block a user