fix
This commit is contained in:
parent
24dbf5bf8d
commit
b1e8848fcd
1 changed files with 24 additions and 6 deletions
|
|
@ -154,16 +154,28 @@
|
|||
</template>
|
||||
</template>
|
||||
|
||||
<template v-if="step.id === 'physicalSample'">
|
||||
<template v-if="step.id === 'physicalSample' && step.files[0]">
|
||||
<div class="card | physical-sample">
|
||||
<header class="text-center rounded-lg py-32" :style="'--cover: url('+step.cover+')'">
|
||||
<header
|
||||
class="text-center rounded-lg py-32"
|
||||
:style="'--cover: url(' + step.cover + ')'"
|
||||
>
|
||||
<h3 class="text-lg font-serif">
|
||||
<router-link :to="'/' + step.uri" class="link-full">{{ step.title }}</router-link>
|
||||
<router-link :to="'/' + step.uri" class="link-full">{{
|
||||
step.title
|
||||
}}</router-link>
|
||||
</h3>
|
||||
<time class="font-medium text-sm py-8" :datetime="step.date">{{ step.date }}</time>
|
||||
<time class="font-medium text-sm py-8" :datetime="step.date">{{
|
||||
step.date
|
||||
}}</time>
|
||||
<p>{{ step.description }}</p>
|
||||
</header>
|
||||
<img :src="step.files[0].url" alt="" loading="lazy" class="rounded-lg mt-16">
|
||||
<img
|
||||
:src="step.files[0].url"
|
||||
alt=""
|
||||
loading="lazy"
|
||||
class="rounded-lg mt-16"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else></template>
|
||||
|
|
@ -206,7 +218,13 @@ const mergedFiles = computed(() => {
|
|||
<style scoped>
|
||||
.physical-sample header {
|
||||
color: var(--color-white);
|
||||
background: linear-gradient(90deg, hsla(0, 0%, 10%, .5) 0%, hsla(0, 0%, 10%, .9) 50%, hsla(0, 0%, 10%, .9) 100%), var(--cover), var(--color-black);
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
hsla(0, 0%, 10%, 0.5) 0%,
|
||||
hsla(0, 0%, 10%, 0.9) 50%,
|
||||
hsla(0, 0%, 10%, 0.9) 100%
|
||||
),
|
||||
var(--cover), var(--color-black);
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue