Compare commits
2 commits
5d23fa4a1f
...
c9bd6518cc
| Author | SHA1 | Date | |
|---|---|---|---|
| c9bd6518cc | |||
| 98603c9f1e |
2 changed files with 97 additions and 27 deletions
|
|
@ -357,7 +357,7 @@
|
||||||
- id: beta-alert-title
|
- id: beta-alert-title
|
||||||
translation: "Online version closed, beta access only"
|
translation: "Online version closed, beta access only"
|
||||||
- id: beta-alert-text
|
- id: beta-alert-text
|
||||||
translation: 'happyDomain is evolving: soon, continuously test your domains'' security and monitor every service exposed through DNS — with zero configuration. We''re rolling out this new version progressively to gather feedback and deliver the best possible service. <a href="/en/beta/">Learn more</a>.'
|
translation: 'happyDomain is evolving: soon, continuously test your domains'' security and monitor every service exposed through DNS, with zero configuration. We''re rolling out this new version progressively to gather feedback and deliver the best possible service. <a href="/en/beta/">Learn more</a>.'
|
||||||
- id: beta-alert-button
|
- id: beta-alert-button
|
||||||
translation: "Join the beta"
|
translation: "Join the beta"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,14 @@
|
||||||
{{ if isset .Site.Params "carousel" }} {{ if gt (len .Site.Params.carousel) 0 }}
|
{{ if isset .Site.Params "carousel" }} {{ if gt (len .Site.Params.carousel) 0 }}
|
||||||
|
<div class="carousel-wrap position-relative">
|
||||||
|
<button
|
||||||
|
class="carousel-btn carousel-btn-left"
|
||||||
|
type="button"
|
||||||
|
aria-label="Défiler à gauche"
|
||||||
|
data-carousel-dir="-1"
|
||||||
|
>
|
||||||
|
<i class="bi bi-chevron-left"></i>
|
||||||
|
</button>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
id="screenshots"
|
id="screenshots"
|
||||||
class="text-light p-4 pt-5 d-flex flex-nowrap align-items-center"
|
class="text-light p-4 pt-5 d-flex flex-nowrap align-items-center"
|
||||||
|
|
@ -25,4 +35,64 @@
|
||||||
</figure>
|
</figure>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<button
|
||||||
|
class="carousel-btn carousel-btn-right"
|
||||||
|
type="button"
|
||||||
|
aria-label="Défiler à droite"
|
||||||
|
data-carousel-dir="1"
|
||||||
|
>
|
||||||
|
<i class="bi bi-chevron-right"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.carousel-wrap .carousel-btn {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
z-index: 10;
|
||||||
|
background: var(--hd-plum-600);
|
||||||
|
border: 2px solid rgba(255, 255, 255, 0.85);
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 3rem;
|
||||||
|
height: 3rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 1.4rem;
|
||||||
|
color: white;
|
||||||
|
transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-wrap .carousel-btn:hover {
|
||||||
|
background: var(--hd-plum-700, #4a1f5c);
|
||||||
|
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
|
||||||
|
transform: translateY(-50%) scale(1.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-wrap .carousel-btn-left {
|
||||||
|
left: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.carousel-wrap .carousel-btn-right {
|
||||||
|
right: 0.5rem;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
var scroller = document.getElementById("screenshots");
|
||||||
|
if (!scroller) return;
|
||||||
|
var buttons = scroller.parentNode.querySelectorAll(".carousel-btn");
|
||||||
|
buttons.forEach(function (btn) {
|
||||||
|
btn.addEventListener("click", function () {
|
||||||
|
var dir = parseInt(btn.getAttribute("data-carousel-dir"), 10);
|
||||||
|
scroller.scrollBy({ left: dir * scroller.clientWidth * 0.7, behavior: "smooth" });
|
||||||
|
});
|
||||||
|
});
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
{{ end }} {{ end }}
|
{{ end }} {{ end }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue