diff --git a/apps/web/package.json b/apps/web/package.json index 0af05f533..c7db16aa6 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -24,13 +24,14 @@ "next": "13.4.1", "next-auth": "^4.22.1", "next-plausible": "^3.7.2", + "next-themes": "^0.2.1", "perfect-freehand": "^1.2.0", "react": "18.2.0", - "react-pdf": "^7.1.1", "react-dom": "18.2.0", "react-dropzone": "^14.2.3", "react-hook-form": "^7.43.9", "react-icons": "^4.8.0", + "react-pdf": "^7.1.1", "typescript": "5.0.4", "zod": "^3.21.4" }, diff --git a/apps/web/src/app/(dashboard)/dashboard/page.tsx b/apps/web/src/app/(dashboard)/dashboard/page.tsx index 849917ff2..b6bad38a9 100644 --- a/apps/web/src/app/(dashboard)/dashboard/page.tsx +++ b/apps/web/src/app/(dashboard)/dashboard/page.tsx @@ -48,7 +48,7 @@ export default async function DashboardPage() {

Recent Documents

-
+
@@ -65,7 +65,7 @@ export default async function DashboardPage() { {document.title} diff --git a/apps/web/src/app/(dashboard)/documents/[id]/page.tsx b/apps/web/src/app/(dashboard)/documents/[id]/page.tsx index 40ee92e97..e84d463e4 100644 --- a/apps/web/src/app/(dashboard)/documents/[id]/page.tsx +++ b/apps/web/src/app/(dashboard)/documents/[id]/page.tsx @@ -45,7 +45,7 @@ export default async function DocumentPage({ params }: DocumentPageProps) { className="mt-4 max-w-xs truncate text-2xl font-semibold md:text-3xl" title={document.title} > - Document.pdf + {document.title} diff --git a/apps/web/src/app/(dashboard)/documents/page.tsx b/apps/web/src/app/(dashboard)/documents/page.tsx index c3f6d5cc4..f461d58e2 100644 --- a/apps/web/src/app/(dashboard)/documents/page.tsx +++ b/apps/web/src/app/(dashboard)/documents/page.tsx @@ -1,6 +1,6 @@ import Link from 'next/link'; -import { CheckCircle, Clock, Plus } from 'lucide-react'; +import { Plus } from 'lucide-react'; import { getRequiredServerComponentSession } from '@documenso/lib/next-auth/get-server-session'; import { findDocuments } from '@documenso/lib/server-only/document/find-documents'; diff --git a/apps/web/src/app/(dashboard)/layout.tsx b/apps/web/src/app/(dashboard)/layout.tsx index 9659978ec..90a0afda8 100644 --- a/apps/web/src/app/(dashboard)/layout.tsx +++ b/apps/web/src/app/(dashboard)/layout.tsx @@ -5,10 +5,7 @@ import { redirect } from 'next/navigation'; import { getServerSession } from 'next-auth'; import { NEXT_AUTH_OPTIONS } from '@documenso/lib/next-auth/auth-options'; -import { - getRequiredServerComponentSession, - getServerComponentSession, -} from '@documenso/lib/next-auth/get-server-session'; +import { getRequiredServerComponentSession } from '@documenso/lib/next-auth/get-server-session'; import { Header } from '~/components/(dashboard)/layout/header'; import { NextAuthProvider } from '~/providers/next-auth'; diff --git a/apps/web/src/app/(unauthenticated)/signin/page.tsx b/apps/web/src/app/(unauthenticated)/signin/page.tsx index a3275d0b5..800ff9b9a 100644 --- a/apps/web/src/app/(unauthenticated)/signin/page.tsx +++ b/apps/web/src/app/(unauthenticated)/signin/page.tsx @@ -10,17 +10,23 @@ export default function SignInPage() {
- +

Sign in to your account

-

Welcome back, we are lucky to have you.

+

+ Welcome back, we are lucky to have you. +

-

+

Don't have an account?{' '} Sign up diff --git a/apps/web/src/app/(unauthenticated)/signup/page.tsx b/apps/web/src/app/(unauthenticated)/signup/page.tsx index 58bddea1a..b398e6990 100644 --- a/apps/web/src/app/(unauthenticated)/signup/page.tsx +++ b/apps/web/src/app/(unauthenticated)/signup/page.tsx @@ -10,20 +10,24 @@ export default function SignUpPage() {

- +

Create a shiny, new Documenso Account ✨

-

+

Create your account and start using state-of-the-art document signing. Open and beautiful signing is within your grasp.

-

+

Already have an account?{' '} Sign in instead diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index b4af6d7e5..9ce82a4c0 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -3,6 +3,7 @@ import { Inter } from 'next/font/google'; import { TrpcProvider } from '@documenso/trpc/react'; import { Toaster } from '@documenso/ui/primitives/toaster'; +import { ThemeProvider } from '~/providers/next-theme'; import { PlausibleProvider } from '~/providers/plausible'; import './globals.css'; @@ -45,7 +46,9 @@ export default function RootLayout({ children }: { children: React.ReactNode }) - {children} + + {children} + diff --git a/apps/web/src/components/(dashboard)/document-dropzone/document-dropzone.tsx b/apps/web/src/components/(dashboard)/document-dropzone/document-dropzone.tsx index 2ce754e6c..c3c53d32e 100644 --- a/apps/web/src/components/(dashboard)/document-dropzone/document-dropzone.tsx +++ b/apps/web/src/components/(dashboard)/document-dropzone/document-dropzone.tsx @@ -2,6 +2,7 @@ import { Variants, motion } from 'framer-motion'; import { Plus } from 'lucide-react'; +import { useTheme } from 'next-themes'; import { useDropzone } from 'react-dropzone'; import { cn } from '@documenso/ui/lib/utils'; @@ -91,6 +92,8 @@ export const DocumentDropzone = ({ className, onDrop, ...props }: DocumentDropzo }, }); + const { theme } = useTheme(); + return ( @@ -111,39 +118,41 @@ export const DocumentDropzone = ({ className, onDrop, ...props }: DocumentDropzo {/* */}

-
-
-
+
+
+
-
-
-
+
+
+
-

Add a document

+

+ Add a document +

-

Drag & drop your document here.

+

Drag & drop your document here.

diff --git a/apps/web/src/components/(dashboard)/layout/desktop-nav.tsx b/apps/web/src/components/(dashboard)/layout/desktop-nav.tsx index 97851a534..d0927c323 100644 --- a/apps/web/src/components/(dashboard)/layout/desktop-nav.tsx +++ b/apps/web/src/components/(dashboard)/layout/desktop-nav.tsx @@ -16,17 +16,23 @@ export const DesktopNav = ({ className, ...props }: DesktopNavProps) => {