From adb347d043b09072e06a128b492fc26c606ad557 Mon Sep 17 00:00:00 2001 From: William Grant Date: Fri, 31 May 2024 16:09:43 +1000 Subject: [PATCH 1/3] feat: added responsive not found page --- app/(Site)/not-found.tsx | 26 ++++++++++++++++++++++++++ components/DevModal.tsx | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 app/(Site)/not-found.tsx diff --git a/app/(Site)/not-found.tsx b/app/(Site)/not-found.tsx new file mode 100644 index 0000000..6cd5785 --- /dev/null +++ b/app/(Site)/not-found.tsx @@ -0,0 +1,26 @@ +import Button from '@/components/Button/Button'; +import clsx from 'clsx'; + +export default async function NotFound() { + return ( +
+ {/* https://github.com/vercel/next.js/issues/45620 */} + Page not found - Session Token +
+ 404 +
+
+

+ {"Sorry! We couldn't find the page you were looking for."} +

+ +
+
+
+ ); +} diff --git a/components/DevModal.tsx b/components/DevModal.tsx index c921766..ffb2589 100644 --- a/components/DevModal.tsx +++ b/components/DevModal.tsx @@ -81,7 +81,7 @@ export const DevModal = ({ slugs }: { slugs: Array }) => { return () => { document.removeEventListener('keydown', handleKeyDown); }; - }, [lastSearchChar, lastSearchIndex]); + }, [lastSearchChar, lastSearchIndex, slugs]); return ( setIsModalOpen(false)}> From c9bfb0aab82216d57e6f7fd9806f1a334a9bdaef Mon Sep 17 00:00:00 2001 From: William Grant Date: Fri, 31 May 2024 16:26:36 +1000 Subject: [PATCH 2/3] feat: added fix for portable text link highlighting --- .../FlexibleContent/Modules/FaqsList/FaqsList.module.sass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/FlexibleContent/Modules/FaqsList/FaqsList.module.sass b/components/FlexibleContent/Modules/FaqsList/FaqsList.module.sass index 1c2a98c..ef34745 100644 --- a/components/FlexibleContent/Modules/FaqsList/FaqsList.module.sass +++ b/components/FlexibleContent/Modules/FaqsList/FaqsList.module.sass @@ -85,10 +85,12 @@ &:not(:last-child) margin-bottom: 15px + a + color: var(--color-primary) @media(max-width: 500px) .Outer display: block legend - display: none \ No newline at end of file + display: none From 33706ec68cd1d9715550fbdef4518cc82244fc2f Mon Sep 17 00:00:00 2001 From: William Grant Date: Fri, 31 May 2024 16:26:58 +1000 Subject: [PATCH 3/3] fix: resolve sharp path --- .env.local.template | 1 + 1 file changed, 1 insertion(+) diff --git a/.env.local.template b/.env.local.template index e15b010..ec193d6 100644 --- a/.env.local.template +++ b/.env.local.template @@ -1,3 +1,4 @@ +NEXT_SHARP_PATH=node_modules/.bin/sharp NEXT_PUBLIC_SANITY_DATASET= NEXT_PUBLIC_SANITY_PROJECT_ID= SANITY_API_DATASET=