From 96aca777fd6590fd11f1387ae53be533f74c9569 Mon Sep 17 00:00:00 2001 From: animesh sahoo Date: Fri, 4 Jul 2025 17:04:29 +0530 Subject: [PATCH 1/5] fix: normalize badge height for all tool reports (#1753) --- pages/tools/components/ToolingDetailModal.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/tools/components/ToolingDetailModal.tsx b/pages/tools/components/ToolingDetailModal.tsx index 9bdcb82b8..53dca990c 100644 --- a/pages/tools/components/ToolingDetailModal.tsx +++ b/pages/tools/components/ToolingDetailModal.tsx @@ -388,6 +388,7 @@ const BowtieReportBadge = ({ uri }: { uri: string }) => { className='my-1' width={100} height={20} + style={{ width: 'auto', height: '20px', objectFit: 'contain' }} /> )} {error && ( From 5d5fe6e7bf9a8bccfd40ce4326e2b1f2cd0c3017 Mon Sep 17 00:00:00 2001 From: animesh sahoo Date: Sat, 5 Jul 2025 12:03:06 +0530 Subject: [PATCH 2/5] changed to tailwind --- pages/tools/components/ToolingDetailModal.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/tools/components/ToolingDetailModal.tsx b/pages/tools/components/ToolingDetailModal.tsx index 53dca990c..8c91a50e1 100644 --- a/pages/tools/components/ToolingDetailModal.tsx +++ b/pages/tools/components/ToolingDetailModal.tsx @@ -385,10 +385,9 @@ const BowtieReportBadge = ({ uri }: { uri: string }) => { Bowtie Badge )} {error && ( From dc21b926480e2a99d42bd3513a1965491447ad66 Mon Sep 17 00:00:00 2001 From: animesh sahoo Date: Sat, 5 Jul 2025 13:26:12 +0530 Subject: [PATCH 3/5] change object-cover to object-fill --- pages/blog/index.page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index 65fdfb3a4..81c2942d5 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -317,7 +317,7 @@ export default function StaticMarkdownPage({ src={frontmatter.cover} alt={frontmatter.title} fill - className='object-cover' + className='object-fill' loading={idx < 10 ? 'eager' : 'lazy'} priority={idx < 10} quality={75} From 0c1a85c3fd49b3e7ebfc34b3b7cc4b0be5a0c557 Mon Sep 17 00:00:00 2001 From: animesh sahoo Date: Sat, 5 Jul 2025 13:33:47 +0530 Subject: [PATCH 4/5] removed code of another PR --- pages/tools/components/ToolingDetailModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/tools/components/ToolingDetailModal.tsx b/pages/tools/components/ToolingDetailModal.tsx index 8c91a50e1..9bdcb82b8 100644 --- a/pages/tools/components/ToolingDetailModal.tsx +++ b/pages/tools/components/ToolingDetailModal.tsx @@ -385,7 +385,7 @@ const BowtieReportBadge = ({ uri }: { uri: string }) => { Bowtie Badge From 91b1546bf3903947e28a87b131a293c099176143 Mon Sep 17 00:00:00 2001 From: animesh sahoo Date: Sat, 2 Aug 2025 20:01:00 +0530 Subject: [PATCH 5/5] fix: correct blog image logic --- pages/blog/index.page.tsx | 214 ++++++++++++++++++++------------------ pages/index.page.tsx | 2 +- 2 files changed, 114 insertions(+), 102 deletions(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index 81c2942d5..473773f68 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -1,3 +1,4 @@ +/* eslint-disable linebreak-style */ import React, { useState, useEffect } from 'react'; import Head from 'next/head'; import Link from 'next/link'; @@ -9,7 +10,7 @@ const PATH = 'pages/blog/posts'; import TextTruncate from 'react-text-truncate'; import generateRssFeed from './generateRssFeed'; import { useRouter } from 'next/router'; -import { SectionContext } from '~/context'; +import { SectionContext } from '../../context'; import Image from 'next/image'; type Author = { @@ -197,14 +198,13 @@ export default function StaticMarkdownPage({
{recentBlog[0] && ( -
+
{recentBlog[0].frontmatter.title} @@ -307,113 +307,125 @@ export default function StaticMarkdownPage({ return (
-
- -
- {frontmatter.title} + +
+ {frontmatter.title} +
+
+
+
+ {/* Display each category as a clickable badge */} +
+ {getCategories(frontmatter).map((cat, index) => ( +
{ + e.preventDefault(); + e.stopPropagation(); + toggleCategory(cat); + }} + > + {cat || 'Unknown'} +
+ ))} +
+
+ {frontmatter.title} +
+
+ +
-
-
- {/* Display each category as a clickable badge */} -
- {getCategories(frontmatter).map((cat, index) => ( +
+
+ {(frontmatter.authors || []).map( + (author: Author, index: number) => (
{ - e.preventDefault(); - e.stopPropagation(); - toggleCategory(cat); + className={`bg-slate-50 rounded-full -ml-3 bg-cover bg-center border-2 border-white ${ + frontmatter.authors.length > 2 + ? 'h-8 w-8' + : 'h-11 w-11' + }`} + style={{ + backgroundImage: `url(${author.photo})`, + zIndex: 10 - index, }} - > - {cat || 'Unknown'} -
- ))} -
-
- {frontmatter.title} -
-
- -
+ /> + ), + )}
-
-
- {(frontmatter.authors || []).map( - (author: Author, index: number) => ( -
2 - ? 'h-8 w-8' - : 'h-11 w-11' - }`} - style={{ - backgroundImage: `url(${author.photo})`, - zIndex: 10 - index, - }} - /> - ), - )} -
-
-
- {frontmatter.authors.length > 2 ? ( - <> - {frontmatter.authors - .slice(0, 2) - .map((author: Author, index: number) => ( - - {author.name} - {index === 0 && ' & '} - - ))} - {'...'} - - ) : ( - frontmatter.authors.map( - (author: Author, index: number) => ( +
+
+ {frontmatter.authors.length > 2 ? ( + <> + {frontmatter.authors + .slice(0, 2) + .map((author: Author, index: number) => ( {author.name} - {index < frontmatter.authors.length - 1 && - ' & '} + {index === 0 && ' & '} - ), - ) - )} -
-
- {frontmatter.date && ( - - {date.toLocaleDateString('en-us', { - year: 'numeric', - month: 'long', - day: 'numeric', - })} - - )}{' '} - · {postTimeToRead} min read -
+ ))} + {'...'} + + ) : ( + frontmatter.authors.map( + (author: Author, index: number) => ( + + {author.name} + {index < frontmatter.authors.length - 1 && + ' & '} + + ), + ) + )} +
+
+ {frontmatter.date && ( + + {date.toLocaleDateString('en-us', { + year: 'numeric', + month: 'long', + day: 'numeric', + })} + + )}{' '}
- -
+
+ {/* Separator Line */} +
+ {/* Read More Section */} +
+ + Read More + + → + + + + {postTimeToRead} min read + +
+
); })} diff --git a/pages/index.page.tsx b/pages/index.page.tsx index 95fb51ddd..41ce2d046 100644 --- a/pages/index.page.tsx +++ b/pages/index.page.tsx @@ -427,7 +427,7 @@ const Home = (props: any) => { <>