Skip to content
Snippets Groups Projects
Commit 6a095ca9 authored by Romain CREY's avatar Romain CREY
Browse files

Merge branch 'feature/425/navbar-chiffre-de-bulle-notification' into 'dev'

modification-navbar-et-css-pour-ajouter-pastille-de-notification

See merge request web-et-numerique/llle_project/ecolyo!22
parents c593a30c 368455af
No related branches found
No related tags found
3 merge requests!28Merge fix from dev,!27Dev,!22modification-navbar-et-css-pour-ajouter-pastille-de-notification
......@@ -40,14 +40,10 @@ export const Navbar = ({ t }: NavbarProps) => {
className="c-nav-link"
activeClassName="is-active"
>
<Icon
className="c-nav-icon off"
icon={
challengeNotification
? ChallengeIconOffNotif
: ChallengeIconOff
}
/>
{challengeNotification && (
<div className="nb-challenge-notif">1</div>
)}
<Icon className="c-nav-icon off" icon={ChallengeIconOff} />
<Icon className="c-nav-icon on" icon={ChallengeIconOn} />
{t('Nav.challenges')}
</NavLink>
......
......@@ -84,3 +84,24 @@
box-shadow: unset;
}
}
.nb-challenge-notif {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
left: 42px;
bottom: 22px;
width: 1.25rem;
height: 1.25rem;
color: $dark-light;
border-radius: 50%;
border: 1px solid $dark-light;
z-index: 1;
background: $blue-radial-gradient;
font-size: 12px;
@media #{$tablet} {
left: 25px;
bottom: unset;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment