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

@@ -14,7 +14,7 @@ interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
export default function Card({ title, children, imageUrl, iconSvg, className, moreInfoUrl, ...restProps }: CardProps) {
return (
<div className={`card ${className}`} {...restProps}>
{imageUrl && <img class="image" src={imageUrl} />}
{imageUrl && <img class="image" src={imageUrl} loading="lazy" />}
<div className="card-content">
<h3>

View File

@@ -29,7 +29,7 @@ export function Header() {
<div class="content-wrapper">
<div class="first-row">
<a class="banner" href="/">
<img src={logoPath} width="300" height="300" />&nbsp;<span>Trilium Notes</span>
<img src={logoPath} width="300" height="300" alt="Trilium Notes logo" />&nbsp;<span>Trilium Notes</span>
</a>
<Link