1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 09:45:22 -04:00
Jake Jarvis 283eb62446
less corny header and note meta icons (#746)
* less corny header and note meta icons

* swap out more twemojis

* indicate active page in nav bar

* update favicons

* extract `<MenuLink />` into its own component

* change hover effect to an underline

* cropped header photo
2022-01-27 10:06:26 -05:00

34 lines
755 B
TypeScript

import { memo } from "react";
import Link from "next/link";
import Image from "next/image";
import classNames from "classnames";
import styles from "./Selfie.module.css";
import selfieJpg from "../../public/static/images/selfie.jpg";
type Props = {
className?: string;
};
const Selfie = ({ className }: Props) => (
<Link href="/">
<a className={classNames(styles.link, className)}>
<div className={styles.selfie}>
<Image
src={selfieJpg}
alt="Photo of Jake Jarvis"
width={70}
height={70}
quality={60}
layout="intrinsic"
priority
/>
</div>
<span className={styles.name}>Jake Jarvis</span>
</a>
</Link>
);
export default memo(Selfie);