- Add notif for new message
    - remove buttons "private" and "game" in chat
    - add function on button newConv in profilPage
    - fix camera who change position (2 to 1.5 in z axe) when a goal is scored
    - fix some bug in responses functions
    - add button chat in profil page and lobby page
This commit is contained in:
Kum1ta
2024-09-21 23:14:47 +02:00
2 changed files with 35 additions and 2 deletions

View File

@ -66,6 +66,8 @@
</div> </div>
</div> </div>
<div class="centered-text">Click on the screen to play</div>
<div id="chatButton"> <div id="chatButton">
<span class="notification-badge"></span> <span class="notification-badge"></span>
<img src="/static/img/homePage/bulle.png"> <img src="/static/img/homePage/bulle.png">

View File

@ -3,10 +3,10 @@
/* ::: :::::::: */ /* ::: :::::::: */
/* home.css :+: :+: :+: */ /* home.css :+: :+: :+: */
/* +:+ +:+ +:+ */ /* +:+ +:+ +:+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */ /* By: marvin <marvin@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/07 12:00:55 by edbernar #+# #+# */ /* Created: 2024/08/07 12:00:55 by edbernar #+# #+# */
/* Updated: 2024/09/20 00:07:01 by edbernar ### ########.fr */ /* Updated: 2024/09/21 20:08:48 by marvin ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -28,6 +28,26 @@
} }
} }
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translate(-50%, 100%);
}
100% {
opacity: 1;
transform: translate(-50%, 0);
}
}
@keyframes blink {
0% {
opacity: 1;
}
100% {
opacity: 0.3;
}
}
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 10px; width: 10px;
} }
@ -375,6 +395,17 @@ button {
height: auto; height: auto;
} }
.centered-text {
position: absolute;
bottom: 65px;
left: 50%;
transform: translateX(-50%);
font-size: 24px;
color: white;
opacity: 0;
animation: fadeInUp 1.5s forwards 12s, blink 1.5s 13.5s infinite alternate;
}
.info { .info {
position: absolute; position: absolute;
bottom: 0; bottom: 0;