Skip to content

Commit

Permalink
feat: add Brand component
Browse files Browse the repository at this point in the history
  • Loading branch information
Callenowy committed Jan 20, 2024
2 parents 55de6b5 + 66d5a39 commit bc1b9fe
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/components/brand.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import Link from 'next/link';
import Image from 'next/image';

import type { UrlObject } from 'url';

type Url = string | UrlObject;

type BrandProps = {
href?: Url;
alias: string;
};

export const Brand = ({ alias, href = '/' }: BrandProps) => (
<Link href={href}>
<Image
src="/developer-logo.svg"
alt="An image representing the The Stack App logo"
aria-hidden="true"
width={72}
height={32}
priority
/>
<span className="sr-only">{alias}</span>
</Link>
);

0 comments on commit bc1b9fe

Please sign in to comment.