Skip to content

Instantly share code, notes, and snippets.

@Nilanth

Nilanth/.jsx Secret

Created August 24, 2021 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nilanth/4b5585c6983b213acb2d6608d0405a0e to your computer and use it in GitHub Desktop.
Save Nilanth/4b5585c6983b213acb2d6608d0405a0e to your computer and use it in GitHub Desktop.
Navigation.js
import Link from "next/link"
import React from "react"
const Navigation = () => {
return (
<div className="sticky top-0 z-20 py-2 bg-white md:py-6 md:mb-6 dark:bg-black">
<div className="container px-4 mx-auto lg:max-w-4xl flex items-center justify-between">
<Link href="/">
<a
className={"font-medium tracking-wider transition-colors text-gray-900 hover:text-sky-500 uppercase dark:text-white"}
>
Your Name
</a>
</Link>
</div>
</div>
)
}
export default Navigation;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment