mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-08-10 02:42:58 +02:00
fix: improve cards
This commit is contained in:
committed by
João Peixoto
parent
b36b6fba85
commit
5af70ef363
@@ -42,11 +42,3 @@ export default {
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="postcss" scoped>
|
||||
@screen md {
|
||||
.card-post {
|
||||
max-height: 29rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -41,10 +41,10 @@
|
||||
class="type-p4 text-primary"
|
||||
/>
|
||||
</div>
|
||||
<footer class="flex-grow">
|
||||
<footer class="flex-grow mt-2">
|
||||
<p
|
||||
v-if="frontmatter.description || frontmatter.description"
|
||||
class="type-p1-serif text-primary clamp-5"
|
||||
class="type-p1-serif text-primary clamp-3"
|
||||
itemprop="description"
|
||||
>
|
||||
{{ frontmatter.description || frontmatter.description }}
|
||||
|
||||
@@ -4,19 +4,26 @@
|
||||
itemprop="publisher author"
|
||||
itemtype="http://schema.org/Person"
|
||||
itemscope
|
||||
class="flex items-center"
|
||||
class="flex flex-row flex-wrap"
|
||||
>
|
||||
<span
|
||||
v-for="(piece, index) in resolvedAuthorName"
|
||||
:key="piece"
|
||||
itemprop="name"
|
||||
>{{ index === 0 ? '' : ',' }}
|
||||
class="flex flex-row"
|
||||
>
|
||||
<span
|
||||
class="whitespace-no-wrap hover:text-blueGreen hover:underline cursor-pointer"
|
||||
class="hover:text-blueGreen hover:underline cursor-pointer"
|
||||
@click="handleAuthorClick(piece)"
|
||||
>
|
||||
{{ piece }}
|
||||
</span>
|
||||
<span>{{
|
||||
resolvedAuthorName.length !== 1 &&
|
||||
index !== resolvedAuthorName.length - 1
|
||||
? ', '
|
||||
: ''
|
||||
}}</span>
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -40,10 +40,10 @@
|
||||
class="type-p4 text-primary"
|
||||
/>
|
||||
</div>
|
||||
<footer class="flex-grow">
|
||||
<footer class="flex-grow mt-2">
|
||||
<p
|
||||
v-if="frontmatter.description || frontmatter.description"
|
||||
class="type-p1-serif text-primary clamp-5"
|
||||
class="type-p1-serif text-primary clamp-3"
|
||||
itemprop="description"
|
||||
>
|
||||
{{ frontmatter.description || frontmatter.description }}
|
||||
|
||||
@@ -3,3 +3,8 @@
|
||||
body {
|
||||
@apply bg-gray-light antialiased;
|
||||
}
|
||||
|
||||
code {
|
||||
white-space: pre-wrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user