added in stock background
This commit is contained in:
parent
3c04714fec
commit
f4bd2a69e4
@ -85,6 +85,15 @@ body {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
#listings .card {
|
||||
background-color: rgba(255, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
#listings .in-stock {
|
||||
background-color: rgba(125, 255, 125, 0.5);
|
||||
}
|
||||
|
||||
|
||||
.card-image {
|
||||
width: 100%;
|
||||
aspect-ratio: 1/1;
|
||||
|
@ -25,7 +25,7 @@
|
||||
|
||||
<div class="cards" id="listings">
|
||||
{{range $Listing := .Listings }}
|
||||
<a target="_blank" href="{{ $Listing.Url }}" class="card">
|
||||
<a target="_blank" href="{{ $Listing.Url }}" class="card {{ if $Listing.InStock }}in-stock{{ end }}">
|
||||
<h3>{{ $Listing.ProductName }}</h3>
|
||||
<p>{{ $Listing.StoreName }} - {{ $Listing.Price }}</p>
|
||||
</a>
|
||||
|
Loading…
x
Reference in New Issue
Block a user