From 55e4927912d9f7e5707cbd154e999d92666bbb18 Mon Sep 17 00:00:00 2001 From: litaesther10 Date: Wed, 15 Feb 2023 20:52:12 +0100 Subject: [PATCH] Custom 500 page created, started Buttons component customise. --- apps/web/components/logo.tsx | 3 +- apps/web/pages/404.jsx | 4 ++- apps/web/pages/500.jsx | 37 +++++++++++++++++++++--- packages/ui/components/button/Button.tsx | 7 +++-- 4 files changed, 42 insertions(+), 9 deletions(-) diff --git a/apps/web/components/logo.tsx b/apps/web/components/logo.tsx index 9bce939fa..5a70b8a56 100644 --- a/apps/web/components/logo.tsx +++ b/apps/web/components/logo.tsx @@ -1,3 +1,4 @@ +import { classNames } from "@documenso/lib"; import Link from "next/link"; export default function Logo(props: any) { @@ -17,7 +18,7 @@ export default function Logo(props: any) { diff --git a/apps/web/pages/404.jsx b/apps/web/pages/404.jsx index cda9ebbdc..615766083 100644 --- a/apps/web/pages/404.jsx +++ b/apps/web/pages/404.jsx @@ -7,7 +7,9 @@ export default function Custom404() { return ( <>
- +
+ +

404

diff --git a/apps/web/pages/500.jsx b/apps/web/pages/500.jsx index b344d947d..984b94ad6 100644 --- a/apps/web/pages/500.jsx +++ b/apps/web/pages/500.jsx @@ -1,10 +1,39 @@ -import Link from "next/link"; +import Logo from "../components/logo"; +import { Button } from "@documenso/ui"; +import { ArrowSmallLeftIcon } from "@heroicons/react/20/solid"; +import { EllipsisVerticalIcon } from "@heroicons/react/20/solid"; -export default function FiveUhOh() { +export default function Custom500() { return ( <> -

500 - Something went wrong.

- Go back home +
+
+ +
+ +
+

+ 500 + + | + +

+

+ + Something went wrong. +

+
+ +
+
+
); } diff --git a/packages/ui/components/button/Button.tsx b/packages/ui/components/button/Button.tsx index d5f9bb74d..aaa02c505 100644 --- a/packages/ui/components/button/Button.tsx +++ b/packages/ui/components/button/Button.tsx @@ -6,10 +6,11 @@ export function Button(props: any) { const isLink = typeof props.href !== "undefined"; const { color = "primary", icon, disabled, onClick } = props; const baseStyles = - "inline-flex items-center justify-center min-w-[80px] rounded-md border border-transparent px-4 py-2 text-sm font-medium shadow-sm disabled:bg-gray-300"; - const primaryStyles = "text-white bg-neon hover:bg-neon-dark"; + "inline-flex items-center justify-center min-w-[80px] rounded-2xl border border-transparent px-4 py-3 text-sm font-medium shadow-sm disabled:bg-gray-300 transition-all duration-300 "; + const primaryStyles = + "text-gray-900 bg-neon hover:bg-neon-dark "; const secondaryStyles = - "border-gray-300 bg-white text-gray-700 hover:bg-gray-50"; + "border-brown/30 bg-white text-brown hover:bg-brown hover:text-white hover:shadow-xl shadow-md hover:shadow-3xl shadow-gray-500/20 hover:shadow-slate-600/30 hover:-translate-y-1 "; return isLink ? (