Add a badge on locations for new photos

- The last updated date is taken from the latest photo of each location (without any other API call, just some data manipulation)
- Manipulation of data in the preload request instead of the code
This commit is contained in:
2020-05-06 17:12:07 +02:00
parent 3230cfa0d0
commit cd609cd710
8 changed files with 132 additions and 44 deletions

View File

@@ -35,18 +35,29 @@
font-size: rem(48px);
}
}
.mask-city {
height: 40px;
margin: 24px 0 16px;
@include breakpoint (md) {
height: 64px;
margin-bottom: 24px;
}
// Masks
.mask-city {
height: 40px;
margin: 16px 0 12px;
@include breakpoint (md) {
height: 64px;
margin-top: 24px;
}
.mask-country {
height: 16px;
}
.mask-country {
height: 16px;
}
// Badge
.badge {
margin-top: 16px;
@include breakpoint (sm) {
margin-top: 24px;
}
}
// Hover
&:hover {