- Ajout de la gestion d'images
This commit is contained in:
@ -11,7 +11,10 @@
|
|||||||
<div class="border rounded-xl w-1/2 py-2 flex flex-col justify-center mt-5">
|
<div class="border rounded-xl w-1/2 py-2 flex flex-col justify-center mt-5">
|
||||||
<h1 class="font-bold p-2 text-2xl ">{{ book.volumeInfo.title }}</h1>
|
<h1 class="font-bold p-2 text-2xl ">{{ book.volumeInfo.title }}</h1>
|
||||||
|
|
||||||
<img src="https://img.freepik.com/vecteurs-libre/vecteur-modele-cadre-courbe-bleu-ceruleen_53876-136094.jpg" class="p-2" style="width: 20%" height="20px">
|
{% if book.volumeInfo.imageLinks is defined and book.volumeInfo.imageLinks.smallThumbnail is defined %}
|
||||||
|
<img src="{{ book.volumeInfo.imageLinks.smallThumbnail }}" class="p-2" style="width: 20%" height="20px">
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user