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 { #profile-popover {
z-index: 1; z-index: 1;
position: fixed; position: fixed;
right: 1em; top: $header_height;
top: $header_height + 1em;
color: $text; color: $text;
background-color: $secondary; background-color: $secondary;
width: 15em; width: 100%;
border-radius: 1em; }
padding: 1em;
@media (min-width: 768px) {
#profile-popover {
width: 15em;
right: 1em;
top: $header_height + 1em;
border-radius: 1em;
padding: 1em;
}
} }
h2.heading { h2.heading {

View File

@ -8,4 +8,5 @@ export interface Game {
foxesCaught: number; foxesCaught: number;
announcements: Announcement[]; announcements: Announcement[];
solo?: Solo; 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 { ngOnInit(): void {
// TODO: First try to read existing session data
this.authenticateUser(); this.authenticateUser();
} }