mirror of
https://github.com/AudebertAdrien/ft_transcendence.git
synced 2025-12-15 21:56:50 +01:00
195 lines
7.8 KiB
HTML
195 lines
7.8 KiB
HTML
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Pong Game</title>
|
|
<link rel="stylesheet" type="text/css" href="{% static 'styles.css' %}?v=3">
|
|
<div class="logo">
|
|
<img src="{% static 'logo-42-perpignan.png' %}" alt="Logo">
|
|
</div>
|
|
</head>
|
|
<body>
|
|
<div class="language-switcher">
|
|
<img id="lang-fr" src="{% static 'flags/fr.svg' %}" alt="Français">
|
|
<img id="lang-en" src="{% static 'flags/us.svg' %}" alt="English">
|
|
<img id="lang-it" src="{% static 'flags/it.svg' %}" alt="Italiano">
|
|
<img id="lang-es" src="{% static 'flags/es.svg' %}" alt="Español">
|
|
<img id="lang-de" src="{% static 'flags/de.svg' %}" alt="Deutsch">
|
|
</div>
|
|
<div class="background">
|
|
<div class="stars" id="stars"></div>
|
|
</div>
|
|
<div id="pong-elements" style="display: flex;">
|
|
<div class="paddle paddle-left"></div>
|
|
<div class="paddle paddle-right"></div>
|
|
<div class="ball_anim"></div>
|
|
</div>
|
|
|
|
<button id="settings-btn">⚙️ Réglages</button>
|
|
<div id="settings-menu" style="display: none;">
|
|
<button id="close-settings">✖️</button>
|
|
<h2>Reglages</h2>
|
|
<label for="color-picker">Couleur:</label>
|
|
<input type="color" id="color-picker">
|
|
<br>
|
|
<label for="font-selector">Police:</label>
|
|
<select id="font-selector">
|
|
<option value="Arial">Arial</option>
|
|
<option value="Verdana">Verdana</option>
|
|
<option value="Times New Roman">Times New Roman</option>
|
|
<option value="Courier New">Courier New</option>
|
|
</select>
|
|
<br>
|
|
<label for="font-size-slider">Taille:</label>
|
|
<input type="range" id="font-size-slider" min="12" max="36" value="16">
|
|
</div>
|
|
|
|
<div class="container" id="block-form">
|
|
<h1 id="welcome">BIENVENUE DANS LE PONG 42</h1>
|
|
<div class="input-container">
|
|
<div id="auth-form">
|
|
<label for="nickname" id="label-nickname">Enter your nickname:</label>
|
|
<input type="text" id="nickname" name="nickname">
|
|
<button id="check-nickname">Check Nickname</button>
|
|
</div>
|
|
<div id="register-form" style="display: none;">
|
|
<label for="password" id="label-password">Enter your password:</label>
|
|
<input type="password" id="password" name="password">
|
|
<label for="confirm-password" id="label-confirm-password">Confirm your password:</label>
|
|
<input type="password" id="confirm-password" name="confirm-password">
|
|
<button id="register">Register</button>
|
|
</div>
|
|
<div id="login-form" style="display: none;">
|
|
<label for="login-password" id="label-login-password">Enter your password:</label>
|
|
<input type="password" id="login-password" name="login-password">
|
|
<button id="login">Login</button>
|
|
</div>
|
|
<div id="post-form-buttons" style="display: none;">
|
|
<button id="local-game">Local Game</button>
|
|
<button id="quick-match">Quick Match</button>
|
|
<button id="tournament">Tournament</button>
|
|
</div>
|
|
<div id="auth-form2" style="display: none;">
|
|
<label for="nickname" id="label-nickname2">Enter the second player's nickname:</label>
|
|
<input type="text" id="nickname2" name="nickname">
|
|
<button id="check-nickname2">Check Nickname</button>
|
|
</div>
|
|
<div id="register-form2" style="display: none;">
|
|
<label for="password" id="label-password2">Enter the second player's password:</label>
|
|
<input type="password" id="password2" name="password">
|
|
<label for="confirm-password" id="label-confirm-password2">Confirm the second player's password:</label>
|
|
<input type="password" id="confirm-password2" name="confirm-password">
|
|
<button id="register2">Register</button>
|
|
</div>
|
|
<div id="login-form2" style="display: none;">
|
|
<label for="login-password" id="label-login-password2">Enter the second player's password:</label>
|
|
<input type="password" id="login-password2" name="login-password">
|
|
<button id="login2">Login</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="navbar">
|
|
<button class="burger-menu">☰</button>
|
|
<div id="dropdown-menu" class="dropdown-content">
|
|
<a href="#" data-table="player-list">Players</a>
|
|
<a href="#" data-table="match-list">Matches</a>
|
|
<a href="#" data-table="tournoi-list">Tournois</a>
|
|
<a href="#" data-table="blockchain-list">blockchain</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="tournament-bracket" style="display: none;"></div>
|
|
|
|
<div id="game1" style="display: none;">
|
|
<div id="player1-name" class="name">Player 1</div>
|
|
<div id="player2-name" class="name">Player 2</div>
|
|
<div id="game2">
|
|
<div id="player1-score" class="score">0</div>
|
|
<div id="player2-score" class="score">0</div>
|
|
<div id="player1-pad" class="pad"></div>
|
|
<div id="player2-pad" class="pad"></div>
|
|
<div id="ball"></div>
|
|
<div id="game-text" class="gameText"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="match-list" class="content-list" style="display: none;">
|
|
<h1>Matches</h1>
|
|
<input type="text" id="search-match-player" placeholder="Rechercher par nom de joueur">
|
|
<input type="date" id="search-match-date">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Player 1</th>
|
|
<th>Player 2</th>
|
|
<th>Score Player 1</th>
|
|
<th>Score Player 2</th>
|
|
<th>Winner</th>
|
|
<th>Ball Touches Player 1</th>
|
|
<th>Ball Touches Player 2</th>
|
|
<th>Duration</th>
|
|
<th>Date</th>
|
|
<th>Is Tournament</th>
|
|
<th>Tournament</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="player-list" class="content-list" style="display: none;">
|
|
<h1>Players</h1>
|
|
<input type="text" id="search-player" placeholder="Rechercher par nom">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Name</th>
|
|
<th>Total Matches</th>
|
|
<th>Total Wins</th>
|
|
<th>Win Percentage</th>
|
|
<th>Average Match Score</th>
|
|
<th>Average Opponent Score</th>
|
|
<th>Best Score</th>
|
|
<th>Average Ball Touches</th>
|
|
<th>Total Duration</th>
|
|
<th>Average Duration</th>
|
|
<th>Participated Tournaments</th>
|
|
<th>Won Tournaments</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div id="tournoi-list" class="content-list" style="display: none;">
|
|
<h1>Tournois</h1>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Name</th>
|
|
<th>Nbr_players</th>
|
|
<th>Date</th>
|
|
<th>Winner</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<script src="{% static 'game.js' %}"></script>
|
|
<script src="{% static 'burger.js' %}"></script>
|
|
<script src="{% static 'language.js' %}"></script>
|
|
</body>
|
|
|
|
</html>
|