WIP update the tactic research

pull/81/head
DahmaneYanis 1 year ago committed by d_yanis
parent 232299b1bd
commit 2f8fef9bfc

@ -1,11 +1,11 @@
#main { #main {
margin-left : 2%; margin-left : 10%;
margin-right: 2%; margin-right: 10%;
border : solid 2px purple; border : solid 2px purple;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-family: Helvetica,;
} }
.new { .new {
@ -30,8 +30,7 @@
} }
#sideMenu { #sideMenu {
background-color: blue; background-color: grey;
} }
#ps-title { #ps-title {
@ -42,3 +41,20 @@
display: inline-block; display: inline-block;
margin-right : 5%; margin-right : 5%;
} }
.titreSideMenu {
border-bottom: black solid 2px;
width: 95%;
}
#sideMenu .title {
font-size: 13px;
font-weight: bold;
color : #FFFFFF;
letter-spacing: 1px;
text-transform: uppercase;
background-color: black;
padding : 1.5%;
margin-bottom: 0px;
}

@ -115,7 +115,6 @@ export function Team() {
return ( return (
<div className="titreSideMenu"> <div className="titreSideMenu">
<h2 className="title">Mes équipes</h2> <h2 className="title">Mes équipes</h2>
<button className="new" onClick={() => location.pathname="/tactic/new"}>+</button> <button className="new" onClick={() => location.pathname="/tactic/new"}>+</button>
</div> </div>
) )

@ -26,6 +26,7 @@ class UserController {
$limitNbTactics = 5; $limitNbTactics = 5;
$lastTactics = $this->tactics->getLast($limitNbTactics, $session->getAccount()->getId()); $lastTactics = $this->tactics->getLast($limitNbTactics, $session->getAccount()->getId());
$allTactics = $this->tactics->getAll($session->getAccount()->getId()); $allTactics = $this->tactics->getAll($session->getAccount()->getId());
return ViewHttpResponse::react("views/Home.tsx", [ return ViewHttpResponse::react("views/Home.tsx", [
"lastTactics" => $lastTactics, "lastTactics" => $lastTactics,
"allTactics" => $allTactics "allTactics" => $allTactics

Loading…
Cancel
Save