Skip to content
Snippets Groups Projects
Commit 259fce03 authored by Bilel El Yaagoubi's avatar Bilel El Yaagoubi
Browse files

doesnt work properly

parent 802903c9
No related branches found
No related tags found
1 merge request!2Ocotbranche
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
<template>
<div>
<p>
<div class="child">
<img
height="400"
:src="'https://image.tmdb.org/t/p/original/' + movie.poster_path"
/>
</p>
<p>{{ movie.title }}</p>
<p>{{ movie.release_date }}</p>
<h2>{{ movie.title }}</h2>
<h3>{{ movie.release_date }}</h3>
</div>
</template>
......@@ -20,7 +18,7 @@ export default {
</script>
<style scoped>
.center {
.child {
margin-left: auto;
margin-right: auto;
}
......
......@@ -2,7 +2,7 @@
<div class="home">
<img alt="Vue logo" src="../assets/logo.png" />
<h1>Welcome to Movie Website</h1>
<p>
<!-- <p>
For a guide and recipes on how to configure / customize this project,<br />
check out the
<a href="https://cli.vuejs.org" target="_blank">vue-cli documentation</a>.
......@@ -14,7 +14,7 @@
type="text"
/>
</p>
<div>Nom du film: {{ movieName }}</div>
<div>Nom du film: {{ movieName }}</div> -->
<div class="parent">
<tr v-for="movie in movies" :key="movie.id">
<Movie class="child" :movie="movie" />
......@@ -86,13 +86,15 @@ export default {
.parent {
display: flex;
flex-flow: row nowrap;
flex-flow: column wrap;
height: 250px;
}
.child {
width: 40%;
height: 40%;
margin-left: auto;
margin-right: auto;
}
h3 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment