1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 01:45:25 -04:00
2025-03-21 12:02:14 -04:00

39 lines
1.1 KiB
TypeScript

import Image from "next/image";
import clsx from "clsx";
import Link from "../Link";
import Menu from "../Menu";
import * as config from "../../lib/config";
import type { ComponentPropsWithoutRef } from "react";
import styles from "./Header.module.css";
import selfieJpg from "./selfie.jpg";
export type HeaderProps = ComponentPropsWithoutRef<"header">;
const Header = ({ className, ...rest }: HeaderProps) => {
return (
<header className={clsx(styles.header, className)} {...rest}>
<nav className={styles.nav}>
<Link href="/" rel="author" title={config.authorName} plain className={styles.homeLink}>
<Image
src={selfieJpg}
alt={`Photo of ${config.authorName}`}
className={styles.homeImage}
width={70}
height={70}
quality={60}
placeholder="empty"
priority
/>
<span className={styles.name}>{config.authorName}</span>
</Link>
<Menu className={styles.menu} />
</nav>
</header>
);
};
export default Header;