-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtab1.component.html
78 lines (64 loc) · 2.56 KB
/
tab1.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<ons-toolbar>
<div class="center">
<span class="toolbar-button toolbar-button--material" style="width: 50px; height: 50px;">
<img src="https://logodix.com/logo/1115281.png" alt="" style="width: 90%; height: 90%;">
</span>
</div>
<div class="right">
<span *ngIf="!search" class="toolbar-button toolbar-button--material">
<i (click)="bool(true)" class="zmdi zmdi-search"></i>
</span>
<span class="toolbar-button toolbar-button--material">
<i class="zmdi zmdi-menu"></i>
</span>
</div>
</ons-toolbar>
<!--Pesquisar-->
<br>
<div *ngIf="search" style="width: 100%; text-align: center;">
<input type="search" value="" [(ngModel)]="searchText" #ctrl="ngModel" (keyup.enter)="pesquisa($event.target.value)" placeholder="Pesquisar Tag" class="search-input search-input--material" style="width: 95%; border-radius: 5px;">
</div>
<!--título da página-->
<div style="width: 100%; text-align: center;">
<h5 style="color: gainsboro;" >Últimas postagens</h5>
</div>
<!--Card normal-->
<div *ngFor="let item of dados | tags : searchText : i">
<ons-card>
<div style="text-align: center">
<img [src]="item.photo" alt="Baixar" style="width: 300px; heigth: 300px; align: center; border-radius: 1%;">
<div class="content">
<!-- BOTOES -->
<br>
<div>
<i (click)="DownloadProfilePic(item.photo)" class="material-icons" style="font-size: 3em;">
save
</i>
<i class="material-icons" style="font-size: 3em; margin-left: 2em">
share
</i>
</div>
<div>
<!-- TAGs (Material Design CSS) -->
<span *ngFor="let tag of dados[item.id].tags" class="mdl-chip" style="margin: 1%;">
<span class="mdl-chip__text" >{{tag}}</span>
</span>
</div>
</div>
</div>
</ons-card>
<br>
<br>
</div>
<!--Card ads-->
<ons-card>
<div style="text-align: center">
<a href="#" > <img src="https://escritorio3.files.wordpress.com/2011/04/size_590_fala-mais-claro-por-chamada.jpg" alt="" style="width: 300px; heigth: 300px; align: center; border-radius: 1%;"></a>
</div>
</ons-card>
<br>
<br>
<!--Carregando (Material Design CSS)-->
<div *ngIf="carregando" style="margin: 20px auto; width: 100%; text-align: center;">
<ons-progress-circular indeterminate></ons-progress-circular>
</div>