- Fix "REGISTER" to "Register"
    - Fix "NEWS" to "AUTHORS"
    - Fix Chat Button to icon (No notifications)
    - Fix not center title on login and register screen
This commit is contained in:
Misthaa
2024-09-17 14:28:57 +02:00
parent e4cebd99df
commit 522f4f602a
6 changed files with 39 additions and 29 deletions

View File

@ -3,9 +3,9 @@
<div id="topBar"> <div id="topBar">
<h1>PTME</h1> <h1>PTME</h1>
<div id="topButton"> <div id="topButton">
<p>HOME</p> <p onclick="scrollToSection()">HOME</p>
<p>PROJECT</p> <p>PROJECT</p>
<p>NEWS</p> <p>AUTHORS</p>
</div> </div>
<div id="loginButton"> <div id="loginButton">
<p>LOGIN</p> <p>LOGIN</p>
@ -58,7 +58,7 @@
<label for="password">Confirm password</label> <label for="password">Confirm password</label>
<input type="password" id="password-confirm" name="password"> <input type="password" id="password-confirm" name="password">
<button type="submit" class="login-btn">REGISTER</button> <button type="submit" class="login-btn">Register</button>
<div class="old-player"> <div class="old-player">
Already have an account? <a href="#">Log in</a> Already have an account? <a href="#">Log in</a>
</div> </div>
@ -68,7 +68,7 @@
</div> </div>
<div id="chatButton"> <div id="chatButton">
<p>CHAT</p> <img src="/static/img/homePage/bulle.png">
</div> </div>
<div id="chatDiv"> <div id="chatDiv">
<div id="topChatHome"> <div id="topChatHome">

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -3,10 +3,10 @@
/* ::: :::::::: */ /* ::: :::::::: */
/* main.js :+: :+: :+: */ /* main.js :+: :+: :+: */
/* +:+ +:+ +:+ */ /* +:+ +:+ +:+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */ /* By: marvin <marvin@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/25 00:02:19 by edbernar #+# #+# */ /* Created: 2024/08/25 00:02:19 by edbernar #+# #+# */
/* Updated: 2024/08/25 18:26:17 by edbernar ### ########.fr */ /* Updated: 2024/09/17 13:06:30 by marvin ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -22,6 +22,7 @@ class HomePage
Login.create(); Login.create();
LiveChat.create(); LiveChat.create();
window.addEventListener('scroll', scrool); window.addEventListener('scroll', scrool);
window.addEventListener('bScroll', scrollToSection)
} }
static dispose() static dispose()
@ -30,9 +31,16 @@ class HomePage
Login.dispose(); Login.dispose();
LiveChat.dispose(); LiveChat.dispose();
window.removeEventListener('scroll', scrool); window.removeEventListener('scroll', scrool);
window.removeEventListener('bScroll', scrollToSection)
} }
}; };
function scrollToSection() {
document.querySelector('#homeSection relative').scrollIntoView({
behavior: 'smooth'
});
console.log("CACA");
}
function scrool() function scrool()
{ {

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/13 10:40:18 by edbernar ### ########.fr */ /* Updated: 2024/09/17 14:20:28 by marvin ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -119,7 +119,7 @@ body {
} }
#topBar #loginButton:hover { #topBar #loginButton:hover {
background-color: #020202; background-color: transparent;
color: white; color: white;
cursor: pointer; cursor: pointer;
} }
@ -173,8 +173,7 @@ body {
.right-side-register h1 { .right-side-register h1 {
font-size: 2rem; font-size: 2rem;
margin-bottom: 30px; margin-bottom: 30px;
align-items: center; text-align: center;
justify-content: center;
} }
.close { .close {
@ -189,8 +188,7 @@ body {
.right-side h1 { .right-side h1 {
font-size: 2rem; font-size: 2rem;
margin-bottom: 30px; margin-bottom: 30px;
align-items: center; text-align: center;
justify-content: center;
} }
form { form {
@ -251,7 +249,6 @@ button {
.old-player { .old-player {
text-align: center; text-align: center;
margin-bottom: 20px;
} }
.old-player a { .old-player a {

View File

@ -3,33 +3,38 @@
/* ::: :::::::: */ /* ::: :::::::: */
/* liveChat.css :+: :+: :+: */ /* liveChat.css :+: :+: :+: */
/* +:+ +:+ +:+ */ /* +:+ +:+ +:+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */ /* By: marvin <marvin@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/30 13:53:39 by edbernar #+# #+# */ /* Created: 2024/07/30 13:53:39 by edbernar #+# #+# */
/* Updated: 2024/08/25 18:20:50 by edbernar ### ########.fr */ /* Updated: 2024/09/17 14:13:56 by marvin ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#chatButton { #chatButton {
position: fixed; position: fixed;
bottom: 10px;
left: 30px;
background-color: white;
width: 100px;
height: 40px;
text-align: center;
cursor : pointer; cursor : pointer;
z-index: 10; z-index: 10;
} bottom: 40px;
left: 60px;
#chatButton p { background-color: #020202;
margin: 0; border-radius: 50%;
margin-top: 10px; height: 70px;
width: 70px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
transition: transform 0.3s ease;
} }
#chatButton:hover { #chatButton:hover {
background-color: rgb(204, 204, 204); transform: scale(1.2);
}
#chatButton img{
width: 45px;
height: 45px;
} }
#chatDiv { #chatDiv {

View File

@ -185,7 +185,7 @@ body {
padding: 0; padding: 0;
padding-inline: 50px; padding-inline: 50px;
display: flex; display: flex;
background-color: #020202; background-color: transparent;
gap: 2rem; gap: 2rem;
align-items: center; align-items: center;
justify-content: center; justify-content: center;