Files
max-richter.dev/src/components/Picture.astro
2024-06-21 14:53:36 +02:00

28 lines
354 B
Plaintext

---
import Image from "./Image.astro";
const {src, alt, caption} = Astro.props;
---
<figure>
<Image src={src} alt={alt}/>
<figcaption>
{caption}
</figcaption>
</figure>
<style>
figure {
display: inline-block;
text-align: center;
}
figcaption {
font-size: 0.9rem;
text-align: center;
color: #666;
margin-top: 0.5rem;
}
</style>