feat: some changes and admin
This commit is contained in:
25
nextjs/src/app/admin/layout.tsx
Normal file
25
nextjs/src/app/admin/layout.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import type { Metadata } from 'next';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
import Link from 'next/link';
|
||||
|
||||
import style from '@/styles/admin.module.scss';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Admin — Catherine League',
|
||||
robots: 'noindex, nofollow',
|
||||
};
|
||||
|
||||
export default function AdminRootLayout({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<div className={style.wrap}>
|
||||
<nav className={style.nav}>
|
||||
<Link href="/">← Site</Link>
|
||||
<Link href="/admin/login">Login</Link>
|
||||
<Link href="/admin/register">Register</Link>
|
||||
<Link href="/admin">Dashboard</Link>
|
||||
</nav>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user