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

@ -14,6 +14,7 @@
font-family: var(--font-serif); font-family: var(--font-serif);
font-size: var(--text-lg); font-size: var(--text-lg);
margin-bottom: var(--space-8); margin-bottom: var(--space-8);
position: initial;
} }
.project-item p { .project-item p {
font-size: var(--text-sm); font-size: var(--text-sm);

View file

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

View file

@ -1,35 +1,38 @@
<template> <template>
<router-link <article class="project-item | flex | rounded-2xl | px-32 py-32">
:to="isEmptyBrief(project) ? project.uri + '/client-brief' : project.uri" <hgroup>
> <h3>
<article class="project-item | flex | rounded-2xl | px-32 py-32"> <router-link
<hgroup> :to="isEmptyBrief(project) ? project.uri + '/client-brief' : project.uri"
<h3>{{ project.title }}</h3> class="link-full"
<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"> {{ project.title }}
<span>{{ step.label }}</span> </router-link>
</span> </h3>
</li> <p>
</ol> Dernière mise à jour le
</article> <time :datetime="project.modified">{{
</router-link> 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> </template>
<script setup> <script setup>