templates/components/header.html.twig line 1

Open in your IDE?
  1. <div id="header" class="d-flex align-items-center p-0">
  2.     <nav class="navbar dark-mode w100" role="navigation">
  3.         <div class="navbar__logo">
  4.             {% if app.user %}
  5.                 <a href="{{ path('dashboard') }}">&nbsp;</a>
  6.             {% else %}
  7.                 <a href="{% if current == "login" or current == "cgv" or current == "cgu" %}{{ path('home') }}{% else %}#home{% endif %}">&nbsp;</a>
  8.             {% endif %}
  9.         </div>    
  10.         <ul class="navbar__links">
  11.             <li class="navbar__link first"><a href="{% if current == "login" %}{{ path('home') }}{% endif %}#about">À propos</a></li>
  12.             <li class="navbar__link second"><a href="{% if current == "login" %}{{ path('home') }}{% endif %}#services">Services</a></li>
  13.             <li class="navbar__link third"><a href="{% if current == "login" %}{{ path('home') }}{% endif %}#avantages">Avantages</a></li>
  14.             <li class="navbar__link four"><a href="{% if current == "login" %}{{ path('home') }}{% endif %}#testimonials">Témoignages</a></li>
  15.             <li class="navbar__link fifth"><a href="{% if current == "login" %}{{ path('home') }}{% endif %}#contact">Contact</a></li>
  16.             {% if app.user %}
  17.                 {% if current != "dashboard" %}
  18.                     <li class="navbar__link sixt"><a href="{{ path('dashboard') }}">Tableau de bord</a></li>
  19.                 {% endif %}
  20.             {% else %}
  21.                 {% if current != "login" %}
  22.                     <li class="navbar__link sixt ms-5"><a href="{{ path('app_login') }}">Connexion</a></li>
  23.                     
  24.                 {% endif %}
  25.             {% endif %}
  26.         </ul>   
  27.         <button class="burger me-5">
  28.             <span class="bar"></span>  
  29.         </button>   
  30.     </nav>
  31.     {# <div class="row h100 w100">
  32.         <div class="col-lg-2 col-sm-6 d-flex align-items-center ">
  33.             <div id="logo" class="">
  34.                 {% if app.user %}
  35.                     <a href="{{ path('dashboard') }}">&nbsp;</a>
  36.                 {% else %}
  37.                     <a href="{% if current == "login" or current == "cgv" or current == "cgu" %}{{ path('home') }}{% else %}#home{% endif %}">&nbsp;</a>
  38.                 {% endif %}
  39.             </div>
  40.         </div>
  41.         <div class="col-8 navbar">
  42.             {% if not app.user %}
  43.                 {% include "components/partials/_nav.html.twig" %}
  44.             {% endif %}
  45.         </div>
  46.         <div class="col-2 d-flex align-items-center justify-content-end navbar">
  47.             {% if app.user %}
  48.                 {% if current != "dashboard" %}
  49.                     <a class="btn btn-yellow" href="{{ path('dashboard') }}" role="button">Tableau de bord</a>
  50.                 {% endif %}
  51.             {% else %}
  52.                 {% if current != "login" %}
  53.                     <a class="btn btn-secondary" href="{{ path('app_login') }}" role="button"><i class="fa-regular fa-user"></i> Connexion</a>
  54.                 {% endif %}
  55.             {% endif %}
  56.         </div>
  57.         <div class="col-auto">
  58.             <button class="burger">
  59.                 <span class="bar"></span>  
  60.             </button>
  61.         </div>
  62.     </div> #}
  63. </div>
  64. {# {% if not app.user %}
  65.     <div class="nav_mobil">
  66.         {% include "components/partials/_nav_mobil.html.twig" %}
  67.     </div>
  68. {% endif %} #}