Improved actor profile flow. Added images.
This commit is contained in:
@@ -103,9 +103,7 @@
|
||||
</span>
|
||||
</span>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="bio nolist">
|
||||
<li
|
||||
v-if="actor.ethnicity"
|
||||
class="bio-item ethnicity"
|
||||
@@ -181,7 +179,7 @@
|
||||
<span v-else>Yes</span>
|
||||
</li>
|
||||
|
||||
<span class="scraped">Updated on {{ formatDate(actor.scrapedAt, 'YYYY-MM-DD HH:mm') }}</span>
|
||||
<li class="bio-item scraped">Updated on {{ formatDate(actor.scrapedAt, 'YYYY-MM-DD HH:mm') }}</li>
|
||||
</ul>
|
||||
|
||||
<div class="extra">
|
||||
@@ -296,49 +294,56 @@ export default {
|
||||
background: $profile;
|
||||
color: $highlight-extreme;
|
||||
width: 100%;
|
||||
height: 18rem;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-shrink: 0;
|
||||
padding: 1rem 0 0 0;
|
||||
|
||||
.avatar-link {
|
||||
font-size: 0;
|
||||
padding: 1rem 0 1rem 1rem;
|
||||
padding: 0 0 1rem 1rem;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
height: 15rem;
|
||||
width: 12rem;
|
||||
height: 100%;
|
||||
flex-shrink: 0;
|
||||
margin: 0 1rem 0 0;
|
||||
object-fit: cover;
|
||||
object-position: 50% 0;
|
||||
margin: 0 .5rem 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
.bio {
|
||||
flex-grow: 1;
|
||||
min-width: 20rem;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-wrap: wrap;
|
||||
box-sizing: border-box;
|
||||
padding: 1rem;
|
||||
margin: 0 2rem 0 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.bio-header {
|
||||
width: calc(50% - 2rem);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 0 0 1rem 0;
|
||||
padding: 0 .5rem .5rem 0;
|
||||
margin: 0 0 0 1rem;
|
||||
}
|
||||
|
||||
.bio-item {
|
||||
width: calc(50% - 2rem);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 0 .25rem 0;
|
||||
margin: 0 0 .25rem 0;
|
||||
box-sizing: border-box;
|
||||
padding: .25rem 0 ;
|
||||
margin: 0 0 .25rem 1rem;
|
||||
line-height: 1.75;
|
||||
text-align: right;
|
||||
font-size: .9rem;
|
||||
font-weight: 600;
|
||||
overflow: hidden;
|
||||
|
||||
&:not(:last-of-type) {
|
||||
border-bottom: solid 1px $highlight-hint;
|
||||
@@ -429,12 +434,12 @@ export default {
|
||||
|
||||
.scraped {
|
||||
color: $highlight-weak;
|
||||
margin: 1rem 0 0 0;
|
||||
font-size: .8rem;
|
||||
}
|
||||
|
||||
.extra {
|
||||
flex-grow: 1;
|
||||
max-width: 40rem;
|
||||
}
|
||||
|
||||
.description {
|
||||
@@ -442,7 +447,6 @@ export default {
|
||||
position: relative;
|
||||
display: block;
|
||||
box-sizing: border-box;
|
||||
padding: 1rem 0 0 0;
|
||||
margin: 0 2rem 0 0;
|
||||
line-height: 1.5;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
@@ -70,8 +70,7 @@ export default {
|
||||
|
||||
.poster,
|
||||
.photo {
|
||||
height: 10rem;
|
||||
width: auto;
|
||||
width: 100%;
|
||||
margin: 0 1rem 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
<div class="sidebar-content">
|
||||
<p
|
||||
v-if="description"
|
||||
class="description"
|
||||
v-html="description"
|
||||
/>
|
||||
|
||||
@@ -21,10 +21,12 @@
|
||||
<span
|
||||
v-else
|
||||
class="avatar"
|
||||
>No photo</span>
|
||||
><img
|
||||
:src="`/img/avatar_${actor.gender || 'female'}.png`"
|
||||
class="avatar-fallback"
|
||||
></span>
|
||||
|
||||
<span
|
||||
v-if="actor.age || actor.origin"
|
||||
class="details"
|
||||
>
|
||||
<span>
|
||||
@@ -110,10 +112,17 @@ export default {
|
||||
object-position: 50% 0;
|
||||
}
|
||||
|
||||
.avatar-fallback {
|
||||
max-height: 75%;
|
||||
max-width: 80%;
|
||||
opacity: .1;
|
||||
}
|
||||
|
||||
.details {
|
||||
background: $shadow;
|
||||
color: $text-contrast;
|
||||
width: 100%;
|
||||
height: 1.75rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
@@ -47,8 +47,10 @@
|
||||
>{{ `(${formatDate(release.dateAdded, 'MMM D, YYYY')})` }}</a>
|
||||
</span>
|
||||
|
||||
<router-link
|
||||
:to="`/${release.type || 'scene'}/${release.id}`"
|
||||
<a
|
||||
:href="`/${release.type || 'scene'}/${release.id}`"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="link"
|
||||
>
|
||||
<img
|
||||
@@ -70,12 +72,14 @@
|
||||
:title="release.title"
|
||||
class="thumbnail"
|
||||
>No thumbnail available</div>
|
||||
</router-link>
|
||||
</a>
|
||||
</span>
|
||||
|
||||
<div class="info">
|
||||
<router-link
|
||||
:to="`/${release.type || 'scene'}/${release.id}`"
|
||||
<a
|
||||
:href="`/${release.type || 'scene'}/${release.id}`"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="row link"
|
||||
>
|
||||
<h3
|
||||
@@ -88,7 +92,7 @@
|
||||
icon="film"
|
||||
/>{{ release.title }}
|
||||
</h3>
|
||||
</router-link>
|
||||
</a>
|
||||
|
||||
<span class="row">
|
||||
<ul class="actors nolist">
|
||||
|
||||
Reference in New Issue
Block a user