-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from grammerjam/standard-card
Standard card
- Loading branch information
Showing
15 changed files
with
279 additions
and
63 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ | |
|
||
main { | ||
display: grid; | ||
height: 100dvh; | ||
min-height: 100dvh; | ||
grid-template-rows: auto auto 1fr; | ||
} |
25 changes: 17 additions & 8 deletions
25
base-client/src/app/components/regular-card/regular-card.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
<ul> | ||
<li>{{selectionData.title}}</li> | ||
<li>{{selectionData.category}}</li> | ||
<li>{{selectionData.isBookmarked}}</li> | ||
<li>{{selectionData.isTrending}}</li> | ||
<li>{{selectionData.rating}}</li> | ||
<li>{{selectionData.year}}</li> | ||
</ul> | ||
<article class="regular-card"> | ||
<img class="regular-thumbnail" [src]="selectionData.thumbnail.regular.small" [srcset]="" [alt]="selectionData.title"> | ||
<app-bookmark [isBookmarked]="selectionData.isBookmarked" /> | ||
<div class="regular-card-data-container"> | ||
<div class="regular-card-data"> | ||
<span class="op-75">{{selectionData.year}}</span> | ||
<span class="op-50">•</span> | ||
<img class="regular-category-icon" | ||
[src]="selectionData.category === 'Movie' ? './assets/icon-category-movie.svg' : './assets/icon-category-tv.svg'" | ||
[alt]="selectionData.category"> | ||
<span class="op-75">{{selectionData.category}}</span> | ||
<span class="op-50">•</span> | ||
<span class="op-75">{{selectionData.rating}}</span> | ||
</div> | ||
<h3>{{selectionData.title}}</h3> | ||
</div> | ||
</article> |
Oops, something went wrong.