Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change navdrop links and sub-links style on hover #463

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
8 changes: 4 additions & 4 deletions components/Navbar/navDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const NavDrop = forwardRef((props, ref)=> {
{link.subMenu ? (
<div>
<div className='flex items-center justify-between'>
<div className='text-white'>{link.title}</div>
<div className='text-white hover:text-cyan-400'>{link.title}</div>
<Dropdown
className={`transition-transform duration-700 ${
show === link.title ? 'rotate-0' : 'rotate-[-90deg]'
Expand All @@ -35,7 +35,7 @@ const NavDrop = forwardRef((props, ref)=> {
<Link href={sub.ref} key={sub.ref}>
<div
onClick={() => setDrop(false)}
className='h-[40px] flex navbg items-center p-6 hover:text-black text-white cursor-pointer'
className='h-[40px] flex navbg transition duration-150 ease-out items-center p-6 hover:text-black text-white cursor-pointer'
>
{sub.title}
</div>
Expand All @@ -45,7 +45,7 @@ const NavDrop = forwardRef((props, ref)=> {
)}
</div>
) : (
<div className='text-white' onClick={() => setDrop(false)}>
<div className='text-white hover:text-cyan-400' onClick={() => setDrop(false)}>
{link.title}
</div>
)}
Expand All @@ -59,4 +59,4 @@ const NavDrop = forwardRef((props, ref)=> {
})
NavDrop.displayName = 'NavDrop';

export default NavDrop;
export default NavDrop;
60 changes: 0 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ body {
}
.navbg:hover, .navbg:focus{
background: linear-gradient(225deg, #AD20E2 9.35%, #2DCCFD 88.41%);
border-radius: 15px;
}

.kinda-dark{
Expand Down Expand Up @@ -225,4 +226,4 @@ mix-blend-mode: lighten;

.hoverEffect:hover {
transform: scale(1.1); /* Scale the image by 10% on hover */
}
}
Loading