pong:front: pretty end screen + self & opponent names prints

This commit is contained in:
bgoulard 2026-01-05 15:56:47 +01:00 committed by Maix0
parent 03be784a51
commit 61b49ab370
6 changed files with 61 additions and 18 deletions

View file

@ -6,17 +6,7 @@
Pong Box<span id="t-username"></span>
</h1><br>
<!-- on/off switch for local / online play : idea was re-worked, we probably wont use that -->
<!-- <label class="inline-flex items-center gap-3 cursor-pointer select-none"> -->
<!-- <input id="modeToggle" type="checkbox" class="sr-only"/> -->
<!-- <div id="toggleTrack" class="relative w-14 h-7 rounded-full bg-gray-300 transition-colors duration-300"> -->
<!-- <span id="toggleKnob" class="absolute top-0.5 left-0.5 w-6 h-6 bg-white rounded-full transition-transform duration-300"></span> -->
<!-- </div> -->
<!-- <span id="toggleLabel" class="text-sm font-medium text-gray-700"> Local </span> -->
<!-- </label> -->
<!-- Horizontal Message Box -->
<div id="system-box" class="system-info">System: connecting ... </div>
<div id="score-box" class="grid grid-cols-[1fr_auto_1fr] items-center">
<h1 id="player-left"></h1>
<h1 id="score-board" class="justify-self-center text-p10 font-bold text-gray-800">0:0</h1>