-
Notifications
You must be signed in to change notification settings - Fork 0
/
officeEpisodes.component.html
36 lines (36 loc) · 1.63 KB
/
officeEpisodes.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<div class="bg-gray-100 bg-cover">
<div>
<navbar></navbar>
</div>
<h1 class="font large text-gray-700 text-4xl mb-10 text-center font-bold uppercase">The Office Episodes</h1>
<br>
<div class="grid grid-cols-3">
<div *ngFor = "let officeEpisode of webService.episodes_list | async" class='flex'>
<div style="margin: auto; cursor: pointer;" [routerLink]="['/officeEpisode', officeEpisode._id]">
<img src={{officeEpisode.image.medium}} class="h-48">
<div class='text-center'>
{{officeEpisode.name}}
</div>
<div class='text-center mb-4'>
Season
{{officeEpisode.season}} -
Episode
{{officeEpisode.number}}
</div>
</div>
</div>
</div>
<div class='grid grid-cols-2'>
<div class='flex flex-col items-center mt-12'>
<button class='bottom-2 left-2 bg-red-500 hover:bg-red-400 text-black font-bold py-2 px-4 border-b-4 ' (click)='previousPage()'>
Previous
</button>
</div>
<div class='flex flex-col items-center mt-12'>
<button class='bottom-2 right-2 bg-red-500 hover:bg-red-400 text-black font-bold py-2 px-4 border-b-4 ' (click)='nextPage()'>
Next
</button>
</div>
</div>
<footer></footer>
</div>