Added avatars. Added PornHub and LegalPorno actor profile scrapers.

This commit is contained in:
2019-11-20 04:53:36 +01:00
parent a13d92b84e
commit 9fcc40dd17
13 changed files with 475 additions and 63 deletions

View File

@@ -5,8 +5,21 @@
>
<a
:href="`/actor/${actor.slug}`"
class="name"
>{{ actor.name }}</a>
class="link"
>
<span class="name">{{ actor.name }}</span>
<img
v-if="actor.avatar"
:src="`/media/${actor.avatar}`"
class="avatar"
>
<span
v-else
class="avatar"
>No photo</span>
</a>
</div>
</template>
@@ -27,14 +40,34 @@ export default {
.actor {
background: $background;
display: inline-block;
margin: 0 .25rem .25rem 0;
margin: 0 .5rem .5rem 0;
box-shadow: 0 0 3px $shadow-weak;
}
.name {
.link {
color: $link;
display: inline-block;
padding: .5rem;
text-decoration: none;
text-align: center;
&:hover {
color: $primary;
}
}
.name {
display: block;
padding: .5rem;
font-weight: bold;
}
.avatar {
color: $shadow-weak;
background: $shadow-hint;
height: 12rem;
width: 10rem;
display: flex;
align-items: center;
justify-content: center;
object-fit: cover;
}
</style>