Modification sur les imports des skeleton.
Ajout bouton de navigation de retour vers home dans la page de détails.
Showing
2 changed files
with
11 additions
and
4 deletions
| @@ -161,7 +161,7 @@ onBeforeUnmount(() => { | @@ -161,7 +161,7 @@ onBeforeUnmount(() => { | ||
| 161 | @event:clear_search="handleClearSearchEvent" | 161 | @event:clear_search="handleClearSearchEvent" |
| 162 | /> | 162 | /> |
| 163 | <!-- Loading Skeleton --> | 163 | <!-- Loading Skeleton --> |
| 164 | - <skeleton-movies-loader v-if="isInitialLoading" :is-initial-loading="isInitialLoading" :skeleton-number="20" /> | 164 | + <ui-components-skeleton-movies-loader v-if="isInitialLoading" :is-initial-loading="isInitialLoading" :skeleton-number="20" /> |
| 165 | <!-- Liste des films --> | 165 | <!-- Liste des films --> |
| 166 | <div v-else-if="movies.length > 0" class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6"> | 166 | <div v-else-if="movies.length > 0" class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6"> |
| 167 | <div | 167 | <div |
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | - | 2 | +import { ArrowLeftIcon } from "lucide-vue-next"; |
| 3 | -import SkeletonMovieDetailLoader from "~/components/ui-components/skeletonMovieDetailLoader.vue"; | ||
| 4 | </script> | 3 | </script> |
| 5 | 4 | ||
| 6 | <template> | 5 | <template> |
| 7 | <section> | 6 | <section> |
| 8 | <!-- Skeleton loader pendant le chargement --> | 7 | <!-- Skeleton loader pendant le chargement --> |
| 9 | - <skeleton-movie-detail-loader /> | 8 | + <ui-components-skeleton-movie-detail-loader /> |
| 9 | + <button | ||
| 10 | + class="flex items-center text-gray-400 hover:text-white mb-8 transition-colors" | ||
| 11 | + @click="navigateTo('/')" | ||
| 12 | + > | ||
| 13 | + <ArrowLeftIcon :size="20" class="mr-2" /> | ||
| 14 | + Retour | ||
| 15 | + </button> | ||
| 16 | + | ||
| 10 | </section> | 17 | </section> |
| 11 | </template> | 18 | </template> |
| 12 | 19 |
-
Please register or login to post a comment