Skip to content
Snippets Groups Projects

Movie page

2 files
+ 7
3
Compare changes
  • Side-by-side
  • Inline

Files

<template>
<div class="posterParent">
<img
class="poster"
:src="'https://image.tmdb.org/t/p/original/' + posterPath"
/>
</div>
</template>
<script>
export default {
props: {
posterPath: String,
},
};
</script>
<style scoped>
.poster {
height: 100%;
}
.posterParent {
display: flex;
margin-left: auto;
margin-right: auto;
justify-content: center;
}
</style>
Loading