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);
|
let login_ctx = useContext(LoginContext);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class="navbar bg-base-100 max-w-3xl max-w flex justify-around">
|
<div class="navbar bg-base-100 max-w-3xl max-w flex">
|
||||||
<A href={"/"} class="btn btn-ghost normal-case text-xl">FrostByte</A>
|
<div class="flex-1">
|
||||||
|
<A href={"/"} class="btn btn-ghost normal-case text-xl">
|
||||||
|
FrostByte
|
||||||
|
</A>
|
||||||
|
</div>
|
||||||
|
<div class="">
|
||||||
<Menu />
|
<Menu />
|
||||||
|
</div>
|
||||||
|
<div class="flex-1 justify-end">
|
||||||
<A
|
<A
|
||||||
href="#"
|
href="#"
|
||||||
class="btn btn-ghost normal-case text-sm"
|
class="btn btn-ghost normal-case text-sm"
|
||||||
|
@ -52,6 +59,7 @@ export function Navbar() {
|
||||||
{login_ctx?.token() != "" ? login_ctx?.username() : "Login"}
|
{login_ctx?.token() != "" ? login_ctx?.username() : "Login"}
|
||||||
</A>
|
</A>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue