start_sf5_project_reboot/app/templates/default/homepage.html.twig

45 lines
1.3 KiB
Twig
Raw Permalink Normal View History

2021-04-17 20:11:27 +00:00
{% extends 'base.html.twig' %}
{% block body_id 'homepage' %}
{#
the homepage is a special page which displays neither a header nor a footer.
this is done with the 'trick' of defining empty Twig blocks without any content
#}
{% block header %}{% endblock %}
{% block footer %}{% endblock %}
{% block body %}
<div class="page-header">
<h1>{{ 'title.homepage'|trans|raw }}</h1>
</div>
<div class="row">
<div class="col-sm-6">
<div class="jumbotron">
<p>
{{ 'help.browse_app'|trans|raw }}
</p>
<p>
<a class="btn btn-primary btn-lg" href="{{ path('blog_index') }}">
<i class="fa fa-users" aria-hidden="true"></i> {{ 'action.browse_app'|trans }}
</a>
</p>
</div>
</div>
<div class="col-sm-6">
<div class="jumbotron">
<p>
{{ 'help.browse_admin'|trans|raw }}
</p>
<p>
<a class="btn btn-primary btn-lg" href="{{ path('admin_index') }}">
<i class="fa fa-lock" aria-hidden="true"></i> {{ 'action.browse_admin'|trans }}
</a>
</p>
</div>
</div>
</div>
{% endblock %}