templates/front/connexion.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="fr" class="h-100">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css" rel="stylesheet">
  7.     <title>Connexion</title>
  8.     <style>
  9.         @font-face {
  10.             font-family: 'Goldman';
  11.             font-style: normal;
  12.             font-weight: 400;
  13.             src: local('Goldman'), url('https://fonts.cdnfonts.com/s/46601/Goldman-Regular.woff') format('woff');
  14.         }
  15.         @font-face {
  16.             font-family: 'Goldman';
  17.             font-style: normal;
  18.             font-weight: 700;
  19.             src: local('Goldman'), url('https://fonts.cdnfonts.com/s/46601/Goldman-Bold.woff') format('woff');
  20.         }
  21.         @font-face {
  22.             font-family: 'Nunito';
  23.             font-style: normal;
  24.             font-weight: 400;
  25.             src: local('Nunito'), url('https://fonts.cdnfonts.com/s/15604/Nunito-Regular.woff') format('woff');
  26.         }
  27.         @font-face {
  28.             font-family: 'Nunito';
  29.             font-style: normal;
  30.             font-weight: 700;
  31.             src: local('Nunito'), url('https://fonts.cdnfonts.com/s/15604/Nunito-Bold.woff') format('woff');
  32.         }
  33.         .h-100vh {
  34.             min-height: 100vh;
  35.         }
  36.         #diapo1 {
  37.             background-image: url("images/front/3Page-DS-login-img-left-side.jpg");
  38.         }
  39.         #diapo2 {
  40.             background-image: url("images/front/3Page-DS-login-img-right-side.jpg");
  41.         }
  42.         #diapo1, #diapo2 {
  43.             background-size: 100% 100%;
  44.         }
  45.         .Rectangle-32 {
  46.             border-radius: 40px;
  47.             border: solid 2px #065285;
  48.             background-color: #bfd119;
  49.             width: 60%;
  50.             max-width: 410px;
  51.         }
  52.         label.required {
  53.             padding: 0;
  54.         }
  55.         input[type=text], input[type=password] {
  56.             border: solid 1px #065285;
  57.             border-radius: unset;
  58.         }
  59.         label.required {
  60.             font-size: 23px;
  61.             font-weight: bold;
  62.             color: #06003b;
  63.         }
  64.         .connectBtn {
  65.             background-color: #065285;
  66.             color: #c0d119;
  67.             font-family: Nunito;
  68.             font-size: 23px;
  69.             border-radius: 17px;
  70.             font-weight: bold;
  71.         }
  72.         
  73.     </style>
  74. </head>
  75. <body class="h-100vh">
  76.     <div class="container-fluid">
  77.         <div class="row h-100vh row-cols-1 row-cols-md-2">
  78.             <div id="diapo1" class="col h-100vh">&nbsp;</div>
  79.             <div id="diapo2" class="col h-100vh position-relative">
  80.                 <div class="Rectangle-32 position-absolute top-50 start-50 translate-middle text-white p-5">
  81.                     {% for message in app.flashes('adios') %}
  82.                         <div class="alert alert-success">
  83.                             {{ message }}
  84.                         </div>
  85.                     {% endfor %}
  86.                     
  87.     
  88.                     {% if error %}
  89.                     <div class="alert alert-danger">
  90.                         {{error.messageKey | trans(error.messagedata, 'security')}}
  91.                     </div>
  92.                     {% endif %}
  93.                     <form method="POST">
  94.                         <div class="row m-0 mb-3">
  95.                             <label class="required col-12 col-sm">Login 
  96.                                 <input type="text" required name="_username" class="form-control" value="{{lastUserName}}">
  97.                             </label>
  98.                         </div>
  99.                         <div class="row m-0 mb-3">
  100.                             <label class="required col-12 col-sm">Password 
  101.                                 <input type="password" required name="_password" class="form-control">
  102.                             </label>
  103.                         </div>
  104.                         <div class="m-0 mt-5 px-4">
  105.                             <input type="submit" class="btn connectBtn text-break w-100 py-2" value="Connexion">
  106.                         </div>
  107.                     </form>
  108.                 </div>
  109.             </div>
  110.         </div>
  111.     </div>
  112.     <!-- Option 1: Bootstrap Bundle with Popper -->
  113.     <!-- Option 2: Separate Popper and Bootstrap JS -->
  114.     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/js/bootstrap.min.js"></script>
  115. </body>
  116. </html>