<div class="container">
<style>
hr {
color: rgb(206, 34, 72);
}
div {
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";
}
/* Container */
.container {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
/* Font weight bold */
.font-weight-bold {
font-weight: 700;
}
/* Display inline block */
.d-inline-block {
display: inline-block;
}
/* Align text top */
.align-text-top {
vertical-align: text-top;
}
/* Margin bottom */
.mb-4 {
margin-bottom: 1.5rem;
}
/* Justify content between */
.d-flex {
display: flex;
}
.justify-content-between {
justify-content: center;
}
.align-items-center {
align-items: center;
}
/* Badge */
.badge {
display: inline-block;
padding: 0.25em 0.4em;
font-size: 75%;
text-align: center;
white-space: nowrap;
border-radius: 0.25rem;
}
.badge.bg-coupdocoeur {
background-color: #191f39;
color: white;
}
.badge.rounded-pill {
border-radius: 30rem;
}
/* Card title */
.card-title {
margin-bottom: 0.75rem;
}
/* Modal body */
.modal-body {
position: relative;
flex: 1 1 auto;
padding: 1rem;
margin-bottom: 20px;
}
/* Border */
.border {
border: 1px solid #dee2e6 !important;
}
/* Padding */
.p-3 {
padding: 1rem !important;
}
/* Modal footer */
.modal-footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: left;
padding: 0.75rem;
border-top: 1px solid #dee2e6;
}
/* Text danger */
.text-danger {
color: #dc3545 !important;
padding-left: 35px;
}
/* Width 100 */
.w-100 {
width: 67% !important;
border-radius: 64px;
padding: 2.25rem;
}
.card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid rgb(255, 255, 255);
border-radius: 0.25rem;
}
@media (min-width: 576px) {
.modal-dialog {
max-width: 75em;
margin: 1.75rem auto;
}
}
.bg-coupdocoeur {
background-color: #191f39;
font-size: 16px;
color: white;
font-weight: normal;
}
.vertical-table {
display: flex;
flex-direction: column;
width: 100%;
}
.property-item {
margin-bottom: 1rem;
font-size: 20px;
}
.property-label {
font-weight: bold;
margin-right: 0.5rem;
background-color: #f8d7da;
border-color: #f5c6cb;
color: black;
padding: 0.75rem;
}
.property-value {
margin-left: 10px;
}
img{
width:100%:
height:100%
}
footer{
font-size:10px;
}
</style>
<div>
<div>
<img src="data:image/jpeg;base64,{{ imageBase64 }}" alt="CoupdcoeurimmoLogo" width="120" height="120" class="d-inline-block align-text-top">
</div>
<hr>
<h1 class="font-weight-bold text-danger" id="title">{{ property.title|raw }}</h1>
<div>
<div id="image">
<img src="data:image/jpeg;base64,{{ encodedImage }}" alt="Property Image" width="300" height="200">
</div>
<div class="card-body" id="tableau">
<h2 class="card-title mb-4 font-weight-bold">Caractéristiques</h2>
<div class="vertical-table">
<div class="property-item">
<div class="property-label">Nombre de pièces : {{ property.roomNumber }}</div>
</div>
<div class="property-item">
<div class="property-value">Ce bien dispose d'un jardin : {{ property.garden ? 'Oui' : 'Non' }}</div>
</div>
<div class="property-item">
<div class="property-label">Type du logement : {{ property.housingType.name }}</div>
</div>
<div class="property-item">
<div class="property-value">Surface : {{ property.harea }} m²</div>
</div>
<div class="property-item">
<div class="property-label">Type de transaction : {{ property.category.name }}</div>
</div>
<div class="property-item">
<div class="property-value">Chauffage : {{ property.heating }}</div>
</div>
<div class="property-item">
<div class="property-label">Année de construction : {{ property.yearBuilt|date('Y') }}</div>
</div>
<div class="property-item">
<div class="property-value">Catégorie : {{ property.category.name }}</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-body">
<div class="border p-3">
<h2 class="font-weight-bold">Description</h2>
<p class="card-text">{{ property.content|raw }}</p>
</div>
<div class="border p-3">
<h2 class="font-weight-bold">Catégorie</h2>
<p>{{ property.category.name }}</p>
</div>
<div class="border p-3">
<h2 class="font-weight-bold">Date d'ajout</h2>
<p>{{ property.createdAt|date("d/m/Y") }}</p>
</div>
</div>
</div>
<footer> Pour plus d'info voir sur <strong>www.coupdcoeurimmo.fr</strong></footer>