1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 05:18:28 -04:00

34 lines
774 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";
export type SelfieProps = {
className?: string;
};
const Selfie = ({ className }: SelfieProps) => (
<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);