templates/pdf/property.html.twig line 1

Open in your IDE?
  1. <div class="container">
  2.     <style>
  3.         hr {
  4.             color: rgb(206, 34, 72);
  5.         }
  6.         div {
  7.             font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  8.         }
  9.         /* Container */
  10.         .container {
  11.             width: 100%;
  12.             padding-right: 15px;
  13.             padding-left: 15px;
  14.             margin-right: auto;
  15.             margin-left: auto;
  16.         }
  17.         /* Font weight bold */
  18.         .font-weight-bold {
  19.             font-weight: 700;
  20.         }
  21.         /* Display inline block */
  22.         .d-inline-block {
  23.             display: inline-block;
  24.         }
  25.         /* Align text top */
  26.         .align-text-top {
  27.             vertical-align: text-top;
  28.         }
  29.         /* Margin bottom */
  30.         .mb-4 {
  31.             margin-bottom: 1.5rem;
  32.         }
  33.         /* Justify content between */
  34.         .d-flex {
  35.             display: flex;
  36.         }
  37.         .justify-content-between {
  38.             justify-content: center;
  39.         }
  40.         .align-items-center {
  41.             align-items: center;
  42.         }
  43.         /* Badge */
  44.         .badge {
  45.             display: inline-block;
  46.             padding: 0.25em 0.4em;
  47.             font-size: 75%;
  48.             text-align: center;
  49.             white-space: nowrap;
  50.             border-radius: 0.25rem;
  51.         }
  52.         .badge.bg-coupdocoeur {
  53.             background-color: #191f39;
  54.             color: white;
  55.         }
  56.         .badge.rounded-pill {
  57.             border-radius: 30rem;
  58.         }
  59.         /* Card title */
  60.         .card-title {
  61.             margin-bottom: 0.75rem;
  62.         }
  63.         /* Modal body */
  64.         .modal-body {
  65.             position: relative;
  66.             flex: 1 1 auto;
  67.             padding: 1rem;
  68.         margin-bottom: 20px;
  69.         }
  70.         /* Border */
  71.         .border {
  72.             border: 1px solid #dee2e6 !important;
  73.         }
  74.         /* Padding */
  75.         .p-3 {
  76.             padding: 1rem !important;
  77.         }
  78.         /* Modal footer */
  79.         .modal-footer {
  80.             display: flex;
  81.             flex-wrap: wrap;
  82.             align-items: center;
  83.             justify-content: left;
  84.             padding: 0.75rem;
  85.             border-top: 1px solid #dee2e6;
  86.         }
  87.         /* Text danger */
  88.         .text-danger {
  89.             color: #dc3545 !important;
  90.             padding-left: 35px;
  91.         }
  92.         /* Width 100 */
  93.         .w-100 {
  94.             width: 67% !important;
  95.             border-radius: 64px;
  96.             padding: 2.25rem;
  97.         }
  98.         .card {
  99.             position: relative;
  100.             display: flex;
  101.             flex-direction: column;
  102.             min-width: 0;
  103.             word-wrap: break-word;
  104.             background-color: #fff;
  105.             background-clip: border-box;
  106.             border: 1px solid rgb(255, 255, 255);
  107.             border-radius: 0.25rem;
  108.         }
  109.         @media (min-width: 576px) {
  110.             .modal-dialog {
  111.                 max-width: 75em;
  112.                 margin: 1.75rem auto;
  113.             }
  114.         }
  115.         .bg-coupdocoeur {
  116.             background-color: #191f39;
  117.             font-size: 16px;
  118.             color: white;
  119.             font-weight: normal;
  120.         }
  121.         .vertical-table {
  122.             display: flex;
  123.             flex-direction: column;
  124.             width: 100%;
  125.         }
  126.         .property-item {
  127.             margin-bottom: 1rem;
  128.             font-size: 20px;
  129.         }
  130.         .property-label {
  131.             font-weight: bold;
  132.             margin-right: 0.5rem;
  133.             background-color: #f8d7da;
  134.             border-color: #f5c6cb;
  135.             color: black;
  136.             padding: 0.75rem;
  137.         }
  138.         .property-value {
  139.             margin-left: 10px;
  140.         }
  141. img{
  142.     width:100%:
  143.     height:100%
  144. }
  145. footer{
  146. font-size:10px;
  147. }
  148.     </style>
  149.     <div>
  150.         <div>
  151.             <img src="data:image/jpeg;base64,{{ imageBase64 }}" alt="CoupdcoeurimmoLogo" width="120" height="120" class="d-inline-block align-text-top">
  152.         </div>
  153.         <hr>
  154.         <h1 class="font-weight-bold text-danger" id="title">{{ property.title|raw }}</h1>
  155.         <div>
  156.             <div id="image">
  157.                     <img src="data:image/jpeg;base64,{{ encodedImage }}" alt="Property Image" width="300" height="200">
  158.             </div>
  159.             <div class="card-body" id="tableau">
  160.                 <h2 class="card-title mb-4 font-weight-bold">Caractéristiques</h2>
  161.                 <div class="vertical-table">
  162.                     <div class="property-item">
  163.                         <div class="property-label">Nombre de pièces : {{ property.roomNumber }}</div>
  164.                     </div>
  165.                     <div class="property-item">
  166.                         <div class="property-value">Ce bien dispose d'un jardin : {{ property.garden ? 'Oui' : 'Non' }}</div>
  167.                     </div>
  168.                     <div class="property-item">
  169.                         <div class="property-label">Type du logement : {{ property.housingType.name }}</div>
  170.                     </div>
  171.                     <div class="property-item">
  172.                         <div class="property-value">Surface : {{ property.harea }} m²</div>
  173.                     </div>
  174.                     <div class="property-item">
  175.                         <div class="property-label">Type de transaction : {{ property.category.name }}</div>
  176.                     </div>
  177.                     <div class="property-item">
  178.                         <div class="property-value">Chauffage : {{ property.heating }}</div>
  179.                     </div>
  180.                     <div class="property-item">
  181.                         <div class="property-label">Année de construction : {{ property.yearBuilt|date('Y') }}</div>
  182.                     </div>
  183.                     <div class="property-item">
  184.                         <div class="property-value">Catégorie : {{ property.category.name }}</div>
  185.                     </div>
  186.                 </div>
  187.             </div>
  188.         </div>
  189.     </div>
  190.     <div class="modal-body">
  191.         <div class="border p-3">
  192.             <h2 class="font-weight-bold">Description</h2>
  193.             <p class="card-text">{{ property.content|raw }}</p>
  194.         </div>
  195.         <div class="border p-3">
  196.             <h2 class="font-weight-bold">Catégorie</h2>
  197.             <p>{{ property.category.name }}</p>
  198.         </div>
  199.         <div class="border p-3">
  200.             <h2 class="font-weight-bold">Date d'ajout</h2>
  201.             <p>{{ property.createdAt|date("d/m/Y") }}</p>
  202.         </div>
  203.     </div>
  204. </div>
  205. <footer> Pour plus d'info voir sur <strong>www.coupdcoeurimmo.fr</strong></footer>