{% extends "base.html.twig" %}
{% block body %}
{% embed "1-col-sidebar.html.twig" %}
{% block column %}
{% if site_code == constant("App\\Entity\\Content::SITE_RCS") %}
{% include "includes/curtain-ads/rlw.html.twig" %}
{% endif %}
<style>
.book {
height: 288px;
margin: auto;
box-shadow: 5px 4px 6px 2px #0000006e;
position: relative;
transition: 0.2s ease-in-out;
width: 223px;
overflow: hidden;
}
.book:hover {
box-shadow: 0 12px 15px -2px #0000006e;
padding: 0;
transform: scale(1.05);
}
.book:hover > .title {
bottom: 15px;
}
.title {
/*position: absolute;*/
bottom: 5px;
left: 0;
width: 100%;
text-align: center;
font-weight: bolder;
transition: 0.2s ease-in-out;
padding: 0 10px;
}
.book-container {
margin-top: 20px;
margin-bottom: 14px;
}
.cover-art {
max-height: 288px;
margin: auto;
display: block;
}
.row {
display: flex;
flex-direction: row;
}
.column {
justify-content: center;
display: flex;
flex-direction: column;
}
</style>
<div class="row">
{% if customer is defined %}
<h1>{{customer}}</h1>
{% else %}
<h1>{{title}}</h1>
{% endif %}
{% if showSortSelect is defined and showSortSelect %}
{% include "includes/ebooks-sort-select.html.twig" %}
{% endif %}
</div>
<div class="row">
{% for eBook in eBooks %}
<a class="col-lg-4 col-md-6" href="{{eBook.getURL()}}">
<div class="book-container">
<div class="book">
{% if eBook.getMedia() %}
{{eBook.getMedia().getImageTag('cover-art')|raw}}
{% endif %}
{# <span class="title">{{eBook}}</span> #}
</div>
</div>
<div class="title">{{eBook.getTitle()}}</div>
</a>
{% endfor %}
</div>
{% endblock %}
{% endembed %}
{% endblock %}