Skip to content

Commit

Permalink
feat: fill ailable space with image, set border on carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
tewshi committed Jul 28, 2023
1 parent e3ab36a commit 42d72eb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/download/DownloadPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ scanImages();
pauseOnMouseEnter: true,
}"
:modules="[Autoplay]"
auto-height
:class="css.slider"
@swiper="onSwiperUpdate($event)"
@slide-change="onSwiperUpdate($event)"
>
<SwiperSlide v-for="(image, i) in images" :key="i">
<img :src="image" alt=" " />
<img :src="image" alt=" " class="w-full" />
</SwiperSlide>
</Carousel>
<div :class="css.controls">
Expand All @@ -75,6 +77,10 @@ scanImages();
&__container {
@apply flex flex-col relative;
.slider {
@apply rounded-3xl border border-black/[0.12];
}
.controls {
@apply flex flex-col absolute -bottom-[2.8125rem] z-10 -left-2 -right-2 items-center justify-center;
Expand Down
Binary file removed public/img/download/preview-0.png
Binary file not shown.
Binary file removed public/img/download/preview-1.png
Binary file not shown.

0 comments on commit 42d72eb

Please sign in to comment.