🖼️ added support for links to blogposts and support image sizing from .md files
Some checks failed
Build and Deploy Next.js Blog to Production / 🔍 Code Quality Checks (push) Failing after 31s
Build and Deploy Next.js Blog to Production / 🏗️ Build and Push Docker Image (push) Has been skipped
Build and Deploy Next.js Blog to Production / 🚀 Deploy to Production (push) Has been skipped

This commit was merged in pull request #7.
This commit is contained in:
RJ
2025-11-24 14:31:57 +02:00
committed by Rares J
parent 1042a43dfa
commit 5f585e2a9f
6 changed files with 85 additions and 42 deletions

View File

@@ -43,9 +43,8 @@ export function OptimizedImage({
width={width}
height={height}
priority={priority}
className={`w-full h-auto transition-opacity duration-300 ${
isLoading ? 'opacity-0' : 'opacity-100'
}`}
style={{ maxWidth: '100%', height: 'auto' }}
className={`transition-opacity duration-300 ${isLoading ? 'opacity-0' : 'opacity-100'}`}
onLoad={() => setIsLoading(false)}
onError={() => setHasError(true)}
placeholder="blur"