2024-09-26 17:21:24 +02:00
|
|
|
<template>
|
|
|
|
|
<section
|
|
|
|
|
class="flex-1"
|
|
|
|
|
aria-labelledby="votre-brief-label"
|
2024-10-16 15:32:24 +02:00
|
|
|
:data-status="status"
|
2024-09-26 17:21:24 +02:00
|
|
|
>
|
|
|
|
|
<h2 id="votre-brief-label">
|
2024-09-26 19:14:20 +02:00
|
|
|
<span data-icon="votre-brief">{{ step.text }}</span>
|
2024-09-26 17:21:24 +02:00
|
|
|
</h2>
|
|
|
|
|
<div class="cards | flow">
|
|
|
|
|
<article class="card">
|
|
|
|
|
<hgroup class="order-last">
|
2024-09-26 19:14:20 +02:00
|
|
|
<h3 class="card__title | font-serif | text-lg">{{ step.text }}</h3>
|
2024-09-26 17:21:24 +02:00
|
|
|
</hgroup>
|
|
|
|
|
<div class="card__meta | flex">
|
2024-09-26 19:14:20 +02:00
|
|
|
<time class="card__date | text-grey-700" datetime="2024-06-12">{{
|
|
|
|
|
dayjs(step.modified).format("DD MMMM YYYY")
|
|
|
|
|
}}</time>
|
2024-09-26 17:21:24 +02:00
|
|
|
</div>
|
2024-09-26 19:14:20 +02:00
|
|
|
<router-link :to="'/' + step.uri">
|
|
|
|
|
<figure class="card__images" data-count="13">
|
|
|
|
|
<img
|
|
|
|
|
src="http://localhost:8888/media/pages/inspirations/shape-of-the-nature/6ed93d6950-1725442486/d82f18573c439d6edd434ffca62471a7.png"
|
|
|
|
|
alt=""
|
|
|
|
|
/>
|
|
|
|
|
<img
|
|
|
|
|
src="http://localhost:8888/media/pages/inspirations/shape-of-the-nature/7b0fcc5012-1725442486/37a038883c87973036232aa0e43f6da2.png"
|
|
|
|
|
alt=""
|
|
|
|
|
/>
|
|
|
|
|
<img
|
|
|
|
|
src="http://localhost:8888/media/pages/inspirations/shape-of-the-nature/1bbe051c5a-1725442486/0c41d3266e9ce2872f30608cceb28239.png"
|
|
|
|
|
alt=""
|
|
|
|
|
/>
|
|
|
|
|
</figure>
|
|
|
|
|
</router-link>
|
2024-09-26 17:21:24 +02:00
|
|
|
</article>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
</template>
|
2024-09-26 19:14:20 +02:00
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
import dayjs from "dayjs";
|
|
|
|
|
import "dayjs/locale/fr";
|
2024-10-16 15:32:24 +02:00
|
|
|
import { usePageStore } from "../../stores/page";
|
2024-09-26 19:14:20 +02:00
|
|
|
|
|
|
|
|
const { step } = defineProps({
|
|
|
|
|
step: Object,
|
|
|
|
|
});
|
2024-10-16 15:32:24 +02:00
|
|
|
|
|
|
|
|
dayjs.locale("fr");
|
|
|
|
|
|
|
|
|
|
const { page } = usePageStore();
|
|
|
|
|
|
|
|
|
|
const steps = [
|
|
|
|
|
"clientBrief",
|
|
|
|
|
"proposal",
|
|
|
|
|
"extended-brief",
|
|
|
|
|
"industrialIdeation",
|
|
|
|
|
"virtualSample",
|
|
|
|
|
"physicalSample",
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const status = setStatus();
|
|
|
|
|
|
|
|
|
|
function setStatus() {
|
|
|
|
|
if (page.content.currentstep === step.value) {
|
|
|
|
|
return "in-progress";
|
|
|
|
|
}
|
|
|
|
|
if (steps.indexOf(step.value) < steps.indexOf(page.content.currentstep)) {
|
|
|
|
|
return "completed";
|
|
|
|
|
}
|
|
|
|
|
if (steps.indexOf(step.value) > steps.indexOf(page.content.currentstep)) {
|
|
|
|
|
return "uncompleted";
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-26 19:14:20 +02:00
|
|
|
</script>
|