Tasks page implementation (#120)

This commit is contained in:
Salih Altun
2024-04-01 21:34:52 +03:00
committed by GitHub
parent 14ea1e2417
commit f175545399
55 changed files with 5040 additions and 41 deletions

View File

@@ -0,0 +1,58 @@
import { cn } from "@/util/utils";
import {
GearIcon,
ListBulletIcon,
PlusCircledIcon,
} from "@radix-ui/react-icons";
import { NavLink } from "react-router-dom";
function SideNav() {
return (
<nav className="flex flex-col gap-4">
<NavLink
to="create"
className={({ isActive }) => {
return cn(
"flex items-center px-6 py-2 hover:bg-primary-foreground rounded-2xl",
{
"bg-primary-foreground": isActive,
},
);
}}
>
<PlusCircledIcon className="mr-4" />
<span>New Task</span>
</NavLink>
<NavLink
to="tasks"
className={({ isActive }) => {
return cn(
"flex items-center px-6 py-2 hover:bg-primary-foreground rounded-2xl",
{
"bg-primary-foreground": isActive,
},
);
}}
>
<ListBulletIcon className="mr-4" />
<span>Task History</span>
</NavLink>
<NavLink
to="settings"
className={({ isActive }) => {
return cn(
"flex items-center px-6 py-2 hover:bg-primary-foreground rounded-2xl",
{
"bg-primary-foreground": isActive,
},
);
}}
>
<GearIcon className="mr-4" />
<span>Settings</span>
</NavLink>
</nav>
);
}
export { SideNav };