|
|
|
@ -24,18 +24,20 @@ const NavBar = () => {
|
|
|
|
navRef.current.style.height = "100%";
|
|
|
|
navRef.current.style.height = "100%";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const logout = () => {
|
|
|
|
|
|
|
|
signOut()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let visitor = (
|
|
|
|
let visitor = (
|
|
|
|
<nav className={`${style['navbar']}`}>
|
|
|
|
<nav className={`${style['navbar']}`}>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="d-flex justify-content-center">
|
|
|
|
<div className="d-flex justify-content-center">
|
|
|
|
<Image
|
|
|
|
<Image
|
|
|
|
src={logo}
|
|
|
|
src={logo}
|
|
|
|
|
|
|
|
|
|
|
|
alt="thetiptop navigation logo big"
|
|
|
|
alt="thetiptop navigation logo big"
|
|
|
|
width={250}
|
|
|
|
width={250}
|
|
|
|
height={100}
|
|
|
|
height={100}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -45,7 +47,7 @@ const NavBar = () => {
|
|
|
|
<Link href="/contact" legacyBehavior><a className={style.link} >Contactez-nous</a></Link><p>|</p>
|
|
|
|
<Link href="/contact" legacyBehavior><a className={style.link} >Contactez-nous</a></Link><p>|</p>
|
|
|
|
{!session && <><Link href="/connexion" legacyBehavior><a className={style.link} >Connexion</a></Link></>}
|
|
|
|
{!session && <><Link href="/connexion" legacyBehavior><a className={style.link} >Connexion</a></Link></>}
|
|
|
|
{session && <><Link href="/mon-compte" legacyBehavior><a className={style.link} >Mon compte</a></Link><p>|</p></>}
|
|
|
|
{session && <><Link href="/mon-compte" legacyBehavior><a className={style.link} >Mon compte</a></Link><p>|</p></>}
|
|
|
|
{session && <><Link href="/" legacyBehavior><a onClick={() => signOut()} className={style.link} >Se déconnecter</a></Link></>}
|
|
|
|
{session && <><Link href="#" legacyBehavior><a onClick={() => logout()} className={style.link} >Se déconnecter</a></Link></>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{session && <span className={`${style.connexion} badge rounded-pill bg-light text-dark`}>Vous-êtes connecté <FiArrowRight /> {session.user.email}</span>}
|
|
|
|
{session && <span className={`${style.connexion} badge rounded-pill bg-light text-dark`}>Vous-êtes connecté <FiArrowRight /> {session.user.email}</span>}
|
|
|
|
|