mirror of
https://github.com/vercel/components.build.git
synced 2026-09-14 20:06:39 +08:00
101ca62c2d
* Initial implementation * Bump deps * Update code-block.tsx * Update navbar.tsx * Move video to Geistdocs * Update layout.tsx * Margin fixes * Update code-block-tabs.tsx * Update docs-page.tsx * Update navbar.tsx * Add feed * Update docs-layout.tsx * Update mobile-menu.tsx * Fix adaptable layout * Update docs-page.tsx * Update docs page composability * Update global.css * Remove unused AI Elements * Update Feedback
29 lines
600 B
TypeScript
29 lines
600 B
TypeScript
import Image from "next/image";
|
|
|
|
type AuthorProps = {
|
|
name: string;
|
|
image: string;
|
|
href: string;
|
|
};
|
|
|
|
export const Author = (props: AuthorProps) => (
|
|
<span className="ml-0.5 inline-flex items-center gap-1.5 align-bottom">
|
|
<Image
|
|
alt={props.name}
|
|
className="my-0! inline-flex overflow-hidden rounded-full"
|
|
height={20}
|
|
src={props.image}
|
|
unoptimized
|
|
width={20}
|
|
/>
|
|
<a
|
|
className="font-normal text-primary no-underline"
|
|
href={props.href}
|
|
rel="noopener noreferrer"
|
|
target="_blank"
|
|
>
|
|
{props.name}
|
|
</a>
|
|
</span>
|
|
);
|