templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig line 1

Open in your IDE?
  1. <div id="header-homepage">
  2.     <img class="ui fluid image" id="image-header-homepage" src="{{ asset('background-homepage.png', 'shop') }}" alt="Sylius">
  3.     <div>
  4.         <h1>
  5.             Bienvenue dans le monde de la moto
  6.         </h1>
  7. {#        form with 1 input#}
  8.         <form action="" method="get" class="ui form" id="form-header-homepage">
  9.             <div class="ui action input" id="input-form">
  10.                 <input type="text" name="codepostal" placeholder="Code Postal " id="form-postalcode">
  11.                 <input type="text" name="criteria" placeholder="Rechercher un produit" id="search-product">
  12.                 <button class="ui button" type="submit" id="button-submit">Rechercher</button>
  13.             </div>
  14.         </form>
  15.     </div>
  16. </div>
  17. <style>
  18.     /*#header-homepage > div {*/
  19.     /*    width: 100%;*/
  20.     /*}*/
  21.     /*#header-homepage h1{*/
  22.     /*    position: relative;*/
  23.     /*    width: 100%;*/
  24.     /*    text-align: center;*/
  25.     /*    z-index: 2;*/
  26.     /*    color: white;*/
  27.     /*    font-size: 40px;*/
  28.     /*    padding-bottom: 2rem;*/
  29.     /*}*/
  30.     /*#header-homepage {*/
  31.     /*    position: relative;*/
  32.     /*    height: 100vh;*/
  33.     /*    width: 100%;*/
  34.     /*    display: flex;*/
  35.     /*    flex-direction: column;*/
  36.     /*    justify-content: center;*/
  37.     /*    align-items: center;*/
  38.     /*    overflow: hidden;*/
  39.     /*    z-index: 0;*/
  40.     /*}*/
  41.     /*#image-header-homepage {*/
  42.     /*    width: 100%;*/
  43.     /*    height: 100%;*/
  44.     /*    object-fit: cover;*/
  45.     /*    object-position: center;*/
  46.     /*    position: absolute;*/
  47.     /*    top: 0;*/
  48.     /*    left: 0;*/
  49.     /*    z-index: 1;*/
  50.     /*}*/
  51.     /*#form-header-homepage{*/
  52.     /*    width: fit-content;*/
  53.     /*    !*max-width: 500px;*!*/
  54.     /*    z-index: 2;*/
  55.     /*    margin: 0 auto;*/
  56.     /*}*/
  57.     /*#form-postalcode{*/
  58.     /*    width: 150px*/
  59.     /*}*/
  60.     /*#input-form{*/
  61.     /*    height: 5rem;*/
  62.     /*    background-color: white;*/
  63.     /*    padding: 0 !important;*/
  64.     /*}*/
  65.     /*#form-header-homepage #search-product{*/
  66.     /*    width: 300px;*/
  67.     /*    border-top-left-radius: 0 !important;*/
  68.     /*    border-bottom-left-radius: 0 !important;*/
  69.     /*}*/
  70.     /*#button-submit{*/
  71.     /*    height: 2.5rem;*/
  72.     /*    margin: auto 1rem;*/
  73.     /*    background-color: #E35E31;*/
  74.     /*    border-radius: 0.5rem;*/
  75.     /*    color: white;*/
  76.     /*}*/
  77. </style>