Skip to content
Snippets Groups Projects

Movie page

4 files
+ 68
27
Compare changes
  • Side-by-side
  • Inline

Files

<template>
<template>
<table>
<div class="child">
<thead>
<img
<th>Titre</th>
class="movieImage"
<th>Date de sortie</th>
:src="'https://image.tmdb.org/t/p/original/' + movie.poster_path"
<th>Image</th>
/>
</thead>
<h2>{{ movie.title }}</h2>
<tbody>
<h3>{{ movie.release_date }}</h3>
<tr v-for="movie in movies" :key="movie.id">
</div>
<td>{{ movie.title }}</td>
<td>{{ movie.release_date }}</td>
<td>
<img
:src="'https://image.tmdb.org/t/p/original/' + movie.poster_path"
/>
</td>
</tr>
</tbody>
</table>
</template>
</template>
<script>
<script>
export default {
export default {
props: {
props: {
movies: Array,
movie: Array,
},
},
};
};
</script>
</script>
<style scoped></style>
<style scoped>
 
.movieImage {
 
width: 50%;
 
}
 
.child {
 
margin-left: auto;
 
margin-right: auto;
 
}
 
 
table {
 
border-collapse: collapse;
 
}
 
 
th,
 
td {
 
border: 1px solid #000000;
 
padding: 10px;
 
}
 
</style>
Loading