Moved files

This commit is contained in:
Quentin ANIERE
2022-04-09 00:14:20 +02:00
parent 01461c0e13
commit caa060a500
17 changed files with 24 additions and 665 deletions

5
src/README.MD Normal file
View File

@@ -0,0 +1,5 @@
# DenisSliderTM
https://dwarves.iut-fbleau.fr/~aniere/
Site internet entièrement dédié à Denis Monnerat (Élu Mister IUTSF depuis de nombreuses années).

BIN
src/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
src/images/background.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
src/images/denis/denis.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
src/images/mobile-title.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
src/images/title.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

52
src/index.html Normal file
View File

@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DenisSlider2000™</title>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://unpkg.com/swiper@8/swiper-bundle.min.css"/>
</head>
<body>
<div id="title">
<img src="./images/title.gif">
</div>
<div id="mobile-title">
<img src="./images/mobile-title.gif">
</div>
<div id="swiper-container">
<div class="swiper">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="photo-container">
<img src="./images/denis/denis_chemise.png">
</div>
</div>
<div class="swiper-slide">
<div class="photo-container">
<img src="./images/denis/denis_chapeau.png">
</div>
</div>
<div class="swiper-slide">
<div class="photo-container">
<img src="./images/denis/saint_denis.png">
</div>
</div>
<div class="swiper-slide">
<div class="photo-container">
<img src="./images/denis/denis.png">
</div>
</div>
</div>
</div>
</div>
<div id="counter-container">
<span>Nombre de fans connectés : <span id="value">x</span></span>
</div>
<script src="https://danby.aniere.fr:3000/socket.io/socket.io.js"></script>
<script src="https://unpkg.com/swiper@8/swiper-bundle.min.js"></script>
<script src="script.js"></script>
</body>
</html>

22
src/script.js Normal file
View File

@@ -0,0 +1,22 @@
document.addEventListener('DOMContentLoaded', () => {
try {
var socket = io("https://danby.aniere.fr:3000");
socket.on("update-count", (data) => {
document.getElementById("value").innerText = data.value;
});
} catch(error) {
document.getElementById("value").innerText = "Serveur injoingnable !";
}
});
const swiper = new Swiper('.swiper', {
direction: "horizontal",
loop: true,
autoplay: true,
speed: 400,
spaceBetween: 100,
});

75
src/style.css Normal file
View File

@@ -0,0 +1,75 @@
body {
display: flex;
flex-wrap: wrap;
justify-content: center;
background-size: cover;
background-repeat: no-repeat;
background-image: url("./images/background.jpg");
}
#title {
width: 100%;
display: flex;
justify-content: center;
}
#mobile-title {
display: none;
}
#swiper-container {
width: 100%;
display: flex;
justify-content: center;
}
#counter-container {
display: flex;
margin-top: 5vh;
justify-content: center;
}
#counter-container > span {
color: white;
font-weight: bold;
font-size: large ;
font-family: sans-serif;
}
.swiper {
width: 500px;
height: 400px;
margin-top: 20vh;
}
.photo-container {
width: 500px;
height: 400px;
display: flex;
justify-content: center;
align-content: center;
}
@media screen and (max-width: 1024px) {
body {
background-image: url("./images/mobile-background.jpg");
}
#title {
display: none;
}
#mobile-title {
display: flex;
}
.photo-container {
width: 300px;
height: 300px;
margin-left: 15vw;
}
}