website/src/components/Picture.astro
Max Richter 91d0e55d3c
Some checks failed
Deploy to SFTP Server / build (push) Failing after 8m22s
feat: add peaks of the balkan page
2024-06-21 14:30:17 +02:00

12 lines
370 B
Plaintext

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