Skip to content
Snippets Groups Projects
FilmPoster.vue 524 B
Newer Older
Bastien's avatar
Bastien committed
<script setup>
const props = defineProps(['film']);
</script>
    
EL MOUADDAB ISMAIL p2103017's avatar
EL MOUADDAB ISMAIL p2103017 committed
<template>
  <div class="film-poster">
    <img :src="film.poster" :alt="film.title" />
Bastien's avatar
Bastien committed
    <h3>{{ film.titleFR || film.primaryTitle }}</h3>
    <h4>{{ film.startYear }}</h4>
EL MOUADDAB ISMAIL p2103017's avatar
EL MOUADDAB ISMAIL p2103017 committed
    <!-- Ajoutez d'autres détails du film ici -->
  </div>
</template>


<style scoped>
/* Styles pour la disposition des affiches */
.film-poster {
Bastien's avatar
Bastien committed
  width: 20%;
  /* Pour afficher 4 affiches par rangée */
EL MOUADDAB ISMAIL p2103017's avatar
EL MOUADDAB ISMAIL p2103017 committed
  margin: 10px;
  display: inline-block;
  text-align: center;
}
</style>