Improve concept teaser layout

This commit is contained in:
Björn Fromme
2021-10-12 16:03:41 +02:00
parent 3421edb7a6
commit 33cda815ce
@@ -7,17 +7,12 @@
title="{concept.name}"
class="flex flex-col">
<f:render partial="TeaserImage" arguments="{image: concept.teaserImage}"/>
<f:if condition="{concept.code}">
<div class="bg-concept-{concept.code} text-white uppercase leading-none p-2">
{concept.name}
</div>
</f:if>
<div class="flex-1 py-4 px-2 bg-white border-l border-r border-gray-200">
{concept.teaser -> f:format.crop(maxCharacters: settings.teaserTextMaxChars) -> f:format.html()}
</div>
<button class="button w-full">
{f:translate(key: 'tx_eptheme.label.teaserbutton.default', extensionName: 'ep_theme')}
</button>
<div class="bg-concept-{concept.code} text-white uppercase leading-none p-2">
{concept.name}
</div>
</f:link.typolink>
</f:section>