start to add chat feature

This commit is contained in:
Quentin ANIERE 2022-04-12 09:39:04 +02:00
parent 2e6b84af84
commit b37e05023a
3 changed files with 42 additions and 0 deletions

BIN
src/images/chat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -42,9 +42,15 @@
</div> </div>
</div> </div>
</div> </div>
<div id="counter-container"> <div id="counter-container">
<span>Nombre de fans connectés : <span id="value">x</span></span> <span>Nombre de fans connectés : <span id="value">x</span></span>
</div> </div>
<div id="chat-button">
<img src="./images/chat.png">
</div>
<div id="chat">
</div>
<script src="https://danby.aniere.fr:3000/socket.io/socket.io.js"></script> <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="https://unpkg.com/swiper@8/swiper-bundle.min.js"></script>
<script src="script.js"></script> <script src="script.js"></script>

View File

@ -1,4 +1,6 @@
body { body {
margin: 0;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: center;
@ -37,6 +39,34 @@ body {
font-family: sans-serif; font-family: sans-serif;
} }
#chat-button {
position: absolute;
right: 3vh;
bottom: 3vh;
height: 100px;
width: 100px;
border-radius: 50%;
background-color: white;
}
#chat-button > img {
height: 90px;
width: 90px;
}
#chat {
height: 60vh;
width: 30vw;
position: absolute;
bottom: 0;
right: 0;
display: none;
background-color: white;
}
.swiper { .swiper {
width: 500px; width: 500px;
height: 400px; height: 400px;
@ -67,6 +97,12 @@ body {
display: flex; display: flex;
} }
#chat {
z-index: 9999;
height: 100vh;
width: 100vw;
}
.photo-container { .photo-container {
width: 300px; width: 300px;
height: 300px; height: 300px;