-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,039 additions
and
6 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import { Calendar, Home, Inbox, Search, Settings } from "lucide-react"; | ||
|
||
import { | ||
Sidebar, | ||
SidebarContent, | ||
SidebarGroup, | ||
SidebarGroupContent, | ||
SidebarGroupLabel, | ||
SidebarMenu, | ||
SidebarMenuButton, | ||
SidebarMenuItem, | ||
} from "@/components/ui/sidebar"; | ||
import NavLinks from "./NavLinks"; | ||
import { Button } from "@/components/ui/button"; | ||
import ROUTES from "@/constants/routes"; | ||
import Link from "next/link"; | ||
|
||
// Menu items. | ||
const items = [ | ||
{ | ||
title: "Home", | ||
url: "#", | ||
icon: Home, | ||
}, | ||
{ | ||
title: "Inbox", | ||
url: "#", | ||
icon: Inbox, | ||
}, | ||
{ | ||
title: "Calendar", | ||
url: "#", | ||
icon: Calendar, | ||
}, | ||
{ | ||
title: "Search", | ||
url: "#", | ||
icon: Search, | ||
}, | ||
{ | ||
title: "Settings", | ||
url: "#", | ||
icon: Settings, | ||
}, | ||
]; | ||
|
||
export default function AppSidebar() { | ||
return ( | ||
<Sidebar className=" background-light900_dark200 border-none" side="left"> | ||
<SidebarContent className=""> | ||
<SidebarGroup> | ||
<SidebarGroupLabel>Routes</SidebarGroupLabel> | ||
<SidebarGroupContent> | ||
<SidebarMenu> | ||
<div className="no-scrollbar flex h-[calc(100vh-80px)] flex-col justify-between overflow-y-auto"> | ||
<section className="flex h-full flex-col gap-6 pt-16"> | ||
<NavLinks isMobileNav /> | ||
</section> | ||
|
||
<div className="flex flex-col gap-3"> | ||
<Link href={ROUTES.SIGN_IN}> | ||
<Button className="small-medium btn-secondary min-h-[41px] w-full rounded-lg px-4 py-3 shadow-none"> | ||
<span className="primary-text-gradient">Log in</span> | ||
</Button> | ||
</Link> | ||
</div> | ||
<Link href={ROUTES.SIGN_UP}> | ||
<Button className="small-medium light-border-2 btn-tertiary text-dark400_light900 min-h-[41px] w-full rounded-lg border px-4 py-3 shadow-none"> | ||
Sign up | ||
</Button> | ||
</Link> | ||
</div> | ||
</SidebarMenu> | ||
</SidebarGroupContent> | ||
</SidebarGroup> | ||
</SidebarContent> | ||
</Sidebar> | ||
); | ||
} |
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,31 @@ | ||
"use client" | ||
|
||
import * as React from "react" | ||
import * as SeparatorPrimitive from "@radix-ui/react-separator" | ||
|
||
import { cn } from "@/lib/utils" | ||
|
||
const Separator = React.forwardRef< | ||
React.ElementRef<typeof SeparatorPrimitive.Root>, | ||
React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> | ||
>( | ||
( | ||
{ className, orientation = "horizontal", decorative = true, ...props }, | ||
ref | ||
) => ( | ||
<SeparatorPrimitive.Root | ||
ref={ref} | ||
decorative={decorative} | ||
orientation={orientation} | ||
className={cn( | ||
"shrink-0 bg-slate-200 dark:bg-slate-800", | ||
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", | ||
className | ||
)} | ||
{...props} | ||
/> | ||
) | ||
) | ||
Separator.displayName = SeparatorPrimitive.Root.displayName | ||
|
||
export { Separator } |
Oops, something went wrong.