Adobt new teaser rendering
This commit is contained in:
+18
-15
@@ -6,28 +6,31 @@
|
||||
<f:layout name="Bare"/>
|
||||
|
||||
<f:section name="Main">
|
||||
<f:link.typolink class="teaserbox teaserbox--country" parameter="{country.detailPage}" title="{country.name}">
|
||||
<div class="teaserbox__image">
|
||||
<svg class="teaserbox__flag">
|
||||
<a href="{f:uri.typolink(parameter: country.detailPage)}" class="flex flex-col group">
|
||||
<div class="relative">
|
||||
<svg class="w-8 h-6 absolute top-0 left-0">
|
||||
<use href="{f:uri.image(src: 'EXT:ep_theme/Resources/Public/images/icons_sprite.svg')}#icon-flag-{country.code -> f:format.case(mode: 'lower')}"></use>
|
||||
</svg>
|
||||
<ep:lazyLoadImage image="{country.teaserImages.0}"
|
||||
loaderimg="EXT:ep_theme/Resources/Public/images/lazy.png"
|
||||
class="block w-full h-full object-cover"
|
||||
width="360c"
|
||||
height="270c"
|
||||
alt="{country.name}" />
|
||||
<f:if condition="{country.teaserImages}">
|
||||
<ep:lazyLoadImage image="{country.teaserImages.0}"
|
||||
loaderimg="EXT:ep_theme/Resources/Public/images/lazy.png"
|
||||
class="block w-full h-full object-cover"
|
||||
width="360c"
|
||||
height="270c"
|
||||
alt="{country.name}" />
|
||||
</f:if>
|
||||
</div>
|
||||
<div class="teaserbox__main">
|
||||
<span class="headline headline--3">{country.name}</span>
|
||||
<hr>
|
||||
<div class="flex-1 py-4 px-2 bg-white border-l border-r border-gray-200" data-rte-content>
|
||||
<span class="headline--3 mb-4">
|
||||
{country.name}
|
||||
</span>
|
||||
{country.teaser -> f:format.crop(maxCharacters: settings.teaserTextMaxChars) -> f:format.html()}
|
||||
</div>
|
||||
<button type="button"
|
||||
class="button button--full teaserbox__button">
|
||||
{f:translate(key: 'tx_eptheme.label.teaserbutton.default', extensionName: 'ep_theme')}
|
||||
class="button w-full">
|
||||
{data.button -> v:or(alternative: 'Details')}
|
||||
</button>
|
||||
</f:link.typolink>
|
||||
</a>
|
||||
</f:section>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user