Responsive done for computer screens

This commit is contained in:
Jason Jordan
2025-07-30 16:31:41 -04:00
parent 3bdc768714
commit 0e44bd53e6
17 changed files with 294 additions and 73 deletions
+6 -4
View File
@@ -32,9 +32,10 @@ const SideNav: React.FC<SideNavProps> = (
return (
<div className={classnames(
"relative h-full flex flex-col text-deepcove text-center transition-all duration-500",
bgColor, maxWidth,
bgColor,
{
"w-16" : !isSidebarOpen,
"w-[5vw]" : !isSidebarOpen,
"w-[11vw]" : isSidebarOpen
}
)}>
@@ -45,10 +46,10 @@ const SideNav: React.FC<SideNavProps> = (
>
{isSidebarOpen ? <FaArrowCircleLeft size={30} /> : <FaArrowCircleRight size={30} />}
</Button>
<div className="flex flex-col divide-y divide-bluetang"></div>
<div className="flex flex-col divide-y divide-bluetang">
{navItems.map((navItem, index) => (
<a href={navItem.url} className={classnames(
"w-full h-20 flex justify-center items-center hover:text-platinum",
"w-full h-20 flex justify-center items-center font-semibold hover:text-platinum",
{"bg-bluetang text-platinum" : index == 0}
)}>
{isSidebarOpen ? (
@@ -58,6 +59,7 @@ const SideNav: React.FC<SideNavProps> = (
)}
</a>
))}
</div>
</div>
);
}