feat(website): add alt + lazy loading

This commit is contained in:
Elian Doran
2025-09-27 22:26:41 +03:00
parent f991276152
commit a15aab395a
3 changed files with 4 additions and 4 deletions

View File

@@ -84,7 +84,7 @@ function HeroSection() {
</div>
{screenshotUrl && <img class="screenshot" src={screenshotUrl} />}
{screenshotUrl && <img class="screenshot" src={screenshotUrl} alt="Screenshot of the Trilium Notes desktop application" />}
</Section>
)
}
@@ -258,7 +258,7 @@ function ListWithScreenshot({ items, horizontal, cardExtra }: {
<div className="details">
{selectedItem && (
<>
<img src={selectedItem.imageUrl} />
<img src={selectedItem.imageUrl} alt="Screenshot of the feature being selected" loading="lazy" />
</>
)}
</div>