Commit d42b70d9 authored by Isabell Heider's avatar Isabell Heider

Customized Team Buttons

parent f096b7f9
Pipeline #304 passed with stages
in 5 minutes and 17 seconds
<div style="text-align: center; margin-left: 15em; margin-right: 15em; margin-top: 5em;"> <div style="text-align: center; margin-left: 15em; margin-right: 15em; margin-top: 5em;">
<mat-card class="transparent"> <mat-card class="transparent">
<h2>{{membership}}</h2> <h2>{{membership}}</h2>
<button class = "red" (click)="joinTeam('red')"> <button mat-raised-button class = "{{red}}" (click)="joinTeam('red')">
<mat-icon color = "warn" aria-hidden="false" aria-label="home icon red">home</mat-icon> <mat-icon color = "warn" aria-hidden="false" aria-label="home icon red">home</mat-icon>
</button> </button>
<button class = "blue" (click)="joinTeam('blue')"> <button mat-raised-button class = "{{blue}}" (click)="joinTeam('blue')">
<mat-icon style="color: darkblue" aria-hidden="false" aria-label="home icon blue">home</mat-icon> <mat-icon style="color: darkblue" aria-hidden="false" aria-label="home icon blue">home</mat-icon>
</button> </button>
......
...@@ -9,19 +9,16 @@ table { ...@@ -9,19 +9,16 @@ table {
} }
.blue{ .blue{
border-color: darkblue;
margin: 5px; margin: 5px;
cursor: pointer; background-color: rgba(0,0,139,0.5);
} }
.red{ .red{
border-color: red;
margin: 5px; margin: 5px;
cursor: pointer; background-color: rgba(200, 0, 0, 0.3);
} }
.button:active .choose{
{ margin: 5px;
background-color:darkred; cursor: pointer;
} }
...@@ -9,6 +9,8 @@ import {GameStatus} from '../interface/gameStatus'; ...@@ -9,6 +9,8 @@ import {GameStatus} from '../interface/gameStatus';
styleUrls: ['./overview.component.scss'] styleUrls: ['./overview.component.scss']
}) })
export class OverviewComponent implements OnInit { export class OverviewComponent implements OnInit {
red = 'choose';
blue = 'choose';
nextTeam = ''; nextTeam = '';
team = ''; team = '';
buttonPlayDisabled = true; buttonPlayDisabled = true;
...@@ -35,10 +37,14 @@ export class OverviewComponent implements OnInit { ...@@ -35,10 +37,14 @@ export class OverviewComponent implements OnInit {
if (this.team === 'red'){ if (this.team === 'red'){
this.membership = 'Du gehörst zu Team rot!'; this.membership = 'Du gehörst zu Team rot!';
this.buttonPlayDisabled = false; this.buttonPlayDisabled = false;
this.red = 'red';
this.blue = 'choose';
} }
else if (this.team === 'blue'){ else if (this.team === 'blue'){
this.membership = 'Du gehörst zu Team blau!'; this.membership = 'Du gehörst zu Team blau!';
this.buttonPlayDisabled = false; this.buttonPlayDisabled = false;
this.blue = 'blue';
this.red = 'choose';
} }
else if (this.team === 'null'){ else if (this.team === 'null'){
this.membership = 'Wähle dein Team'; this.membership = 'Wähle dein Team';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment