templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  6.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7.     <title>{% block title %}Authentification{% endblock %}</title>
  8.     {% if FAVICON_URL %}
  9.         <link rel="icon" type="image/png" href="{{ FAVICON_URL }}" />
  10.     {% endif %}
  11.     {{ encore_entry_link_tags('main') }}
  12.     {% if STYLE_URL %}
  13.         <link href="{{ STYLE_URL }}" rel="stylesheet" />
  14.     {% endif %}
  15.     {% block stylesheets %}{% endblock %}
  16. </head>
  17. <body class="background--initial">
  18.     <div id="background-logo" class="background"></div>
  19.     {% if ADDITIONAL_BG_URL %}
  20.         <div id="background-additional" class="background background--additional"></div>
  21.     {% endif %}
  22.     <div class="container-fluid">
  23.         {% block body %}
  24.             <div class="row">
  25.                 <div class="col-sm-1 col-md-2 col-lg-2"></div>
  26.                 <div class="col-sm-7 col-md-5 col-lg-4 col-xl-3">
  27.                     {% block card %}{% endblock %}
  28.                 </div>
  29.             </div>
  30.         {% endblock %}
  31.     </div>
  32.     {% if MORE_LOGOS_URLS %}
  33.         <footer class="row justify-content-center bg-white w-100 p-2 d-none d-lg-flex footer">
  34.             {% for logo_url in MORE_LOGOS_URLS | split(';') %}
  35.                 <div class="col-2 text-center">
  36.                     <img src="{{ logo_url }}" alt="" />
  37.                 </div>
  38.             {% endfor %}
  39.         </footer>
  40.     {% endif %}
  41.     {{ encore_entry_script_tags('app') }}
  42.     {% block javascripts %}
  43.         {% if BG_URL %}
  44.             <script>
  45.                 const background = document.getElementById('background-logo');
  46.                 document.body.classList.remove('background--initial');
  47.                 background.style.backgroundImage = "url('{{ random(BG_URL|split(";")) }}')";
  48.             </script>
  49.         {% endif %}
  50.         {% if ADDITIONAL_BG_URL %}
  51.             <script>
  52.                 const additionalBackground = document.getElementById('background-additional');
  53.                 additionalBackground.style.backgroundImage = "url('{{ ADDITIONAL_BG_URL }}')";
  54.             </script>
  55.         {% endif %}
  56.     {% endblock %}
  57. </body>
  58. </html>