From a1ae17227b020b8ced02b0d3afe9db6a12cd4954 Mon Sep 17 00:00:00 2001 From: MaciejkaG Date: Thu, 18 Apr 2024 10:46:33 +0200 Subject: [PATCH] Design improvements --- public/assets/css/board.css | 5 +++-- public/assets/js/socket-game.js | 2 +- views/layouts/main.handlebars | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/assets/css/board.css b/public/assets/css/board.css index 8e401c7..83dc6e6 100644 --- a/public/assets/css/board.css +++ b/public/assets/css/board.css @@ -49,12 +49,13 @@ h1,h2,h3,h4,h5,h6 { position: fixed; bottom: 5px; left: 5px; - color: rgb(0, 255, 0); + color: rgb(255, 80, 80); font-size: 9px; pointer-events: none; user-select: none; z-index: 999; - font-family: 'Roboto Mono', monospace; + font-family: "IBM Plex Mono", monospace; + font-weight: 400; } .board { diff --git a/public/assets/js/socket-game.js b/public/assets/js/socket-game.js index 48f855a..5ae6f07 100644 --- a/public/assets/js/socket-game.js +++ b/public/assets/js/socket-game.js @@ -106,7 +106,7 @@ socket.on("ship sunk", (victimIdx, ship) => { break; } - let l = !ship.type ? ship.type + 1 : ship.type + 2; + let l = ship.type + 1; if (victimIdx === playerIdx) { for (let i = 0; i < l; i++) { console.log("ourship"); diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars index 79502a4..f576460 100644 --- a/views/layouts/main.handlebars +++ b/views/layouts/main.handlebars @@ -15,7 +15,7 @@ - Designed by Maciejka + Designed by mcjk {{{body}}}