The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
pages and menus
Timur Ercanca6fb819c883
diff --git a/apps/web/components/layout.tsx b/apps/web/components/layout.tsxindex 402ca4642..c442eb279 100644--- a/apps/web/components/layout.tsx+++ b/apps/web/components/layout.tsx@@ -19,7 +19,7 @@ const user = {};const navigation = [{ name: "Dashboard", href: "/dashboard", current: true },- { name: "Team", href: "/team", current: false },+ { name: "Documents", href: "/documents", current: false },{ name: "Settings", href: "/settings" },];const userNavigation = [diff --git a/apps/web/components/login.tsx b/apps/web/components/login.tsxindex ced1ace91..3e3c9cc95 100644--- a/apps/web/components/login.tsx+++ b/apps/web/components/login.tsx@@ -1,4 +1,5 @@import { LockClosedIcon } from "@heroicons/react/20/solid";+import Link from "next/link";import Logo from "./logo";export default function Example() {@@ -75,18 +76,17 @@ export default function Example() {</div><div>- <button- type="submit"- className="group relative flex w-full justify-center rounded-md border border-transparent bg-neon py-2 px-4 text-sm font-medium text-white hover:bg-neon-dark focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"- >- <span className="absolute inset-y-0 left-0 flex items-center pl-3">- <LockClosedIcon- className="h-5 w-5 text-neon-dark group-hover:text-neon"- aria-hidden="true"- />- </span>- Sign in- </button>+ <Link href="/dashboard">+ <button className="group relative flex w-full justify-center rounded-md border border-transparent bg-neon py-2 px-4 text-sm font-medium text-white hover:bg-neon-dark focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">+ <span className="absolute inset-y-0 left-0 flex items-center pl-3">+ <LockClosedIcon+ className="h-5 w-5 text-neon-dark group-hover:text-neon"+ aria-hidden="true"+ />+ </span>+ Sign in+ </button>+ </Link></div></form></div>diff --git a/apps/web/components/settings.tsx b/apps/web/components/settings.tsxindex f2ca94d91..72e238c2b 100644--- a/apps/web/components/settings.tsx+++ b/apps/web/components/settings.tsx@@ -22,9 +22,9 @@ const user = {const subNavigation = [{ name: "Profile", href: "#", icon: UserCircleIcon, current: true },- { name: "Account", href: "#", icon: CogIcon, current: false },{ name: "Password", href: "#", icon: KeyIcon, current: false },- { name: "Integrations", href: "#", icon: SquaresPlusIcon, current: false },+ { name: "Account", href: "#", icon: CogIcon, current: false },+ { name: "Team", href: "#", icon: SquaresPlusIcon, current: false },];function classNames(...classes: any) {diff --git a/apps/web/next.config.js b/apps/web/next.config.jsindex 5a488ab4b..6e7dcb9d1 100644--- a/apps/web/next.config.js+++ b/apps/web/next.config.js@@ -1,5 +1,14 @@/** @type {import('next').NextConfig} */const nextConfig = {+ async redirects() {+ return [+ {+ source: "/",+ destination: "/login",+ permanent: true,+ },+ ];+ },reactStrictMode: true,swcMinify: true,distDir: "build",diff --git a/apps/web/pages/team.tsx b/apps/web/pages/documents.tsxsimilarity index 89%rename from apps/web/pages/team.tsxrename to apps/web/pages/documents.tsxindex c7a4c1c83..f3bf7ae84 100644--- a/apps/web/pages/team.tsx+++ b/apps/web/pages/documents.tsx@@ -4,7 +4,7 @@ import Settings from "../components/settings";import type { NextPageWithLayout } from "./_app";const TeamPage: NextPageWithLayout = () => {- return <>This is the team page</>;+ return <>This is the documents page</>;};TeamPage.getLayout = function getLayout(page: ReactElement) {