feat: paragraph factory-an espazioa jartzen du
This commit is contained in:
@@ -10,14 +10,30 @@ interface Props {
|
|||||||
const { paragraph } = Astro.props;
|
const { paragraph } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
{
|
<div>
|
||||||
paragraph.type === "ComponentParagraphIrudia" && (
|
{
|
||||||
<ParagraphIrudia media={paragraph.media} />
|
paragraph.type === "ComponentParagraphIrudia" && (
|
||||||
)
|
<ParagraphIrudia media={paragraph.media} />
|
||||||
}
|
)
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
paragraph.type === "ComponentParagraphTestua" && (
|
paragraph.type === "ComponentParagraphTestua" && (
|
||||||
<ParagraphTestua testua={paragraph.testua} />
|
<ParagraphTestua testua={paragraph.testua} />
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@use "../../../style/tools/mediaQueries.scss";
|
||||||
|
|
||||||
|
div {
|
||||||
|
margin-bottom: var(--space-05-mobile);
|
||||||
|
|
||||||
|
&:not(:last-child) {
|
||||||
|
@include mediaQueries.aboveTablet {
|
||||||
|
margin-bottom: var(--space-05-desktop);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user