Created
April 30, 2021 08:19
-
-
Save kjmczk/57a0ce1f20eee341b201f0ac22b67cc6 to your computer and use it in GitHub Desktop.
components/Header.tsx - MDX Blog Simple - Medium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// components/Header.tsx | |
import Link from 'next/link'; | |
import { SITE_NAME } from '../utils/constants'; | |
const Header: React.FC = () => { | |
return ( | |
<header className="py-2"> | |
<Link href="/"> | |
<a className="text-2xl font-bold text-green-500">{SITE_NAME}</a> | |
</Link> | |
</header> | |
); | |
}; | |
export default Header; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment