Styling
This commit is contained in:
parent
2190833c65
commit
46cfedb963
2 changed files with 3 additions and 3 deletions
|
@ -18,7 +18,7 @@ function MenuItem(props: { href: string; children: JSXElement }): JSXElement {
|
|||
function Menu(): JSXElement {
|
||||
const login_ctx = useContext(LoginContext);
|
||||
return (
|
||||
<ul class="menu md:menu-horizontal rounded-box">
|
||||
<ul class="menu md:menu-horizontal space-y-2 md:space-x-2 md:space-y-0 rounded-box">
|
||||
<MenuItem href="/">Home</MenuItem>
|
||||
{login_ctx?.token() != "" && <MenuItem href="/new">New Post</MenuItem>}
|
||||
</ul>
|
||||
|
@ -54,7 +54,7 @@ export function Navbar(): JSXElement {
|
|||
};
|
||||
|
||||
return (
|
||||
<div class="navbar text-neutral-content max-w-3xl max-w rounded-box my-4">
|
||||
<div class="navbar text-neutral-content max-w-3xl max-w rounded-box md:my-4">
|
||||
<div class="flex-1">
|
||||
<A href={"/"} class="btn btn-ghost normal-case text-xl">
|
||||
FrostByte
|
||||
|
|
|
@ -44,7 +44,7 @@ function Root(): JSXElement {
|
|||
<div class="flex flex-col items-center">
|
||||
<Navbar />
|
||||
<LoginModal />
|
||||
<div class="flex flex-col items-center w-full md:w-96 px-2 space-y-2">
|
||||
<div class="flex flex-col items-center w-full md:max-w-3xl px-2 space-y-2">
|
||||
<Primary />
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue