onedrive/components/Navbar.tsx

27 lines
886 B
TypeScript
Raw Normal View History

2021-06-23 20:27:51 +00:00
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
2021-08-29 21:31:42 +00:00
import Link from 'next/link'
2021-06-23 20:27:51 +00:00
import siteConfig from '../config/site.json'
const Navbar = () => {
return (
2021-08-29 21:31:42 +00:00
<div className="text-left p-1 bg-white dark:bg-gray-900 sticky top-0 bg-opacity-80 backdrop-blur-md shadow-sm z-[100]">
2021-06-23 20:27:51 +00:00
<div className="max-w-4xl w-full mx-auto flex items-center justify-between">
2021-08-29 21:31:42 +00:00
<h1 className="font-bold text-xl p-2 rounded dark:text-white hover:opacity-80">
<Link href="/">{siteConfig.title}</Link>
</h1>
2021-08-23 15:14:08 +00:00
<a
href="https://github.com/spencerwooo/onedrive-vercel-index"
target="_blank"
rel="noopener noreferrer"
2021-08-29 21:31:42 +00:00
className="p-2 rounded dark:text-white hover:opacity-80"
2021-08-23 15:14:08 +00:00
>
2021-06-23 20:27:51 +00:00
<FontAwesomeIcon icon={['fab', 'github']} size="lg" />
</a>
</div>
</div>
)
}
export default Navbar