Skip to content

Commit

Permalink
improve carousel style
Browse files Browse the repository at this point in the history
  • Loading branch information
msartore committed Jul 11, 2024
1 parent 99a8060 commit cea8df9
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,17 @@
</el-row>
<el-row>
<el-col style="justify-content: center">
<el-carousel :interval="4000" type="card">
<el-carousel
:motion-blur="true"
:interval="4000"
type="card"
style="height: 100%"
>
<el-carousel-item
v-for="project in props.projects"
:key="project.label"
>
<img
style="object-fit: contain; height: 100%; width: 100%"
:src="project.img"
lazy
/>
<img class="img_carousel" :src="project.img" lazy />
</el-carousel-item>
</el-carousel>
</el-col>
Expand All @@ -57,6 +58,12 @@ const props = defineProps({
</script>

<style>
.img_carousel {
object-fit: contain;
height: 100%;
width: 70%;
}
.about {
text-align: justify;
display: flex;
Expand Down

0 comments on commit cea8df9

Please sign in to comment.