Commit 2deeb825 authored by Dennis Willers's avatar Dennis Willers
Browse files

Add Impressum

Add Circle in Spinner background
parent a0064812
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5,12 +5,17 @@ import {SelectGameComponent} from './select-game/select-game.component';
import {ErrorComponent} from './error/error.component';
import {GameComponent} from './game/game.component';
import {GuesserComponent} from './guesser/guesser.component';
import {ImpressumComponent} from './impressum/impressum.component';

const routes: Routes = [
  {
    path: 'error',
    component: ErrorComponent,
  },
  {
    path: 'impressum',
    component: ImpressumComponent,
  },
  {
    path: ':sessionName',
    component: OverviewComponent,
+2 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import {MatIconModule} from '@angular/material/icon';
import {MatTooltipModule} from '@angular/material/tooltip';
import {IsAllowedToPlay} from './dao/isAllowedToPlay';
import {SocketDataService} from './dao/socketDataService';
import { ImpressumComponent } from './impressum/impressum.component';

@NgModule({
  declarations: [
@@ -36,6 +37,7 @@ import {SocketDataService} from './dao/socketDataService';
    ErrorComponent,
    GameComponent,
    GuesserComponent,
    ImpressumComponent,
  ],
  imports: [
    HttpClientModule,
+2 −0
Original line number Diff line number Diff line
@@ -21,9 +21,11 @@ export class SocketDataService {
  }

  disconect(): void {
    if (this.isConnected) {
      this.socket.disconnect();
      this.isConnected = false;
    }
  }

  getNewGame(sessionName: string): Observable<any> {
    if (!this.isConnected) {
+1 −1
Original line number Diff line number Diff line
<mat-toolbar color="primary" style="display: flex">
  <span class="example-spacer"></span>
  <span class="impressum" (click)="toImpressum()">Impressum</span>
  <span class="copyrightSize">Mit Liebe designed von Dennis Willers und Isabell Heider</span>
</mat-toolbar>
+3 −1
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@
  font-size: 12px;
}

.example-spacer {
.impressum {
  font-size: 12px;
  cursor: pointer;
  flex: 1 1 auto;
}
Loading