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