templates/home/index.html.twig line 1

  1. {% extends 'home/base.html.twig' %}
  2. {% block head %}
  3. {% endblock %}
  4. {% block title %}Les motards du viaduc !{% endblock %}
  5. {% block header %}
  6.     <header class="container bg-dark bg-opacity-50 rounded text-center mt-5 mb-5 text-white position-relative p-5" id="home_header">
  7.         <nav class="navbar bg-transparent position-absolute top-0 end-0">
  8.             <div class="d-flex px-0">
  9.                 {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  10.                     {% if is_granted('ROLE_ADMIN') %}
  11.                         <a class="navbar-brand ui large button olive text-white me-2" href="{{ path('admin') }}" tabindex="0">
  12.                             <div class="visible content"><i class="fa-solid fa-user-gear me-2"></i>Admin</div>
  13.                         </a>
  14.                         <a class="navbar-brand ui large button red text-white me-2 px-3" href="{{ path('app_logout') }}" tabindex="0">
  15.                             <div class="visible content"><i class="fa-solid fa-arrow-right-from-bracket"></i></div>
  16.                         </a>
  17.                     {% else %}
  18.                         <a class="navbar-brand ui large button teal mx-0 mx-sm-1" href="{{ path('app_don_new') }}" tabindex="0">
  19.                             <div class="visible content"><i class="fa-solid fa-hand-holding-heart me-2"></i>Faire un don</div>
  20.                         </a>
  21.                         <a class="navbar-brand ui large button olive text-white mx-0 mx-sm-1" href="{{ path('app_reservation_index') }}" tabindex="0">
  22.                             <div class="visible content"><i class="fa-brands fa-wpforms me-2"></i>Mes réservations</div>
  23.                         </a>
  24.                         <a class="navbar-brand ui large button red text-white mx-0 mx-sm-2 px-3" href="{{ path('app_logout') }}" tabindex="0">
  25.                             <div class="visible content"><i class="fa-solid fa-arrow-right-from-bracket"></i></div>
  26.                         </a>
  27.                     {% endif %}
  28.                 {% else %}
  29.                     <a class="navbar-brand ui large button teal me-2" href="{{ path('app_don_new') }}" tabindex="0">
  30.                         <div class="visible content"><i class="fa-solid fa-hand-holding-heart me-2"></i>Faire un don</div>
  31.                     </a>
  32.                     <a class="navbar-brand ui large button yellow text-dark me-2" href="{{ path('login') }}" tabindex="0">
  33.                         <div class="visible content">Connexion</div>
  34.                     </a>
  35.                 {% endif %}
  36.             </div>
  37.         </nav>
  38.         <h1 class="display-1">{{ edition.name }}</h1>
  39.         {% if diff_show %}
  40.         <h2 class="text-danger"> Fin des inscriptions dans {{ diff_show }}</h2>
  41.         {% endif %}
  42.         <div style="text-align: initial;">
  43.             {{ edition.description|raw }}
  44.         </div>
  45.         <p class="mt-5 mb-0 text-center text-white display-3">Nos forfaits</p>
  46.         <div class="arrow"></div>
  47.     </header>
  48. {% endblock %}
  49. {% block main %}
  50.     <div class="container my-5">
  51.         <div class="row g-4">
  52.             {% for forfait in edition.listeForfaits %}
  53.                 {% include 'home/_forfait.html.twig' %}
  54.             {% endfor %}
  55.             {% for tombola in edition.listeTombolas %}
  56.                 {% include 'home/_tombola.html.twig' %}
  57.             {% endfor %}
  58.         </div>
  59.     </div>
  60. {% endblock %}
  61. {% block footer %}{% endblock %}
  62. {% block javascripts %}{% endblock %}