From 2f8fef9bfc9e72783b0bf01d9e60e8c6dff096b5 Mon Sep 17 00:00:00 2001 From: DahmaneYanis Date: Mon, 18 Dec 2023 17:39:04 +0100 Subject: [PATCH] WIP update the tactic research --- front/style/home.css | 26 +++++++++++++++++++++----- front/views/Home.tsx | 1 - src/App/Controller/UserController.php | 1 + 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/front/style/home.css b/front/style/home.css index cc773e6..c6989e9 100644 --- a/front/style/home.css +++ b/front/style/home.css @@ -1,11 +1,11 @@ #main { - margin-left : 2%; - margin-right: 2%; + margin-left : 10%; + margin-right: 10%; border : solid 2px purple; display: flex; flex-direction: column; - + font-family: Helvetica,; } .new { @@ -30,8 +30,7 @@ } #sideMenu { - background-color: blue; - + background-color: grey; } #ps-title { @@ -42,3 +41,20 @@ display: inline-block; 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; +} \ No newline at end of file diff --git a/front/views/Home.tsx b/front/views/Home.tsx index 645e9d2..9b11d35 100644 --- a/front/views/Home.tsx +++ b/front/views/Home.tsx @@ -115,7 +115,6 @@ export function Team() { return (

Mes équipes

-
) diff --git a/src/App/Controller/UserController.php b/src/App/Controller/UserController.php index 0af4214..9ad767f 100644 --- a/src/App/Controller/UserController.php +++ b/src/App/Controller/UserController.php @@ -26,6 +26,7 @@ class UserController { $limitNbTactics = 5; $lastTactics = $this->tactics->getLast($limitNbTactics, $session->getAccount()->getId()); $allTactics = $this->tactics->getAll($session->getAccount()->getId()); + return ViewHttpResponse::react("views/Home.tsx", [ "lastTactics" => $lastTactics, "allTactics" => $allTactics