Commit
·
3aaa41e
1
Parent(s):
b9b05e2
add link to github
Browse files- components/Navbar.tsx +10 -4
components/Navbar.tsx
CHANGED
@@ -1,17 +1,23 @@
|
|
1 |
import Link from 'next/link'
|
2 |
import { Button } from "@/components/ui/button"
|
3 |
-
import { FileText } from "lucide-react"
|
4 |
|
5 |
export default function Navbar() {
|
6 |
return (
|
7 |
<nav className="border-b">
|
8 |
-
<div className="container flex justify-end py-4">
|
9 |
-
<Button variant="ghost" asChild className="p-2 sm:p-4">
|
10 |
<Link href="https://huggingface.co/docs/transformers.js/en/index" target="_blank" rel="noopener noreferrer" className="flex items-center">
|
11 |
-
<FileText className="h-4 w-4 mr-2
|
12 |
<span className="font-medium">Docs</span>
|
13 |
</Link>
|
14 |
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
</div>
|
16 |
</nav>
|
17 |
)
|
|
|
1 |
import Link from 'next/link'
|
2 |
import { Button } from "@/components/ui/button"
|
3 |
+
import { FileText, Github } from "lucide-react"
|
4 |
|
5 |
export default function Navbar() {
|
6 |
return (
|
7 |
<nav className="border-b">
|
8 |
+
<div className="container flex justify-end items-center py-4">
|
9 |
+
<Button variant="ghost" asChild className="p-2 sm:p-4 mr-2">
|
10 |
<Link href="https://huggingface.co/docs/transformers.js/en/index" target="_blank" rel="noopener noreferrer" className="flex items-center">
|
11 |
+
<FileText className="h-4 w-4 mr-2" />
|
12 |
<span className="font-medium">Docs</span>
|
13 |
</Link>
|
14 |
</Button>
|
15 |
+
<Button variant="ghost" asChild className="p-2 sm:p-4">
|
16 |
+
<Link href="https://github.com/cfahlgren1/transformersjs-playground" target="_blank" rel="noopener noreferrer" className="flex items-center">
|
17 |
+
<Github className="h-4 w-4 mr-2" />
|
18 |
+
<span className="font-medium hidden sm:inline">Star on GitHub</span>
|
19 |
+
</Link>
|
20 |
+
</Button>
|
21 |
</div>
|
22 |
</nav>
|
23 |
)
|