From d135df827a2d98812ee68dc969e479167be97126 Mon Sep 17 00:00:00 2001 From: Mythie Date: Fri, 21 Apr 2023 21:51:20 +1000 Subject: [PATCH] fix: improve general styling Improve the general styling of the app by removing floats and replacing it `flex`. Additionally, improve the constrast of certain parts of the app and add some transitions to hover changes. --- apps/web/components/editor/pdf-signer.tsx | 3 +- .../components/editor/signature-dialog.tsx | 62 ++++++++++--------- apps/web/pages/dashboard.tsx | 21 ++++--- apps/web/pages/documents.tsx | 28 ++++----- apps/web/tailwind.config.js | 45 +++++++++++++- packages/features/uploadDocument.ts | 9 ++- packages/ui/components/button/Button.tsx | 8 +-- 7 files changed, 113 insertions(+), 63 deletions(-) diff --git a/apps/web/components/editor/pdf-signer.tsx b/apps/web/components/editor/pdf-signer.tsx index 797745a4c..a4a4cd2c6 100644 --- a/apps/web/components/editor/pdf-signer.tsx +++ b/apps/web/components/editor/pdf-signer.tsx @@ -80,12 +80,11 @@ export default function PDFSigner(props: any) { : props.document.User.email}{" "} would like you to sign this document.

-

+

- + /> + +

+ + + +
) : ( diff --git a/apps/web/pages/dashboard.tsx b/apps/web/pages/dashboard.tsx index 324560f5a..5d3d93d94 100644 --- a/apps/web/pages/dashboard.tsx +++ b/apps/web/pages/dashboard.tsx @@ -1,4 +1,4 @@ -import { ReactElement } from "react"; +import { ChangeEvent, ReactElement } from "react"; import Head from "next/head"; import Link from "next/link"; import { uploadDocument } from "@documenso/features"; @@ -62,26 +62,27 @@ const DashboardPage: NextPageWithLayout = (props: any) => {
{stats.map((item) => ( -
-
+
+
{item.name}
-
+
{getStat(item.name, props)}
))}
+
{ + onChange={(event: ChangeEvent) => { uploadDocument(event); }} hidden @@ -91,9 +92,10 @@ const DashboardPage: NextPageWithLayout = (props: any) => { onClick={() => { document?.getElementById("fileUploadHelper")?.click(); }} - className="hover:border-neon relative block w-full cursor-pointer rounded-lg border-2 border-dashed border-gray-300 p-12 text-center focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"> + className="group hover:border-neon-600 duration-200 relative block w-full cursor-pointer rounded-lg border-2 border-dashed border-gray-300 p-12 text-center focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"> + { d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m3.75 9v6m3-3H9m1.5-12H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" /> - + + Add a new PDF document.
diff --git a/apps/web/pages/documents.tsx b/apps/web/pages/documents.tsx index dbd8f7d80..af6752d47 100644 --- a/apps/web/pages/documents.tsx +++ b/apps/web/pages/documents.tsx @@ -142,26 +142,26 @@ const DocumentsPage: NextPageWithLayout = (props: any) => { -
-
+
+
{filteredDocuments.length != 1 ? filteredDocuments.length + " Documents" : "1 Document"}
-