From dfb0c4d31e26a9ee3271a59101e6ab4dcf3557aa Mon Sep 17 00:00:00 2001 From: Sara Date: Mon, 14 Oct 2024 08:58:36 -0700 Subject: [PATCH] Update 404 page [#57] --- .../core/components/ButtonLink/ButtonLink.tsx | 50 +++++++++++++++++++ src/app/not-found.tsx | 23 +++++++-- 2 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 src/app/core/components/ButtonLink/ButtonLink.tsx diff --git a/src/app/core/components/ButtonLink/ButtonLink.tsx b/src/app/core/components/ButtonLink/ButtonLink.tsx new file mode 100644 index 0000000..abafed6 --- /dev/null +++ b/src/app/core/components/ButtonLink/ButtonLink.tsx @@ -0,0 +1,50 @@ +import { forwardRef, Ref, type ReactNode } from "react"; +import { + TButtonSize, + TButtonVariant, + ButtonVariants, + ButtonSizes, +} from "@/app/core/components/Button/Button"; +import clsx from "clsx"; + +interface IProps { + children: ReactNode; + size?: TButtonSize; + href: string; + additionalClasses: string; + variant?: TButtonVariant; + fullWidth?: boolean; +} + +const ButtonLink = forwardRef( + ( + { + children, + href = "/", + additionalClasses = "", + size = "regular", + variant = "primary", + fullWidth = false, + }: IProps, + ref: Ref + ) => { + return ( + + {children} + + ); + } +); + +ButtonLink.displayName = "ButtonLink"; + +export default ButtonLink; diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx index 23b0429..9c0a18a 100644 --- a/src/app/not-found.tsx +++ b/src/app/not-found.tsx @@ -1,11 +1,26 @@ -import Link from "next/link"; +import ButtonLink from "@/app/core/components/ButtonLink/ButtonLink"; export default function NotFound() { return (
-

Not Found

-

Could not find requested resource

- Return Home +
+

+ 404 +

+

+ Page not found +

+
+
+

+ Post-Capitalism can only be achieved through perserverance. +

+

Please try again later.

+
+ + Return home + +
); }