Files
731f9d703e Eagle 5 (#22907)
* 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>
2024-04-19 16:24:21 +02:00

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>
)
}