1
0
Fork 0
yinghong-massage.de/templates/macros/offers.tera.html

42 lines
1.4 KiB
HTML
Raw Normal View History

2022-10-24 23:11:48 +00:00
{% macro offer(image_filename, name, description) %}
<div class="row pb-5 pt-3">
2022-11-06 19:54:49 +00:00
<div class="col d-flex align-content-center flex-wrap"
style="min-width: 300px">
2022-10-24 23:11:48 +00:00
{% set dir = page.path | trim_start_matches(pat="/") %}
{% set image_path = dir ~ image_filename %}
{% set image = resize_image(path=image_path, width=400, height=400, op="fill") %}
2022-11-06 19:54:49 +00:00
<img src="{{ image.url }}"
class="rounded d-block mx-auto img-fluid shadow"/>
2022-10-24 23:11:48 +00:00
</div>
2022-11-06 19:54:49 +00:00
<div class="col d-flex align-content-center flex-wrap ms-5 me-5 mt-3"
style="min-width: 300px">
2022-10-24 23:11:48 +00:00
<div>
<h3>{{ name }}</h3>
<p>{{ description | safe }}</p>
</div>
</div>
</div>
{% endmacro %}
{% macro prices_table(caption, names, prices) %}
<div class="text-center pb-5">
2022-10-29 19:12:53 +00:00
<h3 class="h3">{{ caption }}</h3>
2022-10-24 23:11:48 +00:00
<div class="d-inline-flex">
2022-10-29 19:12:53 +00:00
<table class="table">
2022-10-24 23:11:48 +00:00
<tbody>
{% for name in names %}
<tr>
<th class="pe-3" scope="row">{{ name }}</th>
<td class="ps-3">{{ prices | nth(n=loop.index0) }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
<hr>
{% endmacro %}