From a54e382283245c60cae509485be9d973a26bca19 Mon Sep 17 00:00:00 2001 From: Xuan Date: Fri, 28 Apr 2023 17:15:06 +0800 Subject: [PATCH 1/4] fix hydration issue in #4 (#5) Co-authored-by: Xuan --- app/projects/page.tsx | 74 +++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 38 deletions(-) diff --git a/app/projects/page.tsx b/app/projects/page.tsx index 100ee64..38d9f78 100644 --- a/app/projects/page.tsx +++ b/app/projects/page.tsx @@ -55,47 +55,45 @@ export default async function ProjectsPage() {
- -
-
-
- {featured.date ? ( - - ) : ( - SOON - )} -
- - {" "} - {Intl.NumberFormat("en-US", { notation: "compact" }).format( - views[featured.slug] ?? 0, - )} - +
+
+
+ {featured.date ? ( + + ) : ( + SOON + )}
+ + {" "} + {Intl.NumberFormat("en-US", { notation: "compact" }).format( + views[featured.slug] ?? 0, + )} + +
-

+ {featured.title} +

+

+ {featured.description} +

+
+ - {featured.title} - -

- {featured.description} -

-
- - Read more - -
-
- + Read more + +
+
From 5737d2504f99edaabc33df94cddbaa58ea2509d8 Mon Sep 17 00:00:00 2001 From: Xuan Date: Mon, 1 May 2023 18:49:14 +0800 Subject: [PATCH 2/4] improve 'featured' card to be clickable, not just Read more, also resolves hydration (#7) Co-authored-by: Xuan --- app/projects/page.tsx | 71 +++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 36 deletions(-) diff --git a/app/projects/page.tsx b/app/projects/page.tsx index 38d9f78..c6aef43 100644 --- a/app/projects/page.tsx +++ b/app/projects/page.tsx @@ -55,45 +55,44 @@ export default async function ProjectsPage() {
-
-
-
- {featured.date ? ( - - ) : ( - SOON - )} + +
+
+
+ {featured.date ? ( + + ) : ( + SOON + )} +
+ + {" "} + {Intl.NumberFormat("en-US", { notation: "compact" }).format( + views[featured.slug] ?? 0, + )} +
- - {" "} - {Intl.NumberFormat("en-US", { notation: "compact" }).format( - views[featured.slug] ?? 0, - )} - -
-

- {featured.title} -

-

- {featured.description} -

-
- - Read more - -
-
+ {featured.title} + +

+ {featured.description} +

+
+

+ Read more +

+
+ +
From a43b3fdac77266dfb494e8a28e466f7d481746f6 Mon Sep 17 00:00:00 2001 From: Jamie <38860802+c0nf1den71al@users.noreply.github.com> Date: Sun, 7 May 2023 16:25:46 +0100 Subject: [PATCH 3/4] Stop back-ticks showing inside of in-line code styles (#10) * Fix backticks in codeblocks * Fix backticks in codeblocks --- tailwind.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tailwind.config.js b/tailwind.config.js index bdbcae4..68cd2e3 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -11,6 +11,16 @@ module.exports = { theme: { extend: { typography: { + DEFAULT: { + css: { + 'code::before': { + content: '""' + }, + 'code::after': { + content: '""' + }, + }, + }, quoteless: { css: { "blockquote p:first-of-type::before": { content: "none" }, @@ -92,7 +102,7 @@ module.exports = { }, }, }, - }, + } }, plugins: [ require("@tailwindcss/typography"), From 8d6e6ae16ae13f8d9f77c33a60afdbb0fa163e1d Mon Sep 17 00:00:00 2001 From: Tom Schindler <92883410+schjndler@users.noreply.github.com> Date: Wed, 10 May 2023 00:26:28 +0200 Subject: [PATCH 4/4] fix missing .com in header.tsx (#11) --- app/projects/[slug]/header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/projects/[slug]/header.tsx b/app/projects/[slug]/header.tsx index 7bb91cb..bab697a 100644 --- a/app/projects/[slug]/header.tsx +++ b/app/projects/[slug]/header.tsx @@ -67,7 +67,7 @@ export const Header: React.FC = ({ project, views }) => { views, )} - +