-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.component.html
51 lines (51 loc) · 1.98 KB
/
app.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<div class="container"
infiniteScroll
[infiniteScrollDistance]="2"
[infiniteScrollThrottle]="50"
(scrolled)="onScroll()">
<div *ngFor="let repository of repositories"
class="row">
<div class="col s12">
<div class="card horizontal hoverable">
<div class="card-image"><a [href]="repository.owner.html_url"
target="_blank"><img [src]="repository.owner.avatar_url"></a></div>
<div class="card-stacked">
<div class="card-content">
<h3>{{ repository.name }}</h3>
<p class="flow-text">{{ repository.description }}</p>
</div>
<div class="card-action">
<a class="waves-effect waves-light btn orange"
[href]="repository.html_url"
target="_blank"><i class="material-icons left">open_in_new</i>Read More</a>
<a class="waves-effect waves-light btn-flat"><i
class="material-icons left">star_border</i>{{ repository.stargazers_count }}</a>
<a class="waves-effect waves-light btn-flat"><i
class="material-icons left">error_outline</i>{{ repository.open_issues_count }}</a>
<a class="waves-effect waves-light btn-flat"><i class="material-icons left">access_time</i>Submitted
{{ dateInterval(repository.created_at) }} days ago by {{ repository.owner.login }}</a>
</div>
</div>
</div>
</div>
</div>
<div *ngIf="isLoading"
class="row"
[ngClass]="{'centered': repositories.length === 0}">
<div class="col s12 center-align">
<div class="preloader-wrapper small active">
<div class="spinner-layer spinner-green-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</div>
</div>
</div>