fix: Projects vertical spacing

This commit is contained in:
Timothée Goguely 2025-01-09 14:13:21 +01:00
parent f30a6536d0
commit f0dec81150
3 changed files with 34 additions and 33 deletions

View file

@ -71,9 +71,6 @@ section {
--flow-space: var(--space-16);
min-height: calc(100vh - 8.5rem);
}
section > * {
display: block;
}
section:empty::after {
content: "Aucun projet pour le moment.";
position: absolute;

View file

@ -1,35 +1,38 @@
<template>
<router-link
:to="isEmptyBrief(project) ? project.uri + '/client-brief' : project.uri"
>
<article class="project-item | flex | rounded-2xl | px-32 py-32">
<hgroup>
<h3>{{ project.title }}</h3>
<p>
Dernière mise à jour le
<time :datetime="project.modified">{{
frenchFormattedModified
}}</time>
</p>
</hgroup>
<img :src="project.logo" alt="Logo" class="project-logo | rounded-sm" />
<ol
class="project-steps"
:data-steps="project.steps.length"
:style="'--steps:' + project.steps.length"
>
<li
v-for="step in project.steps"
class="project-step"
:data-status="setStatus(project.steps, project.currentStep, step)"
<article class="project-item | flex | rounded-2xl | px-32 py-32">
<hgroup>
<h3>
<router-link
:to="isEmptyBrief(project) ? project.uri + '/client-brief' : project.uri"
class="link-full"
>
<span class="pill" :data-icon="step.id">
<span>{{ step.label }}</span>
</span>
</li>
</ol>
</article>
</router-link>
{{ project.title }}
</router-link>
</h3>
<p>
Dernière mise à jour le
<time :datetime="project.modified">{{
frenchFormattedModified
}}</time>
</p>
</hgroup>
<img :src="project.logo" alt="Logo" class="project-logo | rounded-sm" />
<ol
class="project-steps"
:data-steps="project.steps.length"
:style="'--steps:' + project.steps.length"
>
<li
v-for="step in project.steps"
class="project-step"
:data-status="setStatus(project.steps, project.currentStep, step)"
>
<span class="pill" :data-icon="step.id">
<span>{{ step.label }}</span>
</span>
</li>
</ol>
</article>
</template>
<script setup>