-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
106 additions
and
133 deletions.
There are no files selected for viewing
132 changes: 12 additions & 120 deletions
132
src/app/discover/pets-list-item/pets-list-item.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,125 +1,17 @@ | ||
<div class='card-deck'> | ||
<div class="card"> | ||
<img class="card-img-top" src="https://www.paulickreport.com/wp-content/uploads/2015/08/Happy_horse.jpg" alt="Card image cap"> | ||
<div class="card-body d-flex flex-column"> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<h5 class="card-title float-left">Pé de pano</h5> | ||
<span class="badge badge-danger float-right">Abandonado</span> | ||
<div class="container"> | ||
<div class='row card-list-pet'> | ||
<div *ngFor="let pet of pets" class="card col-md-4"> | ||
<img class="card-img-top" [src]="pet.photo" alt="Card image cap"> | ||
<div class="card-body d-flex flex-column"> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<h5 class="card-title float-left">{{ pet.name }}</h5> | ||
<span class="badge badge-danger float-right">{{ pet.isAdoption }}</span> | ||
</div> | ||
</div> | ||
<p class="card-text">{{ pet.description }}</p> | ||
<a href="#" class="btn btn-info float-right btn-sm text-center mt-auto ">+ informações</a> | ||
</div> | ||
<p class="card-text">Oi! Fui abandonado e preciso de um novo lar. Sou bem divertido :D</p> | ||
<a href="#" class="btn btn-info float-right btn-sm text-center mt-auto ">+ informações</a> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<img class="card-img-top" src="http://talkingship.com/wp/wp-content/uploads/2013/12/dog-laughing-from-Laugh-It-Out-with-Luisa-Thwaites-443x325.jpg" alt="Card image cap"> | ||
<div class="card-body d-flex flex-column"> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<h5 class="card-title float-left">Cãopeão</h5> | ||
<span class="badge badge-success float-right">Adoção</span> | ||
</div> | ||
</div> | ||
<p class="card-text">Yeahhhhhh!</p> | ||
<a href="#" class="btn btn-info float-right btn-sm text-center mt-auto ">+ informações</a> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<img class="card-img-top" src="https://www.bestfunnies.com/wp-content/uploads/2012/06/Funny-Pig-48.jpg" alt="Card image cap"> | ||
<div class="card-body d-flex flex-column"> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<h5 class="card-title float-left">Baby</h5> | ||
<span class="badge badge-warning float-right">Achado</span> | ||
</div> | ||
</div> | ||
<p class="card-text">Perdi o caminho de casa. Conhece meu dono? Quer me adotar?</p> | ||
<a href="#" class="btn btn-info float-right btn-sm text-center mt-auto">+ informações</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class='card-deck'> | ||
<div class="card"> | ||
<img class="card-img-top" src="https://www.paulickreport.com/wp-content/uploads/2015/08/Happy_horse.jpg" alt="Card image cap"> | ||
<div class="card-body d-flex flex-column"> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<h5 class="card-title float-left">Pé de pano</h5> | ||
<span class="badge badge-danger float-right">Abandonado</span> | ||
</div> | ||
</div> | ||
<p class="card-text">Oi! Fui abandonado e preciso de um novo lar. Sou bem divertido :D</p> | ||
<a href="#" class="btn btn-info float-right btn-sm text-center mt-auto">+ informações</a> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<img class="card-img-top" src="http://talkingship.com/wp/wp-content/uploads/2013/12/dog-laughing-from-Laugh-It-Out-with-Luisa-Thwaites-443x325.jpg" alt="Card image cap"> | ||
<div class="card-body d-flex flex-column"> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<h5 class="card-title float-left">Cãopeão</h5> | ||
<span class="badge badge-success float-right">Adoção</span> | ||
</div> | ||
</div> | ||
<p class="card-text">Yeahhhhhh!</p> | ||
<a href="#" class="btn btn-info float-right btn-sm text-center mt-auto ">+ informações</a> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<img class="card-img-top" src="https://www.bestfunnies.com/wp-content/uploads/2012/06/Funny-Pig-48.jpg" alt="Card image cap"> | ||
<div class="card-body d-flex flex-column"> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<h5 class="card-title float-left">Baby</h5> | ||
<span class="badge badge-warning float-right">Achado</span> | ||
</div> | ||
</div> | ||
<p class="card-text">Perdi o caminho de casa. Conhece meu dono? Quer me adotar?</p> | ||
<a href="#" class="btn btn-info float-right btn-sm text-center mt-auto">+ informações</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class='card-deck'> | ||
<div class="card"> | ||
<img class="card-img-top" src="https://www.paulickreport.com/wp-content/uploads/2015/08/Happy_horse.jpg" alt="Card image cap"> | ||
<div class="card-body d-flex flex-column"> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<h5 class="card-title float-left">Pé de pano</h5> | ||
<span class="badge badge-danger float-right">Abandonado</span> | ||
</div> | ||
</div> | ||
<p class="card-text">Oi! Fui abandonado e preciso de um novo lar. Sou bem divertido :D</p> | ||
<a href="#" class="btn btn-info float-right btn-sm text-center mt-auto">+ informações</a> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<img class="card-img-top" src="http://talkingship.com/wp/wp-content/uploads/2013/12/dog-laughing-from-Laugh-It-Out-with-Luisa-Thwaites-443x325.jpg" alt="Card image cap"> | ||
<div class="card-body d-flex flex-column"> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<h5 class="card-title float-left">Cãopeão</h5> | ||
<span class="badge badge-success float-right">Adoção</span> | ||
</div> | ||
</div> | ||
<p class="card-text">Yeahhhhhh!</p> | ||
<a href="#" class="btn btn-info float-right btn-sm text-center mt-auto ">+ informações</a> | ||
</div> | ||
</div> | ||
<div class="card"> | ||
<img class="card-img-top" src="https://www.bestfunnies.com/wp-content/uploads/2012/06/Funny-Pig-48.jpg" alt="Card image cap"> | ||
<div class="card-body d-flex flex-column"> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<h5 class="card-title float-left">Baby</h5> | ||
<span class="badge badge-warning float-right">Achado</span> | ||
</div> | ||
</div> | ||
<p class="card-text">Perdi o caminho de casa. Conhece meu dono? Quer me adotar?</p> | ||
<a href="#" class="btn btn-info float-right btn-sm text-center mt-auto">+ informações</a> | ||
</div> | ||
</div> | ||
</div> |
26 changes: 15 additions & 11 deletions
26
src/app/discover/pets-list-item/pets-list-item.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
.card-deck { | ||
.card-list-pet { | ||
margin-bottom: 10px; | ||
|
||
.card { | ||
background-color: #f9f9f9; | ||
border-color: transparent; | ||
} | ||
|
||
.card-img-top { | ||
width: 100%; | ||
height: 15vw; | ||
object-fit: cover; | ||
} | ||
.card { | ||
margin-bottom: 15px; | ||
border: 0px; | ||
} | ||
|
||
.card-body { | ||
background-color: #f9f9f9; | ||
border-color: transparent; | ||
} | ||
|
||
.card-img-top { | ||
width: 100%; | ||
height: 15vw; | ||
object-fit: cover; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export interface PetOptions { | ||
id: number; | ||
name: string; | ||
photo: string; | ||
description: string; | ||
isAdoption: boolean; | ||
isLost: boolean; | ||
} |