Skip to content

Commit

Permalink
Card display draft
Browse files Browse the repository at this point in the history
  • Loading branch information
rbs333 committed Jun 25, 2018
1 parent 64f36c9 commit 81abd19
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
23 changes: 23 additions & 0 deletions src/app/episodes/episodes.component.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.episodeViewContainer {
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto;
grid-template-areas: "audioPanel episodes";
grid-column-gap: 1em;
}

.audioPanel {
grid-area: audioPanel;
}

.episodes {
grid-area: episodes;
display: inline-flex;
flex-wrap: wrap;
}

.episodeCard {
display: inline-block;
margin: .5em;
max-width: 7em;
}
21 changes: 15 additions & 6 deletions src/app/episodes/episodes.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<div class="EpisodeViewContainer">
<mat-card *ngFor="let episode of episodes">
<mat-card-title> {{ episode.title }} </mat-card-title>
<mat-card-subtitle> {{episode.number}} </mat-card-subtitle>
<img mat-card-image src="{{episode.img}}">
</mat-card>
<div class="episodeViewContainer">
<div class="audioPanel">
<h2> I am the audio player </h2>
</div>
<div class="episodes">
<mat-card class="episodeCard" *ngFor="let episode of episodes">
<mat-card-header>
<mat-card-subtitle> {{episode.number}} </mat-card-subtitle>
</mat-card-header>
<img mat-card-image src="{{episode.img}}">
<mat-card-footer>
<mat-card-title> {{episode.title}} </mat-card-title>
</mat-card-footer>
</mat-card>
</div>
</div>

0 comments on commit 81abd19

Please sign in to comment.