Skip to content

Commit

Permalink
site
Browse files Browse the repository at this point in the history
  • Loading branch information
ecornamu committed Dec 16, 2024
1 parent f56b2c6 commit 080752b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/_includes/newnames_carrousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,17 +198,17 @@ <h3>Influence</h3>
let currentSlide_newname = 0;

function updateCarousel() {
const offset = -currentSlide_newnam * 100;
const offset = -currentSlide_newname * 100;
carousel.style.transform = `translateX(${offset}%)`;
}

function prevSlide() {
currentSlide_newnam = (currentSlide_newnam - 1 + totalSlides) % totalSlides;
currentSlide_newname = (currentSlide_newname - 1 + totalSlides) % totalSlides;
updateCarousel();
}

function nextSlide() {
currentSlide_newnam = (currentSlide_newnam + 1) % totalSlides;
currentSlide_newname = (currentSlide_newname + 1) % totalSlides;
updateCarousel();
}

Expand Down
6 changes: 3 additions & 3 deletions docs/_includes/rachel.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ <h3>Influence</h3>
</section>
</div>
</div>
<div class="carousel-slide" style="display: flex; flex-direction: column; align-items: center; text-align: center;">
<div class="carousel-content">
<img src="https://www.instyle.com/thmb/wfmeD89A2SJn6zUagmm9IxKWJlo=/750x0/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)/GettyImages-2036483655-70501e59e2e4477991d20e84aa953282.jpg" alt = "Rachel article" width="450px" style="margin: 0px 20px 20px 20px;">
<div class="carousel-slide" >
<div class="carousel-content" style="display: flex; flex-direction: column; align-items: center; text-align: center;">
<img src="https://www.instyle.com/thmb/wfmeD89A2SJn6zUagmm9IxKWJlo=/750x0/filters:no_upscale():max_bytes(150000):strip_icc():format(webp)/GettyImages-2036483655-70501e59e2e4477991d20e84aa953282.jpg" alt = "Rachel article" width="225" style="margin: 0px 20px 20px 20px;">
<section>
<p>Named one of the most iconic hairstyles of all time by InStyle magazine.</p>
</section>
Expand Down

0 comments on commit 080752b

Please sign in to comment.