-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
53 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Link } from "@tanstack/react-router"; | ||
import { LinkHTMLAttributes } from "react"; | ||
|
||
type Props = LinkHTMLAttributes<HTMLElement> | ||
|
||
export default function ButtonLateralMenu(props: Props) { | ||
return ( | ||
<Link to={props.href} className="px-3 py-1 flex gap-2 hover:bg-[#8B8E99]/35 rounded-md focus:bg-[#8B8E99]/35 focus:text-blue hover:text-blue" > | ||
{props.children} | ||
</Link> | ||
) | ||
} |
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,39 @@ | ||
import { ArrowUpLeftFromSquare, BadgeDollarSign, Flame, Info, Layers, LayoutGrid, LogOut, Package, Settings, StretchHorizontal, Ticket, User, Users } from "lucide-react"; | ||
import ButtonLateralMenu from "./ButtonLateralMenu"; | ||
|
||
type Props = { | ||
style: boolean | ||
} | ||
|
||
export default function LateralMenu(props: Props) { | ||
return ( | ||
<nav className={`w-xs h-lvh ${props.style ? "fixed" : "hidden"} md:sticky top-0 let-0 bottom-0`}> | ||
<div className="p-4 md:p-7 w-auto bg-[#E4E7E9] h-lvh text-[#8B8E99]"> | ||
<div className="pb-6 flex gap-2 items-center font-700"><Flame size={32} strokeWidth={0.5} className="text-[#FFC300] fill-[#FFC300]" /> Lynx </div> | ||
<div className="font-500 flex-col"> | ||
<article className="gap-1 flex-col"> | ||
<p className="text-blue">MENU</p> | ||
<ButtonLateralMenu href="/"><LayoutGrid /> Dashboard </ButtonLateralMenu> | ||
<ButtonLateralMenu href="/"><Package /> Products </ButtonLateralMenu> | ||
<ButtonLateralMenu href="/"><Layers /> Category </ButtonLateralMenu> | ||
<ButtonLateralMenu href="/"><StretchHorizontal /> Orders </ButtonLateralMenu> | ||
<ButtonLateralMenu href="/"><Ticket /> Coupon </ButtonLateralMenu> | ||
<ButtonLateralMenu href="/"><ArrowUpLeftFromSquare /> Banner </ButtonLateralMenu> | ||
<ButtonLateralMenu href="/"><BadgeDollarSign /> Transaction </ButtonLateralMenu> | ||
</article> | ||
<article className="flex-col gap-1"> | ||
<p className="text-blue">USER MANAGEMENT</p> | ||
<ButtonLateralMenu href="/"><Users /> Manage Admins </ButtonLateralMenu> | ||
<ButtonLateralMenu href="/"><User /> Customers </ButtonLateralMenu> | ||
</article> | ||
<article className="flex-col gap-1"> | ||
<p className="text-blue">OTHERS</p> | ||
<ButtonLateralMenu href="/"><Settings /> Settings </ButtonLateralMenu> | ||
<ButtonLateralMenu href="/"><Info /> Help </ButtonLateralMenu> | ||
<ButtonLateralMenu href="/"><LogOut /> Logout </ButtonLateralMenu> | ||
</article> | ||
</div> | ||
</div> | ||
</nav> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/* eslint-disable eslint-comments/no-unlimited-disable */ | ||
/* prettier-ignore-start */ | ||
|
||
/* eslint-disable */ | ||
|
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