This commit is contained in:
parent
729704984c
commit
4bd975796e
148 changed files with 4865 additions and 27561 deletions
22
src/components/Figure.astro
Normal file
22
src/components/Figure.astro
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
import type { HTMLAttributes } from 'astro/types'
|
||||
|
||||
interface Props extends HTMLAttributes<"figure">{}
|
||||
|
||||
const props = Astro.props
|
||||
---
|
||||
|
||||
<figure {...props}>
|
||||
<slot />
|
||||
</figure>
|
||||
|
||||
<style>
|
||||
.content figure.image {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-top: 16px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue