2022-10-24 23:11:48 +00:00
|
|
|
{% macro offer(image_filename, name, description) %}
|
2023-05-31 00:27:56 +00:00
|
|
|
<div class="pt-3 pb-5 row">
|
|
|
|
<div class="flex-wrap col d-flex align-content-center"
|
2022-11-06 19:54:49 +00:00
|
|
|
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 }}"
|
2023-05-31 00:27:56 +00:00
|
|
|
class="mx-auto rounded shadow d-block img-fluid"/>
|
2022-10-24 23:11:48 +00:00
|
|
|
</div>
|
2023-05-31 00:27:56 +00:00
|
|
|
<div class="flex-wrap mt-3 col d-flex align-content-center ms-5 me-5"
|
2022-11-06 19:54:49 +00:00
|
|
|
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) %}
|
2023-05-31 00:27:56 +00:00
|
|
|
<div class="pb-5 text-center">
|
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 %}
|