diff --git a/src/views/carousel/CarouselDemo.vue b/src/views/carousel/CarouselDemo.vue index 8c9ff6af1..3bf54e146 100755 --- a/src/views/carousel/CarouselDemo.vue +++ b/src/views/carousel/CarouselDemo.vue @@ -11,7 +11,7 @@
@@ -151,16 +146,8 @@ export default { } .product-image { - width: 150px; + width: 50%; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23) } } - -.p-carousel { - margin-bottom: 1rem; - - &:last-child { - margin-bottom: 0rem; - } -} \ No newline at end of file diff --git a/src/views/carousel/CarouselDoc.vue b/src/views/carousel/CarouselDoc.vue index 50c7640a6..f4ec98ae8 100755 --- a/src/views/carousel/CarouselDoc.vue +++ b/src/views/carousel/CarouselDoc.vue @@ -265,90 +265,96 @@ data() { + -import CarService from "../../service/CarService"; +import ProductService from '../../service/ProductService'; export default { data() { return { - cars: null, + products: null, responsiveOptions: [ { breakpoint: '1024px', @@ -368,42 +374,29 @@ export default { ] } }, - carService: null, + productService: null, created() { - this.carService = new CarService(); + this.productService = new ProductService(); }, mounted() { - this.carService.getCarsSmall().then(data => this.cars = data); - }, + this.productService.getProductsSmall().then(data => this.products = data.slice(0,9)); + } } -.car-item { - .car-content { - border: 1px solid var(--layer-2); +.product-item { + .product-item-content { + border: 1px solid var(--surface-d); border-radius: 3px; margin: .3rem; text-align: center; - padding: 2em 0 2.25em 0; + padding: 2rem 0; } - .car-title { - font-weight: 600; - font-size: 20px; - margin-top: 24px; - } - - .car-subtitle { - margin: .25em 0 2em 0; - } - - button { - margin-left: .5rem; - - &:first-child { - margin-left: 0; - } + .product-image { + width: 50%; + box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23) } }