[bs4] about page and media group using the bs4

This commit is contained in:
Manas Solanki
2018-04-19 14:32:11 +05:30
parent ea7bb60247
commit c1eec7fdb8
3 changed files with 775 additions and 867 deletions

View File

@@ -1,15 +1,13 @@
{% macro media(title, content, image, link) %}
<div class="media centered {% if link %}clickable{% endif %}"
<div class="media my-5 bg-light p-4 {% if link %}clickable{% endif %}"
{% if link %}style="cursor: pointer;"{% endif %}
{% if link %}onclick="location.href='{{ link }}'"{% endif %}>
<div class="media-left">
<a href="{{ link or "#" }}">
<img class="media-object"
<img class="mr-3 p-4"
src="{% if image %}{% if not '/' in image %}/assets/foundation/img/{% endif %}{{ image }}{% else %}/assets/foundation/img/frappe-bird-grey.svg{% endif %}"
style="{% if image and not '/' in image %}opacity: 0.4{% endif %}">
</a>
</div>
<div class="media-body">
<div class="media-body mt-0 lead p-4">
{% if title %}<h4 class="media-heading">{{ title }}</h4>{% endif %}
{{ content }}
</div>