mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
pages and menus
This commit is contained in:
@ -19,7 +19,7 @@ const user = {
|
|||||||
};
|
};
|
||||||
const navigation = [
|
const navigation = [
|
||||||
{ name: "Dashboard", href: "/dashboard", current: true },
|
{ name: "Dashboard", href: "/dashboard", current: true },
|
||||||
{ name: "Team", href: "/team", current: false },
|
{ name: "Documents", href: "/documents", current: false },
|
||||||
{ name: "Settings", href: "/settings" },
|
{ name: "Settings", href: "/settings" },
|
||||||
];
|
];
|
||||||
const userNavigation = [
|
const userNavigation = [
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
import { LockClosedIcon } from "@heroicons/react/20/solid";
|
import { LockClosedIcon } from "@heroicons/react/20/solid";
|
||||||
|
import Link from "next/link";
|
||||||
import Logo from "./logo";
|
import Logo from "./logo";
|
||||||
|
|
||||||
export default function Example() {
|
export default function Example() {
|
||||||
@ -75,18 +76,17 @@ export default function Example() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<button
|
<Link href="/dashboard">
|
||||||
type="submit"
|
<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">
|
||||||
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
|
||||||
<span className="absolute inset-y-0 left-0 flex items-center pl-3">
|
className="h-5 w-5 text-neon-dark group-hover:text-neon"
|
||||||
<LockClosedIcon
|
aria-hidden="true"
|
||||||
className="h-5 w-5 text-neon-dark group-hover:text-neon"
|
/>
|
||||||
aria-hidden="true"
|
</span>
|
||||||
/>
|
Sign in
|
||||||
</span>
|
</button>
|
||||||
Sign in
|
</Link>
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -22,9 +22,9 @@ const user = {
|
|||||||
|
|
||||||
const subNavigation = [
|
const subNavigation = [
|
||||||
{ name: "Profile", href: "#", icon: UserCircleIcon, current: true },
|
{ name: "Profile", href: "#", icon: UserCircleIcon, current: true },
|
||||||
{ name: "Account", href: "#", icon: CogIcon, current: false },
|
|
||||||
{ name: "Password", href: "#", icon: KeyIcon, 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) {
|
function classNames(...classes: any) {
|
||||||
|
|||||||
@ -1,5 +1,14 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
|
async redirects() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
source: "/",
|
||||||
|
destination: "/login",
|
||||||
|
permanent: true,
|
||||||
|
},
|
||||||
|
];
|
||||||
|
},
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
swcMinify: true,
|
swcMinify: true,
|
||||||
distDir: "build",
|
distDir: "build",
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import Settings from "../components/settings";
|
|||||||
import type { NextPageWithLayout } from "./_app";
|
import type { NextPageWithLayout } from "./_app";
|
||||||
|
|
||||||
const TeamPage: NextPageWithLayout = () => {
|
const TeamPage: NextPageWithLayout = () => {
|
||||||
return <>This is the team page</>;
|
return <>This is the documents page</>;
|
||||||
};
|
};
|
||||||
|
|
||||||
TeamPage.getLayout = function getLayout(page: ReactElement) {
|
TeamPage.getLayout = function getLayout(page: ReactElement) {
|
||||||
Reference in New Issue
Block a user