templates/home.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block bodycont %}
  3.     <div class="container-fluid bg-dark-gray h-100 bg-image">
  4.         <div class="row h-100 flex-column flex-md-row align-items-center">
  5.             <div class="col"></div>
  6.             <div class="col-sm-5">
  7.                 <div class="card text-center bg-dark text-white bg-gradient">
  8.                     <div class="card-body">
  9.                         <div class="border-bottom flex-grow-0">
  10.                             <div class="text-center mb-2 text-muted">
  11.                                 <i class="fas fa-user-lock fa-5x"></i>
  12.                             </div>
  13.                             <h5 class="card-title">Nau mai, haere mai</h5>
  14.                         </div>
  15.                         <section class="flex-grow-1 position-relative">
  16.                             <div class="w-100 h-100 mt-3">
  17.                                 <div class="d-grid gap-3">
  18.                                     {% for type, flash_messages in app.session.flashBag.all %}
  19.                                         {% for flash_message in flash_messages %}
  20.                                             <div class="alert alert-{{ type }} alert-dismissible fade show mt-3 mb-0" role="alert">
  21.                                                 {{ flash_message }}
  22.                                                 <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  23.                                             </div>
  24.                                         {% endfor %}
  25.                                     {% endfor %}
  26.                                     {% if is_granted('IS_AUTHENTICATED_FULLY') %}
  27.                                         <a class="btn bg-gradient btn-primary btn-block" href="{{ path('profile_' ~ app.user() | get_path_entity_name ~ '_edit') }}">Edit Profile</a>
  28.                                         <a class="btn bg-gradient btn-danger btn-block" href="{{ path('authentication_' ~ app.user() | get_path_entity_name ~ '_leave') }}">Sign out</a>
  29.                                     {% else %}
  30.                                         <a class="btn bg-gradient btn-secondary btn-block" href="{{ path('authentication_human_user_authenticate') }}">Sign In as a User</a>
  31.                                         <a class="btn bg-gradient btn-secondary btn-block" href="{{ path('authentication_group_user_authenticate') }}">Sign In as a Group</a>
  32.                                         <a class="btn bg-gradient btn-secondary btn-block" href="{{ path('authentication_organization_user_authenticate') }}">Sign In as an Organization</a>
  33.                                     {% endif %}
  34.                                     <hr class="my-0">
  35.                                     <button class="btn btn-info btn-block" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasHelp" aria-controls="offcanvasHelp">How to I get started?</button>
  36. {#                                    <a class="btn btn-warning btn-block" href="{{ path('questionsandanswers') }}">Questions and Answers</a>#}
  37.                                 </div>
  38.                             </div>
  39.                         </section>
  40.                     </div>
  41.                     <div class="card-footer">
  42.                         <a class="fst-italic text-decoration-none text-muted" href="https://www.epiphron.co.nz">Copyright © {{ 'now' | date('Y') }} Epiphron Limited</a>
  43.                     </div>
  44.                 </div>
  45.             </div>
  46.             <div class="col"></div>
  47.         </div>
  48.     </div>
  49. {% endblock %}