Skip to content

Commit

Permalink
feat: bookmarks page
Browse files Browse the repository at this point in the history
  • Loading branch information
warmachine028 committed Nov 11, 2024
1 parent 9a5012c commit def4a36
Showing 1 changed file with 42 additions and 7 deletions.
49 changes: 42 additions & 7 deletions client/src/components/Menubar.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,69 @@
'use client'

import Link from 'next/link'
import { cn } from '@/lib/utils'
import { Button } from '@/components/ui/button'
import { Bell, Bookmark, Home, Mail } from 'lucide-react'
import { BellRing, Bookmark, Home, MessageCircle } from 'lucide-react'
import { usePathname } from 'next/navigation'

interface MenubarProps {
className?: string
}

const Menubar = ({ className }: MenubarProps) => {
const pathname = usePathname()
const notificationCount = 100
return (
<aside className={cn('text-primary', className)}>
<Button className="flex items-center justify-start gap-3" variant="ghost" title="Home" asChild>
<Button
className={cn(
'relative flex items-center justify-start gap-3 ring-primary',
pathname === '/' && 'ring-1'
)}
variant="ghost"
title="Home"
asChild
>
<Link href="/">
<Home />
<span className="hidden lg:inline">Home</span>
</Link>
</Button>
<Button className="flex items-center justify-start gap-3" variant="ghost" title="Notifications" asChild>
<Button
className="relative flex items-center justify-start gap-3 ring-primary"
variant="ghost"
title="Notifications"
asChild
>
<Link href="/notifications">
<Bell />
<BellRing />
<span className="hidden lg:inline">Notifications</span>
<div className="absolute right-2.5 top-1 flex h-2.5 w-2.5 items-center justify-center rounded-full bg-destructive text-xs" />
</Link>
</Button>
<Button className="flex items-center justify-start gap-3" variant="ghost" title="Messages" asChild>
<Button
className={cn(
'flex items-center justify-start gap-3 ring-primary',
pathname === '/messages' && 'ring-1'
)}
variant="ghost"
title="Messages"
asChild
>
<Link href="/messages">
<Mail />
<MessageCircle />
<span className="hidden lg:inline">Messages</span>
</Link>
</Button>
<Button className="flex items-center justify-start gap-3" variant="ghost" title="Bookmarks" asChild>
<Button
className={cn(
'flex items-center justify-start gap-3 ring-primary',
pathname === '/bookmarks' && 'ring-1'
)}
variant="ghost"
title="Bookmarks"
asChild
>
<Link href="/bookmarks">
<Bookmark />
<span className="hidden lg:inline">Saved</span>
Expand Down

1 comment on commit def4a36

@vercel
Copy link

@vercel vercel bot commented on def4a36 Nov 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.