1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-06-05 20:15:31 -04:00

minor style tweaks

This commit is contained in:
2025-05-05 12:55:12 -04:00
parent 5058382f71
commit 27e6ca2a4b
64 changed files with 571 additions and 551 deletions
+39
View File
@@ -0,0 +1,39 @@
import Image from "next/image";
import Link from "@/components/link";
import Menu from "@/components/layout/menu";
import { cn } from "@/lib/utils";
import siteConfig from "@/lib/config/site";
import type { ComponentPropsWithoutRef } from "react";
import avatarImg from "@/app/avatar.jpg";
const Header = ({ className, ...rest }: ComponentPropsWithoutRef<"header">) => {
return (
<header className={cn("flex items-center justify-between", className)} {...rest}>
<Link
dynamicOnHover
href="/"
rel="author"
aria-label={siteConfig.name}
className="hover:text-primary text-foreground/85 flex flex-shrink-0 items-center hover:no-underline"
>
<Image
src={avatarImg}
alt={`Photo of ${siteConfig.name}`}
className="border-ring/80 size-[64px] rounded-full border-2 md:size-[48px] md:border-1"
width={64}
height={64}
quality={50}
priority
/>
<span className="mx-3 text-xl leading-none font-medium tracking-[0.01rem] max-md:sr-only">
{siteConfig.name}
</span>
</Link>
<Menu className="ml-6 w-full max-w-64 sm:ml-4 sm:max-w-96 md:ml-0 md:max-w-none" />
</header>
);
};
export default Header;