pages and menus

This commit is contained in:
Timur Ercan
2022-12-08 16:04:22 +01:00
parent 08b6957b27
commit ca6fb819c8
5 changed files with 25 additions and 16 deletions

View File

@ -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 = [

View File

@ -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,10 +76,8 @@ 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"
>
<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"
@ -87,6 +86,7 @@ export default function Example() {
</span>
Sign in
</button>
</Link>
</div>
</form>
</div>

View File

@ -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) {

View File

@ -1,5 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
async redirects() {
return [
{
source: "/",
destination: "/login",
permanent: true,
},
];
},
reactStrictMode: true,
swcMinify: true,
distDir: "build",

View File

@ -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) {