Responsiveness wohoooo

This commit is contained in:
Patrick Müller 2022-09-03 15:20:09 +02:00
parent 7b17b9b28a
commit 94f5b5c46b
Signed by: Paddy
GPG Key ID: 37ABC11275CAABCE
4 changed files with 24 additions and 5 deletions

View File

@ -3,13 +3,20 @@
#profile-popover {
z-index: 1;
position: fixed;
right: 1em;
top: $header_height + 1em;
top: $header_height;
color: $text;
background-color: $secondary;
width: 15em;
border-radius: 1em;
padding: 1em;
width: 100%;
}
@media (min-width: 768px) {
#profile-popover {
width: 15em;
right: 1em;
top: $header_height + 1em;
border-radius: 1em;
padding: 1em;
}
}
h2.heading {

View File

@ -8,4 +8,5 @@ export interface Game {
foxesCaught: number;
announcements: Announcement[];
solo?: Solo;
againstTheElders: boolean;
}

View File

@ -0,0 +1,10 @@
import {Game} from './game';
import {Player} from './player';
export interface GameNight {
gameNightId: number;
date: Date;
players: Player[]; // We need players here and in the game because maybe we have 5 players for a game night and
// they switch every game
games: Game[];
}

View File

@ -17,6 +17,7 @@ export class HomeComponent implements OnInit {
}
ngOnInit(): void {
// TODO: First try to read existing session data
this.authenticateUser();
}