Skip to content

Commit

Permalink
add social media links
Browse files Browse the repository at this point in the history
  • Loading branch information
Gri-ffin committed Jan 2, 2024
1 parent 8a37937 commit 1c38710
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions web/containers/Layout/Ribbon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import {
SettingsIcon,
MonitorIcon,
LayoutGridIcon,
Twitter,
Github,
} from 'lucide-react'

import { twMerge } from 'tailwind-merge'
Expand Down Expand Up @@ -52,6 +54,23 @@ export default function RibbonNav() {
},
]

const linksMenu = [
{
name: 'Twitter',
icon: (
<Twitter size={20} className="flex-shrink-0 text-muted-foreground" />
),
link: 'https://twitter.com/janhq',
},
{
name: 'Github',
icon: (
<Github size={20} className="flex-shrink-0 text-muted-foreground" />
),
link: 'https://github.com/janhq/jan',
},
]

const secondaryMenus = [
{
name: 'System Monitor',
Expand Down Expand Up @@ -118,6 +137,32 @@ export default function RibbonNav() {
</div>

<div>
<>
{linksMenu
.filter((link) => !!link)
.map((link, i) => {
return (
<div className="relative flex p-2" key={i}>
<Tooltip>
<TooltipTrigger>
<a
href={link.link}
target="_blank"
rel="noopener noreferrer"
className="relative flex w-full flex-shrink-0 cursor-pointer items-center justify-center"
>
{link.icon}
</a>
</TooltipTrigger>
<TooltipContent side="right" sideOffset={10}>
<span>{link.name}</span>
<TooltipArrow />
</TooltipContent>
</Tooltip>
</div>
)
})}
</>
{secondaryMenus
.filter((secondary) => !!secondary)
.map((secondary, i) => {
Expand Down

0 comments on commit 1c38710

Please sign in to comment.