Skip to content

Commit

Permalink
T74 #193 Link do evento no carrousel, alert de usuario nao encontrado…
Browse files Browse the repository at this point in the history
… e formataçao da imagem do criador do evento
  • Loading branch information
AGoretti committed Jun 25, 2019
1 parent 5c2c568 commit 33a5b21
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export class SignModalComponent implements OnInit {
})
.catch((x: { error: {} }) => {
console.log(x);
this.data.addAlert(new Alert('danger', 'Usuário ou senha Invalidos!', 3000));
this.clicked = false;
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,17 @@
width: auto;
margin: 0 auto;
display: block;
max-height: 200px;
max-width: 100px;
height: 100px;
}

.imagerwd {
cursor: pointer;
width: auto;
margin: 0 auto;
display: block;
max-height: 200px;
}

.imagePerfil:hover {
box-shadow: 0 0 7px #878e88;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h5 class="card-title">
</p>
<p class="card-text">
<span class="text-muted d-block">Recompensa:</span>
<img src="{{rwrd_img}}" class="rounded-circle imagePerfil" data-toggle="tooltip" data-placement="top" title={{rwrd_name}}>
<img src="{{rwrd_img}}" class="rounded-circle imagerwd" data-toggle="tooltip" data-placement="top" title={{rwrd_name}}>
</p>
<div *ngIf="currentId !== creatorId">
<a class="btn btn-primary d-md-block" *ngIf="logged && !participate && !clicked" type="button" (click)="Participar()">Participar</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
<div class="carousel-div">
<carousel>
<slide class="slide-height" *ngFor="let mainEvent of mainEvents">
<div class="bg-slide" [ngStyle]="{ 'background-image': 'url(' + mainEvent.url_image + ')'}"></div>
<a [routerLink]="['/evento/', mainEvent.id]">
<div class="bg-slide" [ngStyle]="{ 'background-image': 'url(' + mainEvent.url_image + ')'}">
</div>
</a>
</slide>
</carousel>
</div>
Expand Down

0 comments on commit 33a5b21

Please sign in to comment.