Доработка jumbotron

master
Антон Касимов 2019-02-05 00:40:59 +03:00
parent c6ea6f685a
commit 50f5a2210e
2 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,4 @@
{%- import 'macros.jinja2' as macros -%} {%- import 'macros.jinja2' as macros -%}
{%- import 'forms.jinja2' as forms -%}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{request.locale_name}}"> <html lang="{{request.locale_name}}">
<head> <head>

View File

@ -1,6 +1,6 @@
<div style="background: url({{jumbotron_image}}) no-repeat center center; background-size: cover"> <{{jumbotron_tag|default('div')}} style="{%if jumbotron_image%}background: url({{jumbotron_image}}) no-repeat center center; background-size: cover; {%endif%}min-height: 100vh" class="d-flex align-items-center"{%if jumbotron_id%} id="{{jumbotron_id}}"{%endif%}>
<div class="jumbotron container {{jumbotron_class|default('text-light bg-darken')}}"> <div class="jumbotron container my-auto {{jumbotron_class|default('text-light bg-darken')}}">
<h2>{{jumbotron_header}}</h2> {% if jumbotron_header %}<h2>{{jumbotron_header}}</h2>{%endif%}
{{jumbotron_content}} {{jumbotron_content}}
</div> </div>
</div> </{{jumbotron_tag|default('div')}}>