From fdea80ce87797672f06d391103464b3e328f2c35 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 | 18 +++++++++--------- src/App/Controller/UserController.php | 2 +- 3 files changed, 31 insertions(+), 15 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 4a6425c..43de571 100644 --- a/front/views/Home.tsx +++ b/front/views/Home.tsx @@ -25,7 +25,7 @@ export function Title() { } export function Body({ lastTactics } : { lastTactics : Tactic[] }) { - const widthPersonalSpace = 70; + const widthPersonalSpace = 67.5; const widthSideMenu = 100-widthPersonalSpace return (
@@ -61,8 +61,8 @@ export function PersonalSpace({ width }: { width : number }) { export function Team() { return ( -
-

Mes équipes

+
+

Mes équipes

) @@ -80,13 +80,13 @@ export function Tactic({lastTactics} : { lastTactics : Tactic[]}) { ); return (
-
-

Mes cinq dernières stratégies

+
+

Mes cinq dernières stratégies

-
    - {listTactic} -
-
+
+
    + {listTactic} +
) } \ No newline at end of file diff --git a/src/App/Controller/UserController.php b/src/App/Controller/UserController.php index e17b357..38b8567 100644 --- a/src/App/Controller/UserController.php +++ b/src/App/Controller/UserController.php @@ -22,7 +22,7 @@ class UserController { */ public function home(SessionHandle $session): ViewHttpResponse { $lastTactic = $this->tactics->getLast(5); - // var_dump($lastTactic); + var_dump($session->getAccount()); return ViewHttpResponse::react("views/Home.tsx", [ "lastTactics" => $lastTactic ]);