tasks 5 & 6: update /admin UI refs to /manage, full-width manage layout
This commit is contained in:
@@ -16,8 +16,8 @@ export default async function ManageLayout({
|
||||
}) {
|
||||
return (
|
||||
<section className='w-full flex flex-col gap-8 py-16'>
|
||||
<div className='px-4 md:px-[10svw]'>
|
||||
<div className='max-w-7xl mx-auto'>
|
||||
<div className='px-4 md:px-8 lg:px-12'>
|
||||
<div className='mx-auto'>
|
||||
<h1 className='text-2xl sm:text-3xl font-bold'>Manage</h1>
|
||||
<p className='text-sm text-text/60 mt-1'>
|
||||
Manage your platform
|
||||
@@ -25,8 +25,8 @@ export default async function ManageLayout({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className='px-4 md:px-[10svw]'>
|
||||
<div className='max-w-7xl mx-auto flex flex-col md:flex-row gap-6'>
|
||||
<div className='px-4 md:px-8 lg:px-12'>
|
||||
<div className='mx-auto flex flex-col md:flex-row gap-6'>
|
||||
<ManageSidebar />
|
||||
<div className='flex-1 min-w-0'>{children}</div>
|
||||
</div>
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ export default function robots(): MetadataRoute.Robots {
|
||||
{
|
||||
userAgent: "*",
|
||||
allow: "/",
|
||||
disallow: ["/admin", "/api"],
|
||||
disallow: ["/manage", "/api"],
|
||||
},
|
||||
],
|
||||
sitemap: "https://deckyvault.xyz/sitemap.xml",
|
||||
|
||||
@@ -307,12 +307,12 @@ export default function Navbar() {
|
||||
<>
|
||||
<div className='my-1 border-t border-white/10' />
|
||||
<Link
|
||||
href="/admin"
|
||||
href="/manage"
|
||||
onClick={() => setUserMenuOpen(false)}
|
||||
className="w-full flex items-center gap-2 px-3 py-2 text-sm text-primary/80 hover:text-primary hover:bg-primary/5 transition-colors cursor-pointer"
|
||||
>
|
||||
<ShieldIcon className="h-4 w-4" />
|
||||
Admin
|
||||
Manage
|
||||
</Link>
|
||||
</>
|
||||
)}
|
||||
@@ -435,12 +435,12 @@ export default function Navbar() {
|
||||
))}
|
||||
{session.user.role === "admin" && (
|
||||
<Link
|
||||
href="/admin"
|
||||
href="/manage"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
className="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-primary/80 hover:text-primary hover:bg-primary/5 transition-colors cursor-pointer"
|
||||
>
|
||||
<ShieldIcon className="h-4 w-4" />
|
||||
Admin
|
||||
Manage
|
||||
</Link>
|
||||
)}
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user