<figure>
<div class="image-container">
<Image src={src} alt={alt} />
</div>
<figcaption>{caption}</figcaption>
</figure>
<style lang="scss">
@use "../../styles/tokens/_tokens.scss" as t;
figure {
margin-block: 2rem;
}
img {
padding: 1rem;
box-shadow: t.$s-center;
border: 1px solid t.$clr-purple-500;
border-radius: t.$br-large;
background-color: white;
object-fit: contain;
}
figcaption {
margin: 2rem auto 0 auto;
line-height: 1.25;
text-align: center;
}
</style>
<figure>
<div class="image-container">
<Image src={src} alt={alt} />
</div>
<figcaption>{caption}</figcaption>
</figure>
<style lang="scss">
@use "../../styles/tokens/_tokens.scss" as t;
figure {
margin-block: 2rem;
}
img {
padding: 1rem;
box-shadow: t.$s-center;
border: 1px solid t.$clr-purple-500;
border-radius: t.$br-large;
background-color: white;
object-fit: contain;
}
figcaption {
margin: 2rem auto 0 auto;
line-height: 1.25;
text-align: center;
}
</style>