Added Kelly Madison profile scraper.

This commit is contained in:
2019-12-10 22:35:00 +01:00
parent 8802bb4317
commit b9bac6d8f9
11 changed files with 133 additions and 25 deletions

View File

@@ -22,6 +22,23 @@
v-else
class="avatar"
>No photo</span>
<span
v-if="actor.age || actor.origin"
class="details"
>
<span class="age">{{ actor.age }}</span>
<span
v-if="actor.origin"
class="country"
>
{{ actor.origin.country.alpha2 }}
<img
class="flag"
:src="`/img/flags/${actor.origin.country.alpha2.toLowerCase()}.png`"
>
</span>
</span>
</a>
</div>
</template>
@@ -45,6 +62,7 @@ export default {
background: $background;
display: inline-block;
margin: 0 .5rem .5rem 0;
position: relative;
box-shadow: 0 0 3px $shadow-weak;
}
@@ -78,4 +96,18 @@ export default {
object-fit: cover;
object-position: 50% 0;
}
.details {
background: $shadow;
color: $text-contrast;
width: 100%;
display: flex;
justify-content: space-between;
box-sizing: border-box;
padding: .5rem;
position: absolute;
bottom: 0;
font-size: .8rem;
font-weight: bold;
}
</style>

View File

@@ -33,7 +33,6 @@ export default {
align-items: center;
box-sizing: border-box;
padding: .5rem 1rem;
border-radius: .25rem;
box-shadow: 0 0 3px rgba(0, 0, 0, .25);
height: 100%;
text-align: center;
@@ -53,7 +52,7 @@ export default {
object-fit: contain;
font-size: 1rem;
font-weight: bold;
filter: drop-shadow(0 0 1px $shadow);
filter: $logo-outline;
}
.title {

View File

@@ -53,7 +53,7 @@ export default {
object-fit: contain;
font-size: 1rem;
font-weight: bold;
filter: drop-shadow(0 0 1px $shadow);
filter: $logo-outline;
}
.title {