diff --git a/blocks/carousel/carousel.css b/blocks/agent-testimonials/agent-testimonials.css similarity index 91% rename from blocks/carousel/carousel.css rename to blocks/agent-testimonials/agent-testimonials.css index bd42e17f..781def19 100644 --- a/blocks/carousel/carousel.css +++ b/blocks/agent-testimonials/agent-testimonials.css @@ -1,22 +1,22 @@ -.carousel-container { +.testimonials-container { position: relative; width: 100%; overflow: hidden; border-radius: 10px; } -.carousel { +.testimonials { display: flex; transition: transform 0.5s ease; width: 100%; } -.carousel-inner { +.testimonials-inner { display: flex; width: 100%; } -.carousel-item { +.testimonials-item { min-width: 100%; box-sizing: border-box; padding: 20px; @@ -60,7 +60,7 @@ align-self: center; } -.carousel-arrow { +.testimonials-arrow { position: absolute; top: 50%; transform: translateY(-50%); @@ -80,7 +80,7 @@ right: 10px; } -.carousel-counter { +.testimonials-counter { position: absolute; bottom: 10px; right: 10px; diff --git a/blocks/carousel/carousel.js b/blocks/agent-testimonials/agent-testimonials.js similarity index 58% rename from blocks/carousel/carousel.js rename to blocks/agent-testimonials/agent-testimonials.js index 802766f0..3f3a11c7 100644 --- a/blocks/carousel/carousel.js +++ b/blocks/agent-testimonials/agent-testimonials.js @@ -1,24 +1,26 @@ +import { getMetadata } from '../../scripts/aem.js'; + export default function decorate(block) { const div = document.createElement('div'); - div.classList.add('carousel-container'); - div.innerHTML = ` -