mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-07-06 18:01:16 +02:00
bug: make hero author consistent with "Blog & news" link (#63)
Co-authored-by: João Peixoto <joaodiogopeixoto@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ad7d02d778
commit
31b48cd6f4
@@ -11,10 +11,7 @@
|
||||
itemprop="name"
|
||||
class="flex flex-row"
|
||||
>
|
||||
<span
|
||||
class="hover:text-blueGreen hover:underline cursor-pointer"
|
||||
@click="handleAuthorClick(piece)"
|
||||
>
|
||||
<span :class="computedClassName" @click="handleAuthorClick(piece)">
|
||||
{{ piece }}
|
||||
</span>
|
||||
<span>{{
|
||||
@@ -35,6 +32,12 @@ export default {
|
||||
name: 'PostAuthor',
|
||||
components: {},
|
||||
mixins: [Author],
|
||||
props: {
|
||||
light: {
|
||||
type: Boolean,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapState('appState', ['activeAuthor']),
|
||||
resolvedAuthorName() {
|
||||
@@ -47,6 +50,12 @@ export default {
|
||||
|
||||
return resolvedName.split(/[,&]/g)
|
||||
},
|
||||
computedClassName() {
|
||||
return [
|
||||
'hover:underline cursor-pointer',
|
||||
this.light ? 'text-blueGreenLight' : 'hover:text-blueGreen',
|
||||
]
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
handleAuthorClick(piece) {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
v-if="author && author.name"
|
||||
:to="{ path: $localePath, query: { author: author.name } }"
|
||||
>
|
||||
<PostAuthor v-bind="author" />
|
||||
<PostAuthor v-bind="author" light />
|
||||
</router-link>
|
||||
<time
|
||||
class="text-gray"
|
||||
|
||||
Reference in New Issue
Block a user