Skip to content

Commit d45f172

Browse files
committed
feat: add GitHub link to toolbar
Adds a GitHub icon button in the center toolbar pill, to the left of the sponsor heart. Links to https://github.com/pastelsky/prettyfish with 'Star on GitHub' tooltip.
1 parent 4caef96 commit d45f172

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/components/app/Header.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import {
3636
PencilSimple,
3737
PlugsConnected,
3838
Trash,
39+
GithubLogo,
3940
Heart,
4041
} from '@phosphor-icons/react'
4142
import { cn } from '@/lib/utils'
@@ -394,6 +395,21 @@ export function Header({
394395

395396
<div className={chromeDividerClass()} />
396397

398+
{/* GitHub */}
399+
<a
400+
href="https://github.com/pastelsky/prettyfish"
401+
target="_blank"
402+
rel="noopener noreferrer"
403+
aria-label="Pretty Fish on GitHub"
404+
title="Star on GitHub"
405+
className={cn(
406+
'inline-flex items-center justify-center w-7 h-7 rounded-lg transition-colors cursor-pointer',
407+
'text-ui-ink-muted hover:text-ui-ink-strong hover:bg-ui-surface-hover',
408+
)}
409+
>
410+
<GithubLogo className="w-3.5 h-3.5" />
411+
</a>
412+
397413
{/* Sponsor */}
398414
<a
399415
href="https://github.com/sponsors/pastelsky"

0 commit comments

Comments
 (0)