fix franglish and small court
continuous-integration/drone/push Build is passing Details

pull/92/head
maxime 1 year ago
parent 2b49a1393c
commit 939a611e45

@ -1,5 +1,4 @@
<svg width="269" height="309" viewBox="0 0 269 309" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="269" height="309" viewBox="0 0 269 309" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect y="254" width="250" height="269" transform="rotate(-90 0 254)" fill="#D9D9D9"/>
<line x1="24" y1="236" x2="24" y2="26" stroke="black" stroke-width="2"/> <line x1="24" y1="236" x2="24" y2="26" stroke="black" stroke-width="2"/>
<line x1="248" y1="25" x2="248" y2="236" stroke="black" stroke-width="2"/> <line x1="248" y1="25" x2="248" y2="236" stroke="black" stroke-width="2"/>
<line x1="249" y1="237" x2="23" y2="237" stroke="black" stroke-width="2"/> <line x1="249" y1="237" x2="23" y2="237" stroke="black" stroke-width="2"/>

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

@ -6,19 +6,19 @@ export interface SaveState {
export class SaveStates { export class SaveStates {
static readonly Guest: SaveState = { static readonly Guest: SaveState = {
className: "save-state-guest", 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 = { static readonly Ok: SaveState = {
className: "save-state-ok", className: "save-state-ok",
message: "saved", message: "sauvegardé",
} }
static readonly Saving: SaveState = { static readonly Saving: SaveState = {
className: "save-state-saving", className: "save-state-saving",
message: "saving...", message: "sauvegarde...",
} }
static readonly Err: SaveState = { static readonly Err: SaveState = {
className: "save-state-error", className: "save-state-error",
message: "could not save tactic.", message: "erreur lors de la sauvegarde.",
} }
} }

@ -47,6 +47,8 @@
height: 100%; height: 100%;
} }
#allies-rack, #allies-rack,
#opponent-rack { #opponent-rack {
width: 125px; width: 125px;
@ -95,8 +97,7 @@
#court-image-div { #court-image-div {
position: relative; position: relative;
background-color: white; background-color: white;
height: 100%; height: 80vh;
width: 100%;
} }
.court-container { .court-container {

@ -104,19 +104,8 @@
background-color: var(--second-color); background-color: var(--second-color);
} }
.court-kind-button-name, .court-kind-button-name {
.court-kind-button-details {
user-select: none; user-select: none;
font-family: var(--text-main-font); 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;
}

@ -9,19 +9,17 @@ export default function NewTacticPanel() {
return ( return (
<div id={"panel-root"}> <div id={"panel-root"}>
<div id={"panel-top"}> <div id={"panel-top"}>
<p>Select a basket court</p> <p>Selectionnez un terrain</p>
</div> </div>
<div id={"panel-choices"}> <div id={"panel-choices"}>
<div id={"panel-buttons"}> <div id={"panel-buttons"}>
<CourtKindButton <CourtKindButton
name="Plain" name="Terrain complet"
details="Select a plain basketball court"
image={plainCourt} image={plainCourt}
redirect="/tactic/new/plain" redirect="/tactic/new/plain"
/> />
<CourtKindButton <CourtKindButton
name="Half" name="Demi-terrain"
details="Select half a basketball court"
image={halfCourt} image={halfCourt}
redirect="/tactic/new/half" redirect="/tactic/new/half"
/> />
@ -34,19 +32,16 @@ export default function NewTacticPanel() {
function CourtKindButton({ function CourtKindButton({
name, name,
image, image,
details,
redirect, redirect,
}: { }: {
name: string name: string
image: string image: string
details: string
redirect: string redirect: string
}) { }) {
return ( return (
<div <div
className="court-kind-button" className="court-kind-button"
onClick={() => (location.href = BASE + redirect)}> onClick={() => (location.href = BASE + redirect)}>
<div className="court-kind-button-details">{details}</div>
<div className="court-kind-button-top"> <div className="court-kind-button-top">
<div className="court-kind-button-image-div"> <div className="court-kind-button-image-div">
<img <img

Loading…
Cancel
Save