From 98cd2ca4097d2cb4c8610ffb46eddec39a44d70f Mon Sep 17 00:00:00 2001 From: MadhavDhatrak Date: Tue, 21 Jan 2025 14:11:51 +0000 Subject: [PATCH 01/10] Add hover and Read More to blog cards --- pages/blog/index.page.tsx | 128 ++++++++++++++++---------------------- styles/globals.css | 27 ++++++++ 2 files changed, 82 insertions(+), 73 deletions(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index 5bd300de2..112e11951 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -245,82 +245,56 @@ export default function StaticMarkdownPage({ return (
-
+
-
-
+
+ {frontmatter.title} +
+
-
-
{ - e.preventDefault(); - e.stopPropagation(); - - if (frontmatter.type) { - setCurrentFilterTag(frontmatter.type); - history.replaceState( - null, - '', - `/blog?type=${frontmatter.type}`, - ); - } - }} - > - {frontmatter.type || 'Unknown Type'} -
+
+ {frontmatter.type || 'Unknown Type'}
-
+
{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 || []).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 ? ( <> @@ -346,19 +320,27 @@ export default function StaticMarkdownPage({ ) )}
- -
- {frontmatter.date && ( - - {date.toLocaleDateString('en-us', { - year: 'numeric', - month: 'long', - day: 'numeric', - })} - - )}{' '} - · {timeToRead} min read -
+
+
+ + {timeToRead} min read + + + Read More + + + +
diff --git a/styles/globals.css b/styles/globals.css index cd327de8f..b7441a1f3 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -299,4 +299,31 @@ border-radius: 4px; */ } .scrollbar-hidden::-webkit-scrollbar { display: none; +} + +@keyframes shine { + from { + transform: translateX(-100%); + } + to { + transform: translateX(200%); + } +} + +.shine-animation { + animation: shine 2s infinite; +} + +/* Add smooth transitions for dark mode */ +.dark .group:hover { + background: rgba(255, 255, 255, 0.05); +} + +/* Enhance card interactions */ +.group { + transition: all 0.3s ease; +} + +.group:hover { + transform: translateY(-2px); } \ No newline at end of file From 86b74907afb95a4a4e82c00d78f597e3795fba1d Mon Sep 17 00:00:00 2001 From: MadhavDhatrak Date: Tue, 21 Jan 2025 15:29:20 +0000 Subject: [PATCH 02/10] Add hover and Read More to blog cards --- pages/blog/index.page.tsx | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index 112e11951..52445b882 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -134,14 +134,14 @@ export default function StaticMarkdownPage({ />
-
+
{recentBlog[0].frontmatter.type}

{recentBlog[0].frontmatter.title}

-
+
{ const { frontmatter, content } = blogPost; - const date = new Date(frontmatter.date); const timeToRead = Math.ceil(readingTime(content).minutes); return ( @@ -327,16 +326,16 @@ export default function StaticMarkdownPage({ Read More - - From 231683f6dc3459f0f5b7196a5fabb7fdffb148ad Mon Sep 17 00:00:00 2001 From: MadhavDhatrak Date: Sat, 25 Jan 2025 08:00:15 +0000 Subject: [PATCH 03/10] Revert "Add hover and Read More to blog cards" This reverts commit 86b74907afb95a4a4e82c00d78f597e3795fba1d. --- pages/blog/index.page.tsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index 52445b882..112e11951 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -134,14 +134,14 @@ export default function StaticMarkdownPage({ />
-
+
{recentBlog[0].frontmatter.type}

{recentBlog[0].frontmatter.title}

-
+
{ const { frontmatter, content } = blogPost; + const date = new Date(frontmatter.date); const timeToRead = Math.ceil(readingTime(content).minutes); return ( @@ -326,16 +327,16 @@ export default function StaticMarkdownPage({ Read More - - From 7b837830c96d15cf47c0476772524cbfd1a40e74 Mon Sep 17 00:00:00 2001 From: MadhavDhatrak Date: Sat, 25 Jan 2025 08:00:49 +0000 Subject: [PATCH 04/10] Revert "Add hover and Read More to blog cards" This reverts commit 98cd2ca4097d2cb4c8610ffb46eddec39a44d70f. --- pages/blog/index.page.tsx | 128 ++++++++++++++++++++++---------------- styles/globals.css | 27 -------- 2 files changed, 73 insertions(+), 82 deletions(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index 112e11951..5bd300de2 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -245,56 +245,82 @@ export default function StaticMarkdownPage({ return (
-
+
-
- {frontmatter.title} -
-
+
+
-
- {frontmatter.type || 'Unknown Type'} +
+
{ + e.preventDefault(); + e.stopPropagation(); + + if (frontmatter.type) { + setCurrentFilterTag(frontmatter.type); + history.replaceState( + null, + '', + `/blog?type=${frontmatter.type}`, + ); + } + }} + > + {frontmatter.type || 'Unknown Type'} +
-
+
{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 || []).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 ? ( <> @@ -320,27 +346,19 @@ export default function StaticMarkdownPage({ ) )}
-
-
- - {timeToRead} min read - - - Read More - - - - + +
+ {frontmatter.date && ( + + {date.toLocaleDateString('en-us', { + year: 'numeric', + month: 'long', + day: 'numeric', + })} + + )}{' '} + · {timeToRead} min read +
diff --git a/styles/globals.css b/styles/globals.css index b7441a1f3..cd327de8f 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -299,31 +299,4 @@ border-radius: 4px; */ } .scrollbar-hidden::-webkit-scrollbar { display: none; -} - -@keyframes shine { - from { - transform: translateX(-100%); - } - to { - transform: translateX(200%); - } -} - -.shine-animation { - animation: shine 2s infinite; -} - -/* Add smooth transitions for dark mode */ -.dark .group:hover { - background: rgba(255, 255, 255, 0.05); -} - -/* Enhance card interactions */ -.group { - transition: all 0.3s ease; -} - -.group:hover { - transform: translateY(-2px); } \ No newline at end of file From 0d455c5a9196d6944c865fb54297e694f68d044c Mon Sep 17 00:00:00 2001 From: MadhavDhatrak Date: Sat, 1 Feb 2025 14:36:34 +0000 Subject: [PATCH 05/10] Updated blog page and global styles --- pages/blog/index.page.tsx | 70 +++++++++++++++++++-------------------- styles/globals.css | 5 --- 2 files changed, 34 insertions(+), 41 deletions(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index 52445b882..b29b32f4c 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -123,7 +123,7 @@ export default function StaticMarkdownPage({
{recentBlog[0] && ( -
+
{/* filterTag === frontmatter.type && */} -
+
{blogPosts .filter((post) => { if (!currentFilterTag || currentFilterTag === 'All') return true; @@ -244,12 +244,9 @@ export default function StaticMarkdownPage({ return (
-
- -
+
+
+
-
+
{frontmatter.type || 'Unknown Type'}
-
+
{frontmatter.title}
-
-
-
+
{(frontmatter.authors || []).map( @@ -294,7 +289,7 @@ export default function StaticMarkdownPage({ ), )}
-
+
{frontmatter.authors.length > 2 ? ( <> {frontmatter.authors @@ -320,30 +315,33 @@ export default function StaticMarkdownPage({ )}
-
- - {timeToRead} min read - - - Read More - - - - -
+
+
+ + {timeToRead} min read + + + Read More + + + +
- +
); diff --git a/styles/globals.css b/styles/globals.css index b7441a1f3..03e89a3c0 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -314,12 +314,7 @@ border-radius: 4px; */ animation: shine 2s infinite; } -/* Add smooth transitions for dark mode */ -.dark .group:hover { - background: rgba(255, 255, 255, 0.05); -} -/* Enhance card interactions */ .group { transition: all 0.3s ease; } From e2a5ea79bdb20050f76c3fc1c666e0a0eadfb999 Mon Sep 17 00:00:00 2001 From: MadhavDhatrak Date: Sat, 1 Feb 2025 16:07:24 +0000 Subject: [PATCH 06/10] updated blog card and hover effect --- pages/blog/index.page.tsx | 2 +- styles/globals.css | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index b29b32f4c..35685f22d 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -244,7 +244,7 @@ export default function StaticMarkdownPage({ return (
-
+
Date: Sun, 2 Feb 2025 04:02:08 +0000 Subject: [PATCH 07/10] feat: blog card enhancements --- pages/blog/index.page.tsx | 2 +- styles/globals.css | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index 35685f22d..b29b32f4c 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -244,7 +244,7 @@ export default function StaticMarkdownPage({ return (
-
+
Date: Sun, 2 Feb 2025 04:08:07 +0000 Subject: [PATCH 08/10] Blog card enhancements --- pages/blog/index.page.tsx | 205 +++++++++++++++++++------------------- styles/globals.css | 1 - 2 files changed, 104 insertions(+), 102 deletions(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index 5bd300de2..d7b82f18a 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -245,125 +245,128 @@ export default function StaticMarkdownPage({ return (
-
- -
-
-
+ +
+
+
+ {frontmatter.title} +
+
-
{ - e.preventDefault(); - e.stopPropagation(); +
+
{ + e.preventDefault(); + e.stopPropagation(); - if (frontmatter.type) { - setCurrentFilterTag(frontmatter.type); - history.replaceState( - null, - '', - `/blog?type=${frontmatter.type}`, - ); - } - }} - > - {frontmatter.type || 'Unknown Type'} + if (frontmatter.type) { + setCurrentFilterTag(frontmatter.type); + history.replaceState( + null, + '', + `/blog?type=${frontmatter.type}`, + ); + } + }} + > + {frontmatter.type || 'Unknown Type'} +
+
+
+ {frontmatter.title}
-
-
- {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) => ( +
+ {(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) => ( {author.name} - {index === 0 && ' & '} + {index < frontmatter.authors.length - 1 && + ' & '} - ))} - {'...'} - - ) : ( - 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', - })} - - )}{' '} - · {timeToRead} min read +
+ {frontmatter.date && ( + + {date.toLocaleDateString('en-us', { + year: 'numeric', + month: 'long', + day: 'numeric', + })} + + )}{' '} + · {timeToRead} min read +
- -
+
+
); })} diff --git a/styles/globals.css b/styles/globals.css index c54908065..c9a2f6151 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -317,7 +317,6 @@ border-radius: 4px; */ .group { transition: all 0.3s ease; } - .group:hover { transform: translateY(-2px); } \ No newline at end of file From 7380a60d885c9627c3cb3769587d3c1140fea639 Mon Sep 17 00:00:00 2001 From: MadhavDhatrak Date: Sun, 2 Feb 2025 04:14:29 +0000 Subject: [PATCH 09/10] blog page updated --- pages/blog/index.page.tsx | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index d7b82f18a..78ab2fadd 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -258,30 +258,12 @@ export default function StaticMarkdownPage({
-
-
{ - e.preventDefault(); - e.stopPropagation(); - - if (frontmatter.type) { - setCurrentFilterTag(frontmatter.type); - history.replaceState( - null, - '', - `/blog?type=${frontmatter.type}`, - ); - } - }} - > - {frontmatter.type || 'Unknown Type'} -
+
+ {frontmatter.type || 'Unknown Type'}
{frontmatter.title}
-
-
+ +
{(frontmatter.authors || []).map( (author: Author, index: number) => ( From c34484f1562cfc616f4c7641b1645ce844db862b Mon Sep 17 00:00:00 2001 From: MadhavDhatrak Date: Thu, 6 Mar 2025 14:42:07 +0000 Subject: [PATCH 10/10] Fix: Marged conflict --- pages/blog/index.page.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pages/blog/index.page.tsx b/pages/blog/index.page.tsx index 3738e980e..ea863c5cc 100644 --- a/pages/blog/index.page.tsx +++ b/pages/blog/index.page.tsx @@ -130,7 +130,7 @@ export default function StaticMarkdownPage({ src={recentBlog[0].frontmatter.cover} width={800} height={450} - className='object-cover w-full h-full opacity-70' + className='object-cover w-full h-full opacity-70 blur-[5px]' alt='hero image example' />
@@ -142,7 +142,7 @@ export default function StaticMarkdownPage({

{recentBlog[0].frontmatter.title}

-
+
-
+
-
+
);