<div class="teaser
teaser--basic
">
<div class="teaser__text ">
<p class="headline h4">
Basic Teaser
</p>
<p>
Lorem <a href="#">Testlink</a> ipsum dolor sit amet
</p>
<button class="button" role="button" type="">
<span class="caption">
More
</span>
</button>
</div>
</div>
<div
class="teaser
{{#if type}} teaser--{{type}}{{/if}}
{{#if direction}} teaser--{{direction}}{{/if}}
{{#if offset}} teaser--offset{{/if}}
{{#if className}} {{ className }}{{/if}}
">
{{#if img}}
<div class="teaser__visual">
<img class="img-fluid" src="{{ img.src }}" />
</div>
{{/if}}
<div class="teaser__text {{#if offset}} col-10 offset-1{{/if}}">
{{#if publishDate}}
<small><time class="d-block mb-2">{{ publishDate }}</time></small>
{{/if}}
<p class="headline h4">
{{{ title }}}
</p>
<p>
{{{ text }}}
{{#if link}}
{{> @link link styled=true }}
{{/if}}
</p>
{{#if cta}}
{{> @button cta }}
{{/if}}
</div>
</div>
{
"type": "basic",
"title": "Basic Teaser",
"text": "Lorem <a href=\"#\">Testlink</a> ipsum dolor sit amet",
"img": null,
"cta": {
"text": "More",
"secondary": true
}
}
.teaser {
display: flex;
flex-flow: column;
gap: 2rem;
&--basic {
.teaser {
&__text {
padding: 2rem;
}
}
}
&--card {
.teaser {
&__visual {
img {
display: block;
width: 100%;
}
}
}
}
&--row {
flex-flow: column;
@include media-breakpoint-up(md) {
flex-flow: row;
align-items: flex-end;
}
}
}
No notes defined.