Commit fbd9fe2b authored by Dennis Willers's avatar Dennis Willers 🏀

Change new Game Start Button

parent 866e8b3f
Pipeline #306 passed with stages
in 5 minutes and 21 seconds
...@@ -22,6 +22,7 @@ import { GameComponent } from './game/game.component'; ...@@ -22,6 +22,7 @@ import { GameComponent } from './game/game.component';
import { GuesserComponent } from './guesser/guesser.component'; import { GuesserComponent } from './guesser/guesser.component';
import {MatSlideToggleModule} from '@angular/material/slide-toggle'; import {MatSlideToggleModule} from '@angular/material/slide-toggle';
import {MatIconModule} from '@angular/material/icon'; import {MatIconModule} from '@angular/material/icon';
import {MatTooltipModule} from '@angular/material/tooltip';
@NgModule({ @NgModule({
declarations: [ declarations: [
...@@ -48,7 +49,8 @@ import {MatIconModule} from '@angular/material/icon'; ...@@ -48,7 +49,8 @@ import {MatIconModule} from '@angular/material/icon';
MatProgressSpinnerModule, MatProgressSpinnerModule,
FormsModule, FormsModule,
MatSlideToggleModule, MatSlideToggleModule,
MatIconModule MatIconModule,
MatTooltipModule
], ],
providers: [], providers: [],
bootstrap: [AppComponent] bootstrap: [AppComponent]
......
<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">
<div class="FloatLeftAndCenterElement">
<div class="newStartButtonLeft">
<button matTooltip="Neues Spiel starten" [disabled]="buttonPlayDisabled" mat-raised-button color="primary" (click)="startGame()">
<mat-icon color = "white" aria-hidden="false">autorenew</mat-icon></button>
</div>
<div class="CenterText">
<h2>{{membership}}</h2> <h2>{{membership}}</h2>
</div>
</div>
<button mat-raised-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 mat-raised-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>
</mat-card> </mat-card>
<br> <br>
<br> <br>
...@@ -33,7 +40,6 @@ ...@@ -33,7 +40,6 @@
<mat-card-title>{{nextTeam}} ist am Zug:</mat-card-title> <mat-card-title>{{nextTeam}} ist am Zug:</mat-card-title>
<br> <br>
<button [disabled]="buttonPlayDisabled" mat-raised-button color="primary">Nächste Runde</button> <button [disabled]="buttonPlayDisabled" mat-raised-button color="primary">Nächste Runde</button>
<button [disabled]="buttonPlayDisabled" mat-raised-button color="primary" (click)="startGame()">Neues Spiel starten</button>
</mat-card-actions> </mat-card-actions>
</mat-card> </mat-card>
</div> </div>
...@@ -22,3 +22,7 @@ table { ...@@ -22,3 +22,7 @@ table {
margin: 5px; margin: 5px;
cursor: pointer; cursor: pointer;
} }
.FloatLeftAndCenterElement{width:100%;}
.newStartButtonLeft{float:left;width:100px;}
.CenterText{margin:0 auto;width:250px;}
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