Responsiveness wohoooo
This commit is contained in:
parent
7b17b9b28a
commit
94f5b5c46b
|
@ -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 {
|
||||||
|
|
|
@ -8,4 +8,5 @@ export interface Game {
|
||||||
foxesCaught: number;
|
foxesCaught: number;
|
||||||
announcements: Announcement[];
|
announcements: Announcement[];
|
||||||
solo?: Solo;
|
solo?: Solo;
|
||||||
|
againstTheElders: boolean;
|
||||||
}
|
}
|
||||||
|
|
10
src/app/models/doppelkopf/gameNight.ts
Normal file
10
src/app/models/doppelkopf/gameNight.ts
Normal 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[];
|
||||||
|
}
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user