From 92d6f59d7d7cf4e292d7c89e3de9b5ea1c43e7df Mon Sep 17 00:00:00 2001 From: ethan 3 Date: Tue, 6 Aug 2024 07:00:01 +0000 Subject: [PATCH] custom 404 page for NGO --- components/NotFoundCard.tsx | 20 ++ package.json | 12 +- pages/_error.tsx | 28 +- pnpm-lock.yaml | 534 +++++++++++++++++++++--------------- styles/globals.less | 11 + 5 files changed, 376 insertions(+), 229 deletions(-) create mode 100644 components/NotFoundCard.tsx diff --git a/components/NotFoundCard.tsx b/components/NotFoundCard.tsx new file mode 100644 index 0000000..3cf6891 --- /dev/null +++ b/components/NotFoundCard.tsx @@ -0,0 +1,20 @@ +import { ErrorProps } from 'next/error'; +import { FC } from 'react'; + +import { i18n } from '../models/Translation'; + +export const NotFoundCard: FC = ({ title }) => + i18n.currentLanguage.startsWith('zh') ? ( +