guessName+Fixes
This commit is contained in:
@@ -3,6 +3,8 @@ import Logo from "../../assets/pictures/Logo"
|
||||
import { Link, useNavigate } from "react-router-dom"
|
||||
|
||||
const navLinkClass = "px-3 py-2 rounded-lg text-white transition-all duration-200 hover:bg-white/10"
|
||||
const navLinkClassPlay =
|
||||
"px-4 py-2 rounded-lg text-white bg-white/12 hover:bg-white/20 transition-all duration-200"
|
||||
|
||||
const Navbar = () => {
|
||||
const [menuOpen, setMenuOpen] = useState(false)
|
||||
@@ -55,6 +57,11 @@ const Navbar = () => {
|
||||
<Link to="/companies" className={navLinkClass}>
|
||||
Contact
|
||||
</Link>
|
||||
{!isLoggedIn && (
|
||||
<Link to="/home" className={navLinkClassPlay}>
|
||||
Play
|
||||
</Link>
|
||||
)}
|
||||
{isLoggedIn && (
|
||||
<button
|
||||
onClick={handleLogout}
|
||||
@@ -129,6 +136,19 @@ const Navbar = () => {
|
||||
<Link to="/companies" className={navLinkClass}>
|
||||
Contact
|
||||
</Link>
|
||||
{!isLoggedIn && (
|
||||
<div className="px-2">
|
||||
<button
|
||||
onClick={() => {
|
||||
setMenuOpen(false)
|
||||
navigate("/home")
|
||||
}}
|
||||
className="w-full text-left px-3 py-2 rounded-lg bg-white/10 hover:bg-white/20 text-white transition-all"
|
||||
>
|
||||
Játék
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
{isLoggedIn && (
|
||||
<div className="flex justify-end px-2 pb-2">
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user