new donar home
This commit is contained in:
parent
4345b05e21
commit
59ea19604f
@ -6,8 +6,9 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="container text-dark">
|
<div class="container text-dark">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{{ macros.home_item(title='All Rooms', url_id='all-rooms', description='Übersicht über alle Lehrräume an der Universität Bamberg.') }}
|
{{ macros.home_item_with_icon(icon='fa-map-o', url_id='search-rooms', title="Donar", icon_size='fa-3x') }}
|
||||||
{{ macros.home_item(title='Search Rooms', url_id='search-rooms', description='Du weißt nicht wo du hin musst? Hier kannst du ihn finden.') }}
|
{{ macros.home_item_with_icon(icon='fa-search', link='https://suche.wiai.de/', title="Roofis", icon_size='fa-3x') }}
|
||||||
|
{{ macros.home_item_with_icon(icon='fa-bus', url_id='', title='Bus und Bahn', icon_size='fa-3x') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -3,7 +3,7 @@
|
|||||||
{% block headline %}
|
{% block headline %}
|
||||||
<header class="">
|
<header class="">
|
||||||
<h1 class="text-center" style="font-size: 20px">BaStA</h1>
|
<h1 class="text-center" style="font-size: 20px">BaStA</h1>
|
||||||
<p class="text-center">Bamberger Studenten App</p>
|
<p class="text-center">Bamberger Studierenden App</p>
|
||||||
</header>
|
</header>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|||||||
@ -12,14 +12,30 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro home_item_with_icon(icon, url_id) -%}
|
{% macro home_item_with_icon(icon, icon_size='fa-4x', url_id='', link='', title='') -%}
|
||||||
<div class="col-6 p-3">
|
<div class="col-6 p-3">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
{% if url_id %}
|
||||||
<a href="{{ url(url_id) }}">
|
<a href="{{ url(url_id) }}">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h4 class="card-title"><i class="fa {{ icon }} fa-4x" aria-hidden="true"></i></h4>
|
<h4 class="card-title text-center"><i class="fa {{ icon }} {{ icon_size }}"
|
||||||
|
aria-hidden="true"></i></h4>
|
||||||
|
{% if title %}
|
||||||
|
<p class="text-center">{{ title }}</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="{{ link }}">
|
||||||
|
<div class="card-body">
|
||||||
|
<h4 class="card-title text-center"><i class="fa {{ icon }} {{ icon_size }}"
|
||||||
|
aria-hidden="true"></i></h4>
|
||||||
|
{% if title %}
|
||||||
|
<p class="text-center">{{ title }}</p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|||||||
Reference in New Issue
Block a user