restore link in navbar and separate badge dropdown

This commit is contained in:
Nathaniel Tampus
2023-03-06 13:21:29 +08:00
parent 754d149c4a
commit ef9e23338b

View File

@@ -1,36 +1,40 @@
import { IconUser, IconSun, IconMoon } from "@tabler/icons-react";
import Link from "next/link";
export default function Navbar() {
return (
<header className="navbar mx-1 w-auto justify-center drop-shadow-sm md:mx-16 lg:mx-40">
<div className="flex-1">
<span className="btn btn-ghost no-animation cursor-default gap-1 text-xl normal-case hover:bg-transparent">
<div className="flex flex-1 items-center gap-1">
<Link
href="/"
className="btn btn-ghost no-animation p-0 text-xl normal-case hover:bg-transparent"
>
chessu
<div className="dropdown hover:dropdown-open">
<label tabIndex={0} className="badge badge-sm mt-1 cursor-help">
alpha
</label>
<div
tabIndex={0}
className="dropdown-content card card-compact bg-primary text-primary-content w-64 shadow"
>
<div className="card-body cursor-default">
<p className="text-left text-xs">
This project is a work in progress. You can view the roadmap{" "}
<a
href="https://github.com/users/nizewn/projects/2"
target="_blank"
rel="noreferrer"
className="link"
>
here
</a>
.
</p>
</div>
</Link>
<div className="dropdown dropdown-right hover:dropdown-open">
<label tabIndex={0} className="badge badge-sm cursor-help">
alpha
</label>
<div
tabIndex={0}
className="dropdown-content card card-compact bg-primary text-primary-content w-64 shadow"
>
<div className="card-body cursor-default">
<p className="text-left text-xs">
This project is a work in progress. You can view the roadmap{" "}
<a
href="https://github.com/users/nizewn/projects/2"
target="_blank"
rel="noreferrer"
className="link"
>
here
</a>
.
</p>
</div>
</div>
</span>
</div>
</div>
<div className="flex-none">
<div className="btn btn-ghost btn-circle">