-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from UTDNebula/JUP-57-sidebar
JUP-57: new sidebar buttons for admins and club officers
- Loading branch information
Showing
12 changed files
with
209 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
'use client'; | ||
import SidebarItems from './SidebarItems'; | ||
import Image from 'next/image'; | ||
import { | ||
mainCats, | ||
moreCats, | ||
type personalCats, | ||
} from '@src/constants/categories'; | ||
type NavMenuProps = { | ||
userCapabilites: Array<(typeof personalCats)[number]>; | ||
}; | ||
const NavMenu = ({ userCapabilites }: NavMenuProps) => { | ||
return ( | ||
<> | ||
<div className="flex w-full place-content-center items-center pb-7 pt-10"> | ||
<Image | ||
src="/nebula-logo.png" | ||
alt="" | ||
width={60} | ||
height={60} | ||
className="mr-1.5" | ||
/> | ||
<h1 className=" text-2xl font-medium">Jupiter</h1> | ||
</div> | ||
<div className="w-full px-5 py-5"> | ||
<h1 className="px-4 text-sm font-light capitalize text-slate-500 md:text-xs"> | ||
Main | ||
</h1> | ||
<div className="mb-5 mt-6"> | ||
{mainCats.map((cat) => ( | ||
<SidebarItems key={cat} cat={cat} /> | ||
))} | ||
</div> | ||
</div> | ||
<div className="w-full py-5 pl-5 md:p-5"> | ||
<h1 className="px-4 text-sm font-light capitalize text-slate-500 md:text-xs"> | ||
More | ||
</h1> | ||
<div className="mb-5 mt-6"> | ||
{userCapabilites.map((cat) => ( | ||
<SidebarItems key={cat} cat={cat} /> | ||
))} | ||
{moreCats.map((cat) => ( | ||
<SidebarItems key={cat} cat={cat} /> | ||
))} | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; | ||
export default NavMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.