mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 23:59:08 +03:00
* d5 announcements * Adds both posts * Add YC logo * change names * fix slugs * Adds content * images * Update Quote.tsx * clarity * d5 assets * banner link * ga link in footer * Grammar and spelling * move image up for consistency * grammar * fix my mistake * markdown formatting * Fix details tag * blog img optimizations * blog img optimizations * fix blog link --------- Co-authored-by: Copple <10214025+kiwicopple@users.noreply.github.com> Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com> Co-authored-by: Terry Sutton <saltcod@gmail.com>
26 lines
595 B
TypeScript
26 lines
595 B
TypeScript
import Image from 'next/image'
|
|
|
|
interface Props {
|
|
caption: string
|
|
img: string
|
|
}
|
|
|
|
export default function Avatar(props: Props) {
|
|
const { caption, img } = props
|
|
|
|
return (
|
|
<div className="align-center m-0 flex h-8 items-center gap-3">
|
|
<Image
|
|
src={'/images/blog/avatars/' + img}
|
|
className="h-8 w-8 rounded-full object-cover text-center m-0"
|
|
alt={`${caption} avatar`}
|
|
width={32}
|
|
height={32}
|
|
/>
|
|
<figcaption style={{ marginTop: 0 }} className="text-foreground-lighter">
|
|
<p>{caption}</p>
|
|
</figcaption>
|
|
</div>
|
|
)
|
|
}
|