templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>
  6.             {% block title %}Welcome!
  7.             {% endblock %}
  8.         </title>
  9.         <link rel="preconnect" href="https://fonts.googleapis.com">
  10.         <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  11.         <link href="https://fonts.googleapis.com/css2?family=Lobster&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
  12.         <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer"/>
  13.         <link
  14.         rel="stylesheet" href="/css/style.css"/>
  15.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  16.         {% block stylesheets %}{% endblock %}
  17.         {% block javascripts %}{% endblock %}
  18.     </head>
  19.     <body>
  20.         <header class="header">
  21.             <div class="logo">
  22.                 <p><a href="{{ path('app_home') }}">BookSell</a></p>
  23.                 <form method="GET" action="{{ path('app_home_search') }}">
  24.                     <input type="search" name="title" placeholder="Titre, Auteur, Editeur... " />
  25.                     <button type="submit">Rechercher</button>
  26.                   </form>
  27.             </div>
  28.             <nav class="header-menu">
  29.                 {% if is_granted('ROLE_USER') %}
  30.                     <h3>Bienvenue {{app.user.firstname}} !</h3>
  31.                     <a href="{{ path('app_basket_show') }}">Mon panier</a>
  32.                     <a href="{{ path('app_book_ad_new') }}">Déposer une annonce</a>
  33.                     <a href="{{ path('app_profile_show') }}">Mon profil</a>
  34.                     <a href="{{ path('app_logout') }}">Déconnexion</a>
  35.                 {% endif %}
  36.             </nav>
  37.         </header>
  38.         <div class="container">
  39.             {% block body '' %}
  40.         </div>
  41.         <footer class="footer">
  42.             <p>BookSell - Copyright 2023</p>
  43.         </footer>
  44.     </body>
  45. </html>