Skip to content
Snippets Groups Projects
Commit c647b29b authored by EL MOUADDAB ISMAIL p2103017's avatar EL MOUADDAB ISMAIL p2103017
Browse files

mise à jour

parent 6c7faea2
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,10 @@ import FilmRow from '../components/FilmRow.vue'; ...@@ -11,7 +11,10 @@ import FilmRow from '../components/FilmRow.vue';
<input type="text" placeholder="Exemple : Cars"> <input type="text" placeholder="Exemple : Cars">
<button>Rechercher</button> <button>Rechercher</button>
</form> </form>
<div class="film-row" v-for="(row, index) in filmsInRows" :key="index">
<FilmRow :films="row"></FilmRow>
</div>
</template> </template>
<script> <script>
...@@ -27,6 +30,9 @@ export default { ...@@ -27,6 +30,9 @@ export default {
films: [ films: [
{ id: 1, title: 'Film 1', poster: 'lien_vers_affiche_1' }, { id: 1, title: 'Film 1', poster: 'lien_vers_affiche_1' },
{ id: 2, title: 'Film 2', poster: 'lien_vers_affiche_2' }, { id: 2, title: 'Film 2', poster: 'lien_vers_affiche_2' },
{ id: 3, title: 'Film 3', poster: 'lien_vers_affiche_1' },
{ id: 4, title: 'Film 4', poster: 'lien_vers_affiche_2' },
{ id: 5, title: 'Film 5', poster: 'lien_vers_affiche_2'},
], ],
filmsInRows: [] filmsInRows: []
}; };
...@@ -61,8 +67,8 @@ input { ...@@ -61,8 +67,8 @@ input {
flex-grow:2; flex-grow:2;
border-radius: 5px; border-radius: 5px;
} }
form { form {
margin: 10px auto; margin: 10px auto;
width: 45%; width: 45%;
...@@ -71,17 +77,17 @@ input { ...@@ -71,17 +77,17 @@ input {
border:1px solid #e6007e; border:1px solid #e6007e;
border-radius: 5px; border-radius: 5px;
} }
/* remove the input focus blue box, it will be in the wrong place. */ /* remove the input focus blue box, it will be in the wrong place. */
input:focus { input:focus {
outline: none; outline: none;
} }
/* Add the focus effect to the form so it contains the button */ /* Add the focus effect to the form so it contains the button */
form:focus-within { form:focus-within {
outline: none; outline: none;
} }
button { button {
...@@ -91,4 +97,9 @@ button { ...@@ -91,4 +97,9 @@ button {
/* color: var(--color-text); */ /* color: var(--color-text); */
border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0;
} }
.film-row {
display: flex;
flex-wrap: wrap;
gap: 10px; /* Espacement entre les films */
}
</style> </style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment