Css related fixes for centering navbar
This commit is contained in:
parent
867eb24d5d
commit
075a684ee3
1 changed files with 28 additions and 20 deletions
|
@ -31,9 +31,16 @@ export function Navbar() {
|
|||
let login_ctx = useContext(LoginContext);
|
||||
|
||||
return (
|
||||
<div class="navbar bg-base-100 max-w-3xl max-w flex justify-around">
|
||||
<A href={"/"} class="btn btn-ghost normal-case text-xl">FrostByte</A>
|
||||
<div class="navbar bg-base-100 max-w-3xl max-w flex">
|
||||
<div class="flex-1">
|
||||
<A href={"/"} class="btn btn-ghost normal-case text-xl">
|
||||
FrostByte
|
||||
</A>
|
||||
</div>
|
||||
<div class="">
|
||||
<Menu />
|
||||
</div>
|
||||
<div class="flex-1 justify-end">
|
||||
<A
|
||||
href="#"
|
||||
class="btn btn-ghost normal-case text-sm"
|
||||
|
@ -52,6 +59,7 @@ export function Navbar() {
|
|||
{login_ctx?.token() != "" ? login_ctx?.username() : "Login"}
|
||||
</A>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue