nice
This commit is contained in:
parent
c794032bfd
commit
371e935030
@ -0,0 +1,17 @@
|
|||||||
|
.card {
|
||||||
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-link:hover .card {
|
||||||
|
transform: translateY(-5px);
|
||||||
|
box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.overlay {
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-link:hover .overlay {
|
||||||
|
opacity: 0.1;
|
||||||
|
}
|
@ -1,16 +1,18 @@
|
|||||||
<section class="card h-100">
|
<a [routerLink]="['/details', housingLocation.id]" class="text-decoration-none card-link">
|
||||||
<div class="position-relative" style="height: 200px;">
|
<section class="card h-100 border-0 shadow-sm">
|
||||||
<img
|
<div class="position-relative" style="height: 200px;">
|
||||||
[src]="housingLocation.photo"
|
<img
|
||||||
class="card-img-top position-absolute w-100 h-100"
|
[src]="housingLocation.photo"
|
||||||
style="object-fit: cover;"
|
class="card-img-top position-absolute w-100 h-100"
|
||||||
alt="Exterior photo of {{ housingLocation.name }}"
|
style="object-fit: cover;"
|
||||||
crossorigin
|
alt="Exterior photo of {{ housingLocation.name }}"
|
||||||
/>
|
crossorigin
|
||||||
</div>
|
/>
|
||||||
<div class="card-body">
|
<div class="overlay position-absolute top-0 start-0 w-100 h-100 bg-primary"></div>
|
||||||
<h2 class="card-title">{{ housingLocation.name }}</h2>
|
</div>
|
||||||
<p class="card-text">{{ housingLocation.city }}, {{ housingLocation.state }}</p>
|
<div class="card-body">
|
||||||
<a [routerLink]="['/details', housingLocation.id]">Learn More</a>
|
<h2 class="card-title text-dark">{{ housingLocation.name }}</h2>
|
||||||
</div>
|
<p class="card-text text-secondary mb-0">{{ housingLocation.city }}, {{ housingLocation.state }}</p>
|
||||||
</section>
|
</div>
|
||||||
|
</section>
|
||||||
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user