Voeg responsive WebP-varianten toe voor de profielfoto
Continuous Integration / config (pull_request) Successful in 10s
Continuous Integration / prepare (pull_request) Successful in 1m19s
Continuous Integration / build-production (pull_request) Skipped
Continuous Integration / build (pull_request) Successful in 2m0s
Continuous Integration / test (pull_request) Successful in 1m50s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / deploy-production (pull_request) Skipped

Eén vaste 800x800 JPEG werd altijd gedownload, ook op mobiel waar de
foto maar 160px groot getoond wordt. Nu een <picture>-element met
400w/800w varianten in zowel WebP (10-31KB) als JPEG-fallback
(20-61KB), met srcset/sizes zodat de browser de kleinste passende
variant kiest voor het scherm.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-17 21:18:33 +02:00
co-authored by Claude Sonnet 5
parent 0a001846b6
commit 080e895ec0
5 changed files with 16 additions and 7 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

@@ -17,13 +17,22 @@ export function AboutSection() {
</h2>
</div>
<div className="order-2 flex items-center justify-center sm:order-3 sm:col-start-2 sm:row-start-1 sm:row-span-2">
<picture>
<source
type="image/webp"
srcSet="/bryan-slop-400.webp 400w, /bryan-slop-800.webp 800w"
sizes="(min-width: 640px) 224px, 160px"
/>
<img
src="/bryan-slop.jpg"
src="/bryan-slop-800.jpg"
srcSet="/bryan-slop-400.jpg 400w, /bryan-slop-800.jpg 800w"
sizes="(min-width: 640px) 224px, 160px"
alt="Bryan Slop, oprichter van SLP Software"
width={224}
height={224}
className="h-40 w-40 rounded-full border-2 border-accent-line object-cover shadow-lg sm:h-56 sm:w-56"
/>
</picture>
</div>
<div className="order-3 sm:order-2 sm:col-start-1 sm:row-start-2">
{aboutContent.paragraphs.map((paragraph) => (