fix(blog): represent absent article imagery honestly
Deploy Canina / deploy (push) Successful in 3m12s

This commit is contained in:
Canina Automation committed 2026-10-29 08:10:03 +00:00
1 parent 5642c1609c
commit 18094f91a6
17 files changed
+208 -24

No files matched your search

+3 -3
View File
@@ -25,7 +25,7 @@ import { Product } from "../lib/data/products";
import { productService } from "../lib/services/productService";
import { useRouter } from 'next/navigation';
import Image from 'next/image';
import SafeImage from './SafeImage';
import BlogImage from './BlogImage';
import { BLOG_TEAM_FALLBACK, publicationDate, validContentUpdatedAt, persianDate } from '../lib/blogDates';
export interface BlogCategory {
@@ -310,7 +310,7 @@ export default function BlogPage({
className="bg-white rounded-[3.5rem] overflow-hidden border border-medical-gray-200 shadow-2xl flex flex-col lg:flex-row cursor-pointer group hover:border-canina-blue/30 transition-all"
>
<div className="lg:w-1/2 aspect-video lg:aspect-auto relative overflow-hidden bg-medical-gray-100">
<SafeImage
<BlogImage
src={featuredPost.image}
alt={featuredPost.imageAlt || featuredPost.title}
priority
@@ -391,7 +391,7 @@ export default function BlogPage({
>
<div>
<div className="aspect-[16/10] overflow-hidden relative bg-medical-gray-100">
<SafeImage
<BlogImage
src={post.image}
alt={post.imageAlt || post.title}
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"