diff --git a/front/style/team_panel.css b/front/style/team_panel.css index 3ff5ff7..409ecc9 100644 --- a/front/style/team_panel.css +++ b/front/style/team_panel.css @@ -1,5 +1,5 @@ -body { - background-color: var(--background-color); +#mainDiv { + background-color: lightblue; display: flex; flex-direction: column; align-items: center; @@ -23,6 +23,7 @@ section { } #colors{ + display: flex; flex-direction: row; } .color { @@ -30,9 +31,11 @@ section { justify-content: space-between; } -.logo { - height: 80px; - width: 80px; +#logo { + width: 90%; + aspect-ratio: 3/2; + object-fit: contain; + mix-blend-mode: color-burn; } #delete{ @@ -45,3 +48,36 @@ section { flex-direction: row; justify-content: space-evenly; } + +#profilePicture{ + height:40px; + width:40px; +} + +#Members{ + display: flex; + flex-direction: column; + background-color: lightcoral; + width: 60%; + align-items: center; + justify-content: space-between; + +} + +.Member{ + width: 60%; + background-color: red; + display: flex; + flex-direction: row; + justify-content: space-evenly; +} + +#teamInfo{ + display: flex; + flex-direction: column; + align-items: center; + + width: 60%; + align-items: center; + background-color: #666666; +} \ No newline at end of file diff --git a/front/views/TeamPanel.tsx b/front/views/TeamPanel.tsx index 5458b1b..e6f7166 100644 --- a/front/views/TeamPanel.tsx +++ b/front/views/TeamPanel.tsx @@ -4,39 +4,40 @@ import {Team,TeamInfo,Color,User,Member} from "../model/Team/Team" export default function TeamPanel({isCoach, team}: {isCoach: boolean, team: Team }){ return ( -
Couleur principale
-Couleur secondaire
-{member.user.name}
{member.role}
{member.user.email}
diff --git a/src/App/Controller/TeamController.php b/src/App/Controller/TeamController.php index df6188c..8b85773 100644 --- a/src/App/Controller/TeamController.php +++ b/src/App/Controller/TeamController.php @@ -138,6 +138,7 @@ class TeamController { } else{ $role = $this->model->isCoach($id,$session->getAccount()->getUser()->getEmail()); + var_dump($role); return ViewHttpResponse::react('views/TeamPanel.tsx', [ 'team' => [ "info" => $result->getInfo(), diff --git a/src/Core/Gateway/MemberGateway.php b/src/Core/Gateway/MemberGateway.php index f9b0c3d..70e2032 100644 --- a/src/Core/Gateway/MemberGateway.php +++ b/src/Core/Gateway/MemberGateway.php @@ -78,7 +78,8 @@ class MemberGateway { "email" => [$email, PDO::PARAM_STR] ] )[0]['role']; - return $result == 'Coach'; + var_dump($result); + return $result == 'COACH'; } /**