Commit 1e3a3f6d authored by Phạm Quang Bảo's avatar Phạm Quang Bảo

[tag]0.1-prod

parents 7f6ccbf5 6596db21
Pipeline #53924 passed with stages
in 2 minutes and 8 seconds
......@@ -159,12 +159,12 @@ export default function NewsPage({ category, allCategories }: NewsPageProps) {
className="group grid items-center gap-5 sm:grid-cols-[250px_minmax(0,1fr)]"
>
<div className="relative overflow-hidden rounded-md bg-[#edf1f5] aspect-[25/15] sm:aspect-[5/3]">
<Image
<img
src={getDynamicPostSeoImage(item)}
alt={item.title}
width={520}
height={360}
onError={(e) => { e.currentTarget.src = "/thumbnail.png"; }}
className="absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"
loading="lazy"
/>
</div>
......@@ -258,3 +258,5 @@ export default function NewsPage({ category, allCategories }: NewsPageProps) {
</div>
);
}
......@@ -147,12 +147,12 @@ export default function NewsListing() {
className="group grid items-center gap-5 sm:grid-cols-[250px_minmax(0,1fr)]"
>
<div className="relative aspect-[25/15] overflow-hidden rounded-md bg-[#edf1f5] sm:aspect-[5/3]">
<Image
<img
src={getDynamicPostSeoImage(item)}
alt={item.title}
width={520}
height={360}
onError={(e) => { e.currentTarget.src = "/thumbnail.png"; }}
className="absolute inset-0 h-full w-full object-cover transition-transform duration-500 group-hover:scale-[1.03]"
loading="lazy"
/>
</div>
......@@ -267,3 +267,5 @@ export default function NewsListing() {
</div>
);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment