add pdf-cover
This commit is contained in:
parent
bd95cf4613
commit
7cc2b2a9e8
19 changed files with 119 additions and 11 deletions
|
|
@ -5,7 +5,6 @@
|
|||
:data-status="setStatus(page.steps, page.content.currentstep, step)"
|
||||
>
|
||||
<h2 :id="step.id">
|
||||
<!-- ADRIEN / TIMOTHÉE : DYNAMISER L'ICONE -->
|
||||
<span :data-icon="step.id">{{ step.label }}</span>
|
||||
</h2>
|
||||
<div class="cards | flow">
|
||||
|
|
@ -125,11 +124,12 @@
|
|||
>{{ dayjs(file.modified).format("DD MMMM YYYY") }}</time
|
||||
>
|
||||
</div>
|
||||
<div
|
||||
v-if="index === 0"
|
||||
class="card__images"
|
||||
data-icon="document"
|
||||
></div>
|
||||
<template v-if="index === 0">
|
||||
<figure v-if="file.cover" class="card__images pdf-cover">
|
||||
<img :src="file.cover" alt="" />
|
||||
</figure>
|
||||
<div v-else class="card__images" data-icon="document"></div>
|
||||
</template>
|
||||
<footer
|
||||
v-if="file.comments?.length > 0"
|
||||
class="order-last | text-sm text-primary font-medium"
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
v-model="localSelectedTags"
|
||||
/>
|
||||
<label class="btn btn--sm btn--primary" :for="`${tag}`">{{
|
||||
StringUtils.toPascalCase(tag)
|
||||
tag
|
||||
}}</label>
|
||||
</template>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue