feat: 支持后台管理跳转

This commit is contained in:
sealday 2024-04-06 17:11:27 +08:00
parent 29ed8025ed
commit 01f7a19de7
3 changed files with 16 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import SignoutButton from "@/components/signout-button";
import Logo from "@/components/logo";
import BackButton from "@/components/back-button";
import Link from "next/link";
import { AdminButton } from "@/components/admin-button";
const inter = Inter({ subsets: ["latin"] });
@ -49,6 +50,7 @@ export default function RootLayout({
</nav>
<div className="join">
<BackButton className="btn join-item" />
<AdminButton className="btn join-item" />
<SignoutButton className="btn join-item" />
</div>
</div>

View File

@ -28,7 +28,7 @@ export default function SearchForm({
{item.name} - {item.artist}
</span>
<button className="text-green-500 hover:text-green-700">
Add
</button>
</div>
))}

View File

@ -0,0 +1,13 @@
import Link from "next/link";
export function AdminButton({ className }: { className?: string | undefined }) {
return (
<Link
className={className}
target="_blank"
href="https://tachy.daoyoucloud.com/apps/danmu-sim/admin"
>
</Link>
);
}