[site/components/Nav.js]: Add github star button with count to navbar

This commit is contained in:
virgoaugustine
2022-01-12 12:41:35 +00:00
parent 04d750f5d5
commit 6a14c34f98
3 changed files with 17 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import { Disclosure, Menu, Transition } from '@headlessui/react'
import { BellIcon, MenuIcon, XIcon } from '@heroicons/react/outline'
import Link from 'next/link'
import GitHubButton from 'react-next-github-btn'
const navigation = [
{ name: 'Docs', href: '/docs' },
@@ -65,6 +66,9 @@ export default function Nav() {
</div>
</div>
</div>
<div className="mt-2 justify-end">
<GitHubButton href="https://github.com/datopian/portal.js" data-color-scheme="no-preference: light; light: light; dark: dark;" data-size="large" data-show-count="true" aria-label="Star datopian/portal.js on GitHub">Stars</GitHubButton>
</div>
</div>
</div>