From 00efd0f43d889c4d8a34ccdb12be5a2e4cb232c0 Mon Sep 17 00:00:00 2001 From: "mael.daim" Date: Mon, 8 Jan 2024 23:16:05 +0100 Subject: [PATCH] applied reviews changes --- front/style/team_panel.css | 26 +++++++++++--------------- front/views/TeamPanel.tsx | 20 ++++++++++---------- public/index.php | 2 +- src/App/Controller/TeamController.php | 25 ++++++++++++------------- 4 files changed, 34 insertions(+), 39 deletions(-) diff --git a/front/style/team_panel.css b/front/style/team_panel.css index bb573ff..6e48795 100644 --- a/front/style/team_panel.css +++ b/front/style/team_panel.css @@ -1,11 +1,11 @@ -#mainDiv { +#main-div { display: flex; flex-direction: column; align-items: center; height: 100%; } -header { +#main-div header { display: flex; justify-content: center; background-color: #525252; @@ -25,11 +25,7 @@ header h1 a { border: 2px white solid; } -#main_color { - border: solid; -} - -#teamInfo { +#team-info { display: flex; flex-direction: column; align-items: center; @@ -39,13 +35,13 @@ header h1 a { border-radius: 10px; } -#firstPart { +#first-part { display: flex; flex-direction: column; align-items: center; } -#teamName { +#team-name { font-size: 2.8em; } @@ -67,7 +63,7 @@ header h1 a { color: white; } -#actualColors { +#actual-colors { display: flex; flex-direction: row; justify-content: space-around; @@ -97,21 +93,21 @@ header h1 a { margin-bottom: 10px; } -#headMembers { +#head-members { width: 33%; display: flex; flex-direction: row; justify-content: space-evenly; } -#addMember { +#add-member { height: 30px; aspect-ratio: 1/1; border-radius: 100%; align-self: center; } -#Members { +#members { display: flex; flex-direction: column; background-color: #bcbcbc; @@ -121,7 +117,7 @@ header h1 a { border-radius: 10px; } -.Member { +.member { width: 60%; background-color: white; display: flex; @@ -133,7 +129,7 @@ header h1 a { margin-bottom: 5px; } -#profilePicture { +#profile-picture { height: 40px; width: 40px; } diff --git a/front/views/TeamPanel.tsx b/front/views/TeamPanel.tsx index 2afcc34..6d873c8 100644 --- a/front/views/TeamPanel.tsx +++ b/front/views/TeamPanel.tsx @@ -12,7 +12,7 @@ export default function TeamPanel({ currentUserId: number }) { return ( -
+

IQBall @@ -34,9 +34,9 @@ export default function TeamPanel({ function TeamDisplay({ team }: { team: TeamInfo }) { return ( -
-
-

{team.name}

+
+
+

{team.name}

@@ -44,7 +44,7 @@ function TeamDisplay({ team }: { team: TeamInfo }) {

Couleur principale

Couleur secondaire

-
+
@@ -100,12 +100,12 @@ function MembersDisplay({ /> )) return ( -
-
+
+

Membres :

{isCoach && (