Skip to content
Snippets Groups Projects
Commit ae335374 authored by Matt Kirby's avatar Matt Kirby
Browse files

Fixed navbar

parent 17abc0be
No related branches found
No related tags found
1 merge request!8create "Basic components"
...@@ -135,14 +135,14 @@ const NavBar: FC<PropsWithChildren<NavBarProps>> = ({ ...@@ -135,14 +135,14 @@ const NavBar: FC<PropsWithChildren<NavBarProps>> = ({
</div> </div>
<Disclosure.Panel className="md:hidden"> <Disclosure.Panel className="md:hidden">
<div className="space-y-1 px-2 pt-2 pb-3 sm:px-3 bg-white"> <div className="space-y-1 px-2 pt-2 pb-3 sm:px-3 bg-c-pink">
{navigation.map((item) => ( {navigation.map((item) => (
<Disclosure.Button <Disclosure.Button
key={item.name} key={item.name}
as="a" as="a"
href={item.href} href={item.href}
className={classNames( className={classNames(
item.current ? 'bg-white text-c-pink' : 'text-gray-300 hover:bg-gray-700 hover:text-white', item.current ? 'bg-c-pink text-white' : 'text-gray-300 hover:bg-gray-700 hover:text-white',
'block rounded-md px-3 py-2 text-base font-medium' 'block rounded-md px-3 py-2 text-base font-medium'
)} )}
aria-current={item.current ? 'page' : undefined} aria-current={item.current ? 'page' : undefined}
...@@ -151,8 +151,8 @@ const NavBar: FC<PropsWithChildren<NavBarProps>> = ({ ...@@ -151,8 +151,8 @@ const NavBar: FC<PropsWithChildren<NavBarProps>> = ({
</Disclosure.Button> </Disclosure.Button>
))} ))}
</div> </div>
<div className="border-t border-gray-200 pt-4 pb-3 bg-white"> <div className=" pt-4 pb-3 bg-c-pink ">
<div className="flex items-center px-5"> <div className="flex items-center px-5 bg-white mx-2 py-2 rounded-md">
<div className="flex-shrink-0"> <div className="flex-shrink-0">
<img className="h-10 w-10 rounded-full" src={user?.Avatar} alt="" /> <img className="h-10 w-10 rounded-full" src={user?.Avatar} alt="" />
</div> </div>
...@@ -168,13 +168,13 @@ const NavBar: FC<PropsWithChildren<NavBarProps>> = ({ ...@@ -168,13 +168,13 @@ const NavBar: FC<PropsWithChildren<NavBarProps>> = ({
<BellIcon className="h-6 w-6" aria-hidden="true" /> <BellIcon className="h-6 w-6" aria-hidden="true" />
</button> </button>
</div> </div>
<div className="mt-3 space-y-1 px-2"> <div className="mt-1 space-y-1 px-2">
{userNavigation.map((item) => ( {userNavigation.map((item) => (
<Disclosure.Button <Disclosure.Button
key={item.name} key={item.name}
as="a" as="a"
href={item.href} href={item.href}
className="block rounded-md px-3 py-2 text-base font-medium text-gray-900 hover:bg-pink-300 hover:text-green-200" className="block bg-white rounded-md px-3 py-2 text-base font-medium text-c-pink hover:bg-pink-300 hover:text-green-200"
> >
{item.name} {item.name}
</Disclosure.Button> </Disclosure.Button>
......
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