mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-15 08:15:37 +00:00
64 lines
2.4 KiB
HTML
64 lines
2.4 KiB
HTML
<div fxLayout="row" fxLayoutAlign="center" style="margin-top: 16px;" *ngIf="this.game !== null && this.game !== undefined">
|
|
<div fxLayout="column" fxFlex="0 1 70" fxLayoutGap="16px" fxFlex.lt-xl="95">
|
|
<div fxLayout="row" fxLayout.lt-lg="column" fxLayoutGap="16px">
|
|
|
|
<div fxLayoutAlign.lt-lg="center">
|
|
<img style="max-width: 264px;" src="v1/images/{{game.coverId}}" alt="Game cover">
|
|
</div>
|
|
|
|
<div fxFlex="40" fxLayout="column" id="game-details">
|
|
<h1>{{game.title}}</h1>
|
|
<h3>Rating: {{game.totalRating}}/100</h3>
|
|
<h3>Release: {{game.releaseDate | date: 'longDate'}}</h3>
|
|
<p id="game-summary">{{game.summary}}</p>
|
|
</div>
|
|
|
|
<div fxFlex><!-- Spacer --></div>
|
|
|
|
<div fxLayout="column" fxFlex="40" fxLayoutGap="16px">
|
|
|
|
<div fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="16px">
|
|
<button mat-raised-button color="primary" (click)="downloadGame()">
|
|
<mat-icon>download</mat-icon>
|
|
</button>
|
|
<b style="font-size: 24px">Download ({{bytesAsHumanReadableString(game.diskSize)}})</b>
|
|
</div>
|
|
|
|
<div fxLayout="column" fxLayoutGap="24px">
|
|
<div *ngIf="game.genres !== undefined && game.genres.length > 0">
|
|
<h2>Genres</h2>
|
|
<mat-chip-list>
|
|
<mat-chip *ngFor="let genre of game.genres">{{genre.name}}</mat-chip>
|
|
</mat-chip-list>
|
|
</div>
|
|
|
|
<div *ngIf="game.themes !== undefined && game.themes.length > 0">
|
|
<h2>Themes</h2>
|
|
<mat-chip-list>
|
|
<mat-chip *ngFor="let theme of game.themes">{{theme.name}}</mat-chip>
|
|
</mat-chip-list>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div fxLayout="column" fxLayoutGap="16px">
|
|
<div *ngIf="game.screenshotIds !== undefined && game.screenshotIds.length > 0">
|
|
<h2>Screenshots</h2>
|
|
<div fxLayout="row wrap" fxLayoutGap="8px">
|
|
<div *ngFor="let screenshotId of game.screenshotIds">
|
|
<game-screenshot [screenshotId]="screenshotId"></game-screenshot>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div *ngIf="game.videoIds !== undefined && game.videoIds.length > 0">
|
|
<h2>Videos</h2>
|
|
<div fxLayout="row wrap" fxLayoutGap="8px">
|
|
<div *ngFor="let videoId of game.videoIds">
|
|
<game-video [videoId]="videoId" [width]="555" [height]="312"></game-video>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|