Sites-Camelia/p/camelianimes/index.html
Esenjin 04485ccea7
All checks were successful
camelia / deploy (push) Successful in 34s
[camélianimes] màj des infos et du site
2024-10-04 13:51:39 +02:00

58 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Camélianimes - Accueil</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<nav>
<a href="index.html">Accueil</a>
<a href="pages/infos.html">Description</a>
<a href="pages/liste.html">Liste</a>
<a href="pages/calendrier.html">Calendrier</a>
<a href="pages/credits.html">Crédits</a>
</nav>
</header>
<div class="carousel">
<div id="carousel-container">
<img id="carousel-image" src="images/39372436_p0_master1200.jpg" alt="Carousel Image">
<div id="overlay"></div>
</div>
<div class="carousel-text">
<h1>Camélianimes</h1>
<p>Viens regarder avec nous, chaque lundi à 22h00, l'animé sélectionné !<br>
En ce moment c'est « BOFURI » (saison 2) et « Highschool of the Dead ».<br>
Viens discuter de cela avec nous <a href="https://discord.gg/nBuZ9vJ" target="_blank">sur notre serveur Discord</a>.</p>
</div>
</div>
<script>
const images = [
"images/39372436_p0_master1200.jpg",
"images/60834799_p0_master1200.jpg",
"images/70764381_p0_master1200.jpg",
"images/72278604_p0_master1200.jpg",
"images/79704508_p0_master1200.jpg",
"images/90908293_p2_master1200.jpg",
"images/91837671_p0_master1200.jpg",
"images/65751842_p0_master1200.jpg"
];
let currentIndex = 0;
const carouselImage = document.getElementById("carousel-image");
const overlay = document.getElementById("overlay");
function changeImage() {
overlay.style.opacity = 1;
setTimeout(() => {
currentIndex = (currentIndex + 1) % images.length;
carouselImage.src = images[currentIndex];
setTimeout(() => {
overlay.style.opacity = 0;
}, 400);
}, 800);
}
setInterval(changeImage, 4000);
</script>
</body>
</html>