Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions srcs/nginx/src/components/molecules/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,26 @@ export const NavBar = () => {

return (
<nav
className={`mb-3 bg-teal-800/30 p-5 w-full flex flex-row ${!isLoggedIn ? 'justify-center' : 'justify-between'}`}
className={`mb-2 bg-teal-800/30 p-5 w-full flex flex-row sm:gap-4 ${!isLoggedIn ? 'justify-center' : 'justify-between'}`}
>
<div className="lg:text-3xl hidden sm:block group font-quantico[900] font-stretch-extra-expanded font-bold tracking-wider self-center uppercase">
<span>Sp</span>
<span className="lowercase inline-block duration-500 group-hover:rotate-180">i</span>
<span>n Pong</span>
<Link to="/home">
<span>Sp</span>
<span className="lowercase inline-block duration-500 group-hover:rotate-180">i</span>
<span>n Pong</span>
</Link>
</div>
{user && isLoggedIn && (
<>
<MenuElement action={MenuActions.PLAY} items={playItems} scale={0.7}></MenuElement>
<MenuElement action={MenuActions.STATS} items={statsItems}></MenuElement>
<MenuElement action={MenuActions.PROFILE} items={profileItems}></MenuElement>
<Link to="/game/local">
<MenuElement action={MenuActions.PLAY} items={playItems} scale={0.7}></MenuElement>
</Link>
<Link to="/stats">
<MenuElement action={MenuActions.STATS} items={statsItems}></MenuElement>
</Link>
<Link to="/me">
<MenuElement action={MenuActions.PROFILE} items={profileItems}></MenuElement>
</Link>
</>
)}

Expand Down
Loading