- 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:27 +02:00
parent 696447a0d1
commit d29c58ae42
17 changed files with 161 additions and 167 deletions

View File

@ -11,7 +11,6 @@ class User(models.Model):
mail_verified = models.BooleanField(default=False)
github_link = models.CharField(max_length=1024, null=True, blank=True, default=None)
discord_username = models.CharField(max_length=1024, null=True, blank=True, default=None)
elo = models.DecimalField(max_digits=10, decimal_places=0, default=1000)
class Message(models.Model):

View File

@ -75,7 +75,9 @@
<h1>Chat</h1>
<div id="topChatCross"><span>&times;</span></div>
</div>
<p id="infoChat">You are not connected to the chat</p>
<div id="messageListChatHome">
<p id="infoChat">You are not connected to the chat</p>
</div>
</div>
<section class="homeSection">
</section>

View File

@ -14,6 +14,19 @@
<p>Logout</p>
</div>
</div>
<div id="chatButton">
<span class="notification-badge"></span>
<img src="/static/img/homePage/bulle.png">
</div>
<div id="chatDiv">
<div id="topChatHome">
<h1>Chat</h1>
<div id="topChatCross"><span>&times;</span></div>
</div>
<div id="messageListChatHome">
<p id="infoChat">You are not connected to the chat</p>
</div>
</div>
<div class="main">
<div id="loginPopup" class="popup">
<div class="popup-content">
@ -63,4 +76,6 @@
<div class="buttonStartGame">
<p>Start</p>
</div>
</div>
<div id="divNotification">
</div>

View File

@ -9,9 +9,9 @@
<p>150 Elo</p>
</div>
<div class="rightButtonDiv">
<img src="/static/img/profilPage/github.png">
<img src="/static/img/profilPage/discord.webp">
<img src="/static/img/profilPage/addConv.png">
<img id="github" src="/static/img/profilPage/github.png">
<img id="discord" src="/static/img/profilPage/discord.webp">
<img id="newConv" src="/static/img/profilPage/addConv.png">
</div>
</div>
@ -25,4 +25,19 @@
</div>
</div>
</div>
</div>
<div id="chatButton">
<span class="notification-badge"></span>
<img src="/static/img/homePage/bulle.png">
</div>
<div id="chatDiv">
<div id="topChatHome">
<h1>Chat</h1>
<div id="topChatCross"><span>&times;</span></div>
</div>
<div id="messageListChatHome">
<p id="infoChat">You are not connected to the chat</p>
</div>
</div>
<div id="divNotification">
</div>