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:
27
src/style/atoms/_badge.scss
Normal file
27
src/style/atoms/_badge.scss
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
** Badge
|
||||
*/
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: $color-primary-darker;
|
||||
font-family: $font-sans-sb;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
background-color: $color-secondary-light;
|
||||
box-shadow: 0 0 0 4px rgba($color-tertiary, 0.15);
|
||||
border-radius: 50vh;
|
||||
|
||||
// Small size
|
||||
&--small {
|
||||
height: 14px;
|
||||
padding: 0 4px;
|
||||
font-size: rem(7px);
|
||||
line-height: 14px;
|
||||
|
||||
span {
|
||||
margin-top: 0.25em;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user