Skip to content

Instantly share code, notes, and snippets.

@kjmczk
Created April 30, 2021 08:19
Show Gist options
  • Save kjmczk/57a0ce1f20eee341b201f0ac22b67cc6 to your computer and use it in GitHub Desktop.
Save kjmczk/57a0ce1f20eee341b201f0ac22b67cc6 to your computer and use it in GitHub Desktop.
components/Header.tsx - MDX Blog Simple - Medium
// 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