Skip to content

Commit 14beefb

Browse files
committed
Fix: update GSoC week12 blog post
1 parent 6135de6 commit 14beefb

File tree

3 files changed

+18
-34
lines changed

3 files changed

+18
-34
lines changed

src/constants/MarkdownFiles/posts/2025-08-24-gsoc-25-MebinThattil-week12.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ date: "2025-08-24"
66
slug: "2025-08-24-gsoc-25-mebinthattil-week12"
77
author: "@/constants/MarkdownFiles/authors/mebin-thattil.md"
88
tags: "gsoc25,sugarlabs,week12,mebinthattil,speak_activity"
9-
image: "assets/Images/GSOCxSpeak.png"
9+
image: "assets/Images/GSOCxSpeak.webp"
1010
---
1111

1212
# Week 12 Progress Report by Mebin J Thattil

src/pages/News/NewsDetailPage.tsx

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -275,26 +275,18 @@ const NewsDetailPage: React.FC = () => {
275275
animate={{ opacity: 1, y: 0 }}
276276
transition={{ duration: 0.5 }}
277277
>
278-
<picture>
279-
{post.image.endsWith('.png') && (
280-
<source
281-
srcSet={post.image.replace(/\.png$/, '.webp')}
282-
type="image/webp"
283-
/>
284-
)}
285-
<img
286-
src={post.image}
287-
alt={post.title}
288-
className="w-full h-auto max-h-80 object-contain mx-auto cursor-pointer hover:scale-105 transition-transform duration-300"
289-
onClick={() =>
290-
setModalImage({
291-
src: post.image.replace(/\.png$/, '.webp'),
292-
alt: post.title,
293-
})
294-
}
295-
data-zoomable="true"
296-
/>
297-
</picture>
278+
<img
279+
src={post.image}
280+
alt={post.title}
281+
className="w-full h-auto max-h-80 object-contain mx-auto cursor-pointer hover:scale-105 transition-transform duration-300"
282+
onClick={() =>
283+
setModalImage({
284+
src: post.image.replace(/\.png$/, '.webp'),
285+
alt: post.title,
286+
})
287+
}
288+
data-zoomable="true"
289+
/>
298290
</motion.div>
299291
)}
300292

src/pages/News/NewsPage.tsx

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -498,19 +498,11 @@ const NewsPage: React.FC = () => {
498498
className={`${viewMode === 'list' ? 'h-full' : 'h-56'} overflow-hidden`}
499499
>
500500
{post.image ? (
501-
<picture>
502-
{post.image.endsWith('.png') && (
503-
<source
504-
srcSet={post.image.replace(/\.png$/, '.webp')}
505-
type="image/webp"
506-
/>
507-
)}
508-
<img
509-
src={post.image}
510-
alt={post.title}
511-
className="w-full h-full object-cover group-hover:scale-110 transition-transform duration-700"
512-
/>
513-
</picture>
501+
<img
502+
src={post.image}
503+
alt={post.title}
504+
className="w-full h-full object-cover group-hover:scale-110 transition-transform duration-700"
505+
/>
514506
) : (
515507
<div className="w-full h-full bg-gradient-to-br from-blue-100 via-purple-50 to-green-100 flex items-center justify-center">
516508
<div className="text-6xl opacity-50">📰</div>

0 commit comments

Comments
 (0)