templates/base.html.twig line 1

  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0" name="viewport">
  6.     {% block favicon %}
  7.         <link rel="apple-touch-icon" sizes="180x180" href="/img/icon/apple-touch-icon.png">
  8.         <link rel="icon" type="image/png" sizes="32x32" href="/img/icon/favicon-32x32.png">
  9.         <link rel="icon" type="image/png" sizes="16x16" href="/img/icon/favicon-16x16.png">
  10.         <link rel="manifest" href="/img/icon/site.webmanifest">
  11.         <link rel="mask-icon" href="/img/icon/safari-pinned-tab.svg" color="#be754f">
  12.         <link rel="shortcut icon" href="/img/icon/favicon.ico">
  13.         <meta name="msapplication-TileColor" content="#be754f">
  14.         <meta name="msapplication-config" content="/img/icon/browserconfig.xml">
  15.         <meta name="theme-color" content="#be754f">
  16.     {% endblock %}
  17.     <title>{% block title %}LADI{% endblock %}</title>
  18.     {% block meta %}
  19.         <meta name="description" content="{{ app.request.server.get('META_GEN_DESCRIPTION') }}">
  20.         <meta name="author" content="{{ app.request.server.get('META_GEN_AUTHOR') }}">
  21.     {% endblock %}
  22.     {% block canonical %}
  23.         <link rel="canonical" href="{{ app.request.server.get('APP_URL') }}">
  24.     {% endblock %}
  25.     {% block fbmeta %}
  26.         <!-- Facebook meta tags -->
  27.         <meta property="og:type" content="website">
  28.         <meta property="og:site_name" content="{{ app.request.server.get('META_FACEBOOK_NAME') }}">
  29.         <meta property="og:url" content="{{ app.request.uri }}">
  30.         <meta property="og:title" content="{{ app.request.server.get('META_FACEBOOK_TITLE') }}">
  31.         <meta property="og:description" content="{{ app.request.server.get('META_FACEBOOK_DESCRIPTION') }}">
  32.         <meta property="og:image" content="{{ app.request.server.get('META_FACEBOOK_IMAGE') }}">
  33.         <meta property="og:image:secure_url" content="{{ app.request.server.get('META_FACEBOOK_IMG') }}">
  34.         <meta property="og:image:url" content="{{ app.request.server.get('META_FACEBOOK_IMG') }}">
  35.         <meta property="og:image:type" content="{{ app.request.server.get('META_FACEBOOK_IMAGE_TYPE') }}">
  36.         <meta property="og:locale" content="fr_FR"/>
  37.     {% endblock %}
  38.     {% block twittermeta %}
  39.         <!-- Twitter meta tags -->
  40.         <meta name="twitter:card" content="summary_large_image">
  41.         <meta property="twitter:url" content="{{ app.request.uri }}">
  42.         <meta name="twitter:title" content="{{ app.request.server.get('META_TWITTER_TITLE') }}">
  43.         <meta name="twitter:description" content="{{ app.request.server.get('META_TWITTER_DESCRIPTION') }}">
  44.         <meta name="twitter:image" content="{{ app.request.server.get('META_TWITTER_IMAGE') }}">
  45.     {% endblock %}
  46.     <script defer type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
  47.     {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  48.     {% block stylesheets %}
  49.         {{ encore_entry_link_tags('app') }}
  50.     {% endblock %}
  51.     {% block javascripts %}
  52.         {{ encore_entry_script_tags('app') }}
  53.     {% endblock %}
  54. </head>
  55. <body class="text-text relative min-h-screen font-poppins overflow-x-hidden">
  56.     <header class="sticky top-0 z-20">
  57.         <div id="header"
  58.              class="px-3 pb-3 w-full md:w-5/6 max-w-[1400px] mx-auto rounded-b-[2.2rem]"
  59.         >
  60.             {% if news is defined and news[0].author %}
  61.             <div id="news"
  62.                  class="flex items-center justify-center gap-x-5 w-fit py-2 px-3 text-2xl bg-bg rounded-b-xl mx-auto text-center"
  63.             >
  64.                 {{ news[0].content | raw }}
  65.                 <ion-icon id="cross"
  66.                           class="hover:text-dark hover:cursor-pointer z-20" name="close"
  67.                 ></ion-icon>
  68.             </div>
  69.             {% endif %}
  70.             <div class="flex flex-row items-center justify-between h-24 md:h-28 md:py-0 pt-6 w-full duration-500 transition-all ease-in-out"
  71.             >
  72.                 <a id="logoLZN" class="h-20 p-2 md:p-3 bg-white/[0.4] rounded-full duration-300 transition-all ease-in-out z-20 hover:bg-white"
  73.                    href="http://www.lezennes.fr/" target="_blank">
  74.                     <img class="hidden md:block h-full" src="{{ asset('img/base/logotype_LZN_transparent.png') }}" alt="logo Lezennes" title="Site de la ville de Lezennes">
  75.                     <img class="md:hidden h-full" src="{{ asset('img/base/logo_LZN_transparent.png') }}" alt="logo Lezennes" title="Site de la ville de Lezennes">
  76.                 </a>
  77.                 <div class="flex flex-row h-full items-center gap-5 md:gap-10 z-20">
  78.                     <a  id="logoLADI" class="h-20 p-2 md:p-3 bg-white/[0.4] rounded-full hover:bg-white duration-300 transition-all ease-in-out"
  79.                         href="{{ path('app_home') }}">
  80.                         <img class="h-full" src="{{ asset('img/homepage/home_isidore.png') }}" alt="logo LADI" title="Retour accueil">
  81.                     </a>
  82.                     <ion-icon id="open-burger" class="p-1 self-center text-4xl md:text-5xl rounded-xl hover:bg-bg hover:cursor-pointer duration-300 transition-all ease-in-out" name="grid"></ion-icon>
  83.                 </div>
  84.             </div>
  85.             {{ include('partials/burger-menu.html.twig') }}
  86.         </div>
  87.     </header>
  88.     <div class="max-w-[1400px] w-5/6 mx-auto mt-20 pb-20 relative">
  89.         {% block body %}{% endblock %}
  90.     </div>
  91.     <footer class="absolute bottom-5 left-0 right-0">
  92.         <div class="flex flex-row justify-center max-w-[1400px] w-5/6 mx-auto">
  93.             <p class="text-xl text-center font-medium">Tous droits réservés. Les Amis D'Isidore - {{ 'now' | date('Y') }}</p>
  94.         </div>
  95.     </footer>
  96. </body>
  97. </html>