From 939a611e451d3c1ebb10cfabb178d79194d9353a Mon Sep 17 00:00:00 2001 From: maxime Date: Mon, 8 Jan 2024 23:46:06 +0100 Subject: [PATCH] fix franglish and small court --- front/assets/court/half_court.svg | 1 - front/components/editor/SavingState.tsx | 8 ++++---- front/style/editor.css | 5 +++-- front/style/new_tactic_panel.css | 13 +------------ front/views/NewTacticPanel.tsx | 11 +++-------- 5 files changed, 11 insertions(+), 27 deletions(-) diff --git a/front/assets/court/half_court.svg b/front/assets/court/half_court.svg index 7bf82e0..f621f93 100644 --- a/front/assets/court/half_court.svg +++ b/front/assets/court/half_court.svg @@ -1,5 +1,4 @@ - diff --git a/front/components/editor/SavingState.tsx b/front/components/editor/SavingState.tsx index 68c2285..ed699b4 100644 --- a/front/components/editor/SavingState.tsx +++ b/front/components/editor/SavingState.tsx @@ -6,19 +6,19 @@ export interface SaveState { export class SaveStates { static readonly Guest: SaveState = { className: "save-state-guest", - message: "you are not connected, your changes will not be saved.", + message: "vous n'etes pas connectés, les changements seront sauvegardés sur votre navigateur.", } static readonly Ok: SaveState = { className: "save-state-ok", - message: "saved", + message: "sauvegardé", } static readonly Saving: SaveState = { className: "save-state-saving", - message: "saving...", + message: "sauvegarde...", } static readonly Err: SaveState = { className: "save-state-error", - message: "could not save tactic.", + message: "erreur lors de la sauvegarde.", } } diff --git a/front/style/editor.css b/front/style/editor.css index 258476a..d81f38a 100644 --- a/front/style/editor.css +++ b/front/style/editor.css @@ -47,6 +47,8 @@ height: 100%; } + + #allies-rack, #opponent-rack { width: 125px; @@ -95,8 +97,7 @@ #court-image-div { position: relative; background-color: white; - height: 100%; - width: 100%; + height: 80vh; } .court-container { diff --git a/front/style/new_tactic_panel.css b/front/style/new_tactic_panel.css index ff6a07e..b1043d8 100644 --- a/front/style/new_tactic_panel.css +++ b/front/style/new_tactic_panel.css @@ -104,19 +104,8 @@ background-color: var(--second-color); } -.court-kind-button-name, -.court-kind-button-details { +.court-kind-button-name { user-select: none; font-family: var(--text-main-font); } -.court-kind-button-details { - position: absolute; - z-index: -1; - top: 0; - transition: top 1s; -} - -.court-kind-button:hover .court-kind-button-details { - top: -20px; -} diff --git a/front/views/NewTacticPanel.tsx b/front/views/NewTacticPanel.tsx index 97ec0a5..d02f314 100644 --- a/front/views/NewTacticPanel.tsx +++ b/front/views/NewTacticPanel.tsx @@ -9,19 +9,17 @@ export default function NewTacticPanel() { return (
-

Select a basket court

+

Selectionnez un terrain

@@ -34,19 +32,16 @@ export default function NewTacticPanel() { function CourtKindButton({ name, image, - details, redirect, }: { name: string image: string - details: string redirect: string }) { return (
(location.href = BASE + redirect)}> -
{details}