fix: resolve Next.js Image component warnings for LCP and dimensions

This commit is contained in:
mstfyldz
2026-07-17 18:29:00 +03:00
parent b5a864f12d
commit acf8e1e940
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -66,6 +66,7 @@ export default function About({ dict }: { dict: any }) {
src="/moy-beach.jpg"
alt="Moy Beach Atmosphere"
fill
priority
className="object-cover"
sizes="(max-width: 768px) 100vw, 50vw"
/>
+2 -1
View File
@@ -36,8 +36,9 @@ export default function Header({ dict, lang, dbSettings }: { dict: any, lang: st
alt="Moy Beach Logo"
width={120}
height={48}
priority
className={`h-12 w-auto transition-all duration-300 ${!isScrolled ? "brightness-0 invert opacity-90" : ""}`}
style={{ width: "auto" }}
style={{ width: "auto", height: "auto" }}
/>
</a>