2024-09-17 17:21:43 +02:00
|
|
|
<template>
|
2024-09-25 15:22:54 +02:00
|
|
|
<main class="flex flex-col items-stretch | w-full">
|
2024-09-26 19:14:20 +02:00
|
|
|
<Header :title="page.content.title" />
|
2024-09-25 15:22:54 +02:00
|
|
|
<!-- Kanban: Status Brief Enrichi -->
|
2024-09-25 17:33:28 +02:00
|
|
|
|
2024-09-26 17:21:24 +02:00
|
|
|
<div class="kanban">
|
2024-10-02 15:29:31 +02:00
|
|
|
<ProjectStep v-for="step in page.steps" :key="step" :step="step">
|
|
|
|
|
</ProjectStep>
|
2024-09-26 17:21:24 +02:00
|
|
|
<!-- <section
|
2024-09-18 10:42:36 +02:00
|
|
|
class="flex-1"
|
2024-09-17 18:08:41 +02:00
|
|
|
aria-labelledby="votre-brief-label"
|
2024-09-18 10:17:45 +02:00
|
|
|
data-status="done"
|
2024-09-17 18:08:41 +02:00
|
|
|
>
|
|
|
|
|
<h2 id="votre-brief-label">
|
2024-09-18 10:17:45 +02:00
|
|
|
<span data-icon="votre-brief">Votre brief</span>
|
2024-09-17 18:08:41 +02:00
|
|
|
</h2>
|
2024-09-18 10:42:36 +02:00
|
|
|
<div class="cards | flow">
|
|
|
|
|
<article class="card">
|
|
|
|
|
<hgroup class="order-last">
|
|
|
|
|
<h3 class="card__title | font-serif | text-lg">Votre Brief</h3>
|
|
|
|
|
</hgroup>
|
|
|
|
|
<div class="card__meta | flex">
|
2024-09-25 17:33:28 +02:00
|
|
|
<time class="card__date | text-grey-700" datetime="2024-06-12"
|
|
|
|
|
>12 juin 2024</time
|
|
|
|
|
>
|
2024-09-18 10:42:36 +02:00
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
</article>
|
|
|
|
|
</div>
|
2024-09-17 17:21:43 +02:00
|
|
|
</section>
|
2024-09-25 17:33:28 +02:00
|
|
|
<section
|
2024-09-18 10:42:36 +02:00
|
|
|
class="flex-1"
|
2024-09-17 18:08:41 +02:00
|
|
|
aria-labelledby="offre-commerciale-label"
|
2024-09-18 10:17:45 +02:00
|
|
|
data-status="done"
|
2024-09-17 18:08:41 +02:00
|
|
|
>
|
|
|
|
|
<h2 id="offre-commerciale-label">
|
2024-09-18 10:17:45 +02:00
|
|
|
<span data-icon="offre-commerciale">Offre Commerciale</span>
|
2024-09-17 18:08:41 +02:00
|
|
|
</h2>
|
2024-09-18 10:42:36 +02:00
|
|
|
<div class="cards | flow">
|
|
|
|
|
<article class="card">
|
|
|
|
|
<hgroup class="order-last">
|
|
|
|
|
<h3 class="card__title | font-serif | text-lg">Offre - 2</h3>
|
|
|
|
|
<p class="text-primary | font-medium">4 commentaires</p>
|
|
|
|
|
</hgroup>
|
|
|
|
|
<div class="card__meta | flex">
|
2024-09-25 17:33:28 +02:00
|
|
|
<time class="card__date | text-grey-700" datetime="2024-06-12"
|
|
|
|
|
>12 juin 2024</time
|
|
|
|
|
>
|
2024-09-18 10:42:36 +02:00
|
|
|
<span class="text-primary | font-medium | ml-auto">Validé</span>
|
|
|
|
|
</div>
|
|
|
|
|
<figure class="card__images">
|
|
|
|
|
<img
|
|
|
|
|
src="http://localhost:8888/media/pages/inspirations/shape-of-the-nature/6ed93d6950-1725442486/d82f18573c439d6edd434ffca62471a7.png"
|
|
|
|
|
alt=""
|
|
|
|
|
/>
|
|
|
|
|
</figure>
|
|
|
|
|
</article>
|
|
|
|
|
<article class="card">
|
|
|
|
|
<hgroup class="order-last">
|
|
|
|
|
<h3 class="card__title | font-serif | text-lg">Offre - 3</h3>
|
|
|
|
|
<p class="text-primary | font-medium">4 commentaires</p>
|
|
|
|
|
</hgroup>
|
|
|
|
|
<div class="card__meta | flex">
|
2024-09-25 17:33:28 +02:00
|
|
|
<time class="card__date | text-grey-700" datetime="2024-06-12"
|
|
|
|
|
>12 juin 2024</time
|
|
|
|
|
>
|
2024-09-18 10:42:36 +02:00
|
|
|
</div>
|
|
|
|
|
</article>
|
|
|
|
|
<article class="card">
|
|
|
|
|
<hgroup class="order-last">
|
|
|
|
|
<h3 class="card__title | font-serif | text-lg">Offre Initiale</h3>
|
|
|
|
|
<p class="text-primary | font-medium">4 commentaires</p>
|
|
|
|
|
</hgroup>
|
|
|
|
|
<div class="card__meta | flex">
|
2024-09-25 17:33:28 +02:00
|
|
|
<time class="card__date | text-grey-700" datetime="2024-06-12"
|
|
|
|
|
>12 juin 2024</time
|
|
|
|
|
>
|
2024-09-18 10:42:36 +02:00
|
|
|
</div>
|
|
|
|
|
</article>
|
|
|
|
|
</div>
|
2024-09-17 17:21:43 +02:00
|
|
|
</section>
|
2024-09-25 17:33:28 +02:00
|
|
|
<section
|
2024-09-18 10:42:36 +02:00
|
|
|
class="flex-1"
|
2024-09-17 18:08:41 +02:00
|
|
|
aria-labelledby="brief-enrichi-label"
|
2024-09-18 10:17:45 +02:00
|
|
|
data-status="in-progress"
|
2024-09-25 17:33:28 +02:00
|
|
|
>
|
2024-09-17 18:08:41 +02:00
|
|
|
<h2 id="brief-enrichi-label">
|
2024-09-18 10:17:45 +02:00
|
|
|
<span data-icon="brief-enrichi">Brief Enrichi</span>
|
2024-09-17 18:08:41 +02:00
|
|
|
</h2>
|
2024-09-18 10:42:36 +02:00
|
|
|
<div class="cards | flow">
|
|
|
|
|
<article class="card">
|
|
|
|
|
<hgroup class="order-last">
|
|
|
|
|
<h3 class="card__title | font-serif | text-lg">Brief enrichi</h3>
|
|
|
|
|
<p class="text-primary | font-medium">4 commentaires</p>
|
|
|
|
|
</hgroup>
|
|
|
|
|
<div class="card__meta | flex">
|
2024-09-25 17:33:28 +02:00
|
|
|
<time class="card__date | text-grey-700" datetime="2024-06-12"
|
|
|
|
|
>12 juin 2024</time
|
|
|
|
|
>
|
2024-09-18 10:42:36 +02:00
|
|
|
<span class="text-primary | font-medium | ml-auto">Validé</span>
|
|
|
|
|
</div>
|
|
|
|
|
<figure class="card__images" data-count="15">
|
|
|
|
|
<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>
|
|
|
|
|
</article>
|
|
|
|
|
</div>
|
2024-09-17 17:21:43 +02:00
|
|
|
</section>
|
2024-09-17 17:31:03 +02:00
|
|
|
<section
|
2024-09-18 10:42:36 +02:00
|
|
|
class="flex-1"
|
2024-09-17 17:31:03 +02:00
|
|
|
aria-labelledby="echantillon-virtuel-label"
|
2024-09-18 10:17:45 +02:00
|
|
|
data-status="uncompleted"
|
2024-09-17 17:31:03 +02:00
|
|
|
>
|
2024-09-17 18:08:41 +02:00
|
|
|
<h2 id="echantillon-virtuel-label">
|
2024-09-18 10:17:45 +02:00
|
|
|
<span data-icon="echantillon-virtuel">Échantillon Virtuel</span>
|
2024-09-17 18:08:41 +02:00
|
|
|
</h2>
|
2024-09-18 10:42:36 +02:00
|
|
|
<div class="cards | flow">
|
2024-09-25 17:33:28 +02:00
|
|
|
<div
|
|
|
|
|
class="flex flex-col justify-center | rounded-2xl | bg-grey-200 text-grey-700"
|
|
|
|
|
>
|
2024-09-18 10:42:36 +02:00
|
|
|
<p>Prochainement disponible</p>
|
|
|
|
|
</div>
|
2024-09-18 10:17:45 +02:00
|
|
|
</div>
|
2024-09-26 17:21:24 +02:00
|
|
|
</section> -->
|
|
|
|
|
</div>
|
2024-09-17 17:21:43 +02:00
|
|
|
</main>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2024-09-17 17:31:03 +02:00
|
|
|
import { usePageStore } from "../stores/page";
|
2024-09-17 17:21:43 +02:00
|
|
|
import { useUserStore } from "../stores/user";
|
|
|
|
|
import { storeToRefs } from "pinia";
|
2024-09-26 17:21:24 +02:00
|
|
|
import ProjectStep from "../components/project/ProjectStep.vue";
|
2024-09-26 19:14:20 +02:00
|
|
|
import Header from "../components/project/Header.vue";
|
2024-09-17 17:21:43 +02:00
|
|
|
|
|
|
|
|
const { page } = storeToRefs(usePageStore());
|
|
|
|
|
const user = useUserStore().user;
|
2024-09-25 17:33:28 +02:00
|
|
|
|
2024-09-26 17:21:24 +02:00
|
|
|
function setStepStatus(stepName) {
|
|
|
|
|
const stepIndex = steps.indexOf(stepName);
|
|
|
|
|
const currentIndex = steps.indexOf(currentStep.value);
|
|
|
|
|
if (stepIndex < currentIndex) {
|
|
|
|
|
return "done";
|
|
|
|
|
}
|
2024-09-25 17:33:28 +02:00
|
|
|
}
|
2024-09-17 17:21:43 +02:00
|
|
|
</script>
|
|
|
|
|
|
2024-09-17 18:08:41 +02:00
|
|
|
<style scope>
|
2024-09-25 15:22:54 +02:00
|
|
|
/* Porject details */
|
|
|
|
|
.project-details textarea {
|
|
|
|
|
resize: none;
|
|
|
|
|
max-height: 5rem;
|
|
|
|
|
}
|
|
|
|
|
.project-details__filters button:first-of-type {
|
|
|
|
|
margin-right: calc(var(--space-12) + 1px);
|
|
|
|
|
}
|
|
|
|
|
.project-details__filters button:first-of-type::after {
|
2024-09-25 17:33:28 +02:00
|
|
|
content: "";
|
2024-09-25 15:22:54 +02:00
|
|
|
width: 1px;
|
|
|
|
|
height: 1.7rem;
|
|
|
|
|
background-color: var(--color-black-20);
|
|
|
|
|
position: absolute;
|
2024-09-25 17:33:28 +02:00
|
|
|
right: calc(-0.75rem);
|
2024-09-25 15:22:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Masonry */
|
|
|
|
|
.masonry > * {
|
|
|
|
|
margin-bottom: var(--space-16);
|
|
|
|
|
}
|
|
|
|
|
.masonry > *:only-child {
|
|
|
|
|
column-span: all;
|
|
|
|
|
transform: translateY(50%);
|
|
|
|
|
}
|
|
|
|
|
@media (min-width: 40rem) {
|
|
|
|
|
.masonry {
|
|
|
|
|
column-count: 2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@media (min-width: 65rem) {
|
|
|
|
|
.masonry {
|
|
|
|
|
column-count: 3;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@media (min-width: 90rem) {
|
|
|
|
|
.masonry {
|
|
|
|
|
column-count: 4;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Image */
|
|
|
|
|
.image {
|
|
|
|
|
border-radius: var(--rounded-2xl);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
.image .tag {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: var(--space-12);
|
|
|
|
|
left: var(--space-12);
|
|
|
|
|
}
|
|
|
|
|
.image::after {
|
2024-09-25 17:33:28 +02:00
|
|
|
content: "";
|
2024-09-25 15:22:54 +02:00
|
|
|
display: inline-block;
|
|
|
|
|
width: 1rem;
|
|
|
|
|
height: 1rem;
|
|
|
|
|
background: var(--icon-color, currentColor);
|
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
|
mask-position: center;
|
|
|
|
|
mask-size: 1rem;
|
|
|
|
|
mask-image: var(--icon-description);
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 1.25rem;
|
|
|
|
|
right: 1.25rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Kanban */
|
2024-09-17 18:08:41 +02:00
|
|
|
.kanban {
|
|
|
|
|
--header-height: 2.25rem; /* 36px */
|
|
|
|
|
--header-bg-color: var(--color-grey-200);
|
|
|
|
|
--header-title-bg-color: var(--color-grey-700);
|
|
|
|
|
--gap: var(--gutter);
|
|
|
|
|
position: relative;
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: var(--gap);
|
2024-09-18 10:42:36 +02:00
|
|
|
overflow-x: auto;
|
2024-09-17 18:08:41 +02:00
|
|
|
margin: 0 calc(-1 * var(--gutter));
|
|
|
|
|
padding: 0 var(--gutter);
|
2024-09-18 10:42:36 +02:00
|
|
|
height: calc(100vh - var(--gutter) * 2 - var(--header-height) - 2.25rem);
|
2024-09-17 18:08:41 +02:00
|
|
|
}
|
|
|
|
|
.kanban > section {
|
|
|
|
|
min-width: 20rem;
|
2024-09-18 10:17:45 +02:00
|
|
|
position: relative;
|
2024-09-17 18:08:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.kanban > section h2 {
|
|
|
|
|
position: relative;
|
|
|
|
|
background-color: var(--header-bg-color);
|
|
|
|
|
border-radius: var(--rounded-md);
|
|
|
|
|
font-size: var(--text-sm);
|
2024-09-25 17:33:28 +02:00
|
|
|
height: var(--header-height);
|
2024-09-17 18:08:41 +02:00
|
|
|
}
|
|
|
|
|
.kanban > section h2 > span {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: var(--space-8);
|
|
|
|
|
background-color: var(--header-title-bg-color);
|
|
|
|
|
color: var(--color-white);
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: fit-content;
|
|
|
|
|
padding: 0 var(--space-12);
|
|
|
|
|
border-top-left-radius: inherit;
|
|
|
|
|
border-bottom-left-radius: inherit;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
.kanban > section + section h2::before {
|
|
|
|
|
content: "";
|
|
|
|
|
display: inline-block;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: calc(var(--header-height) / 2 - 1.5px);
|
|
|
|
|
right: 100%;
|
|
|
|
|
width: var(--gap);
|
|
|
|
|
height: 3px;
|
|
|
|
|
background-color: var(--color-grey-200);
|
|
|
|
|
z-index: -1;
|
|
|
|
|
}
|
|
|
|
|
|
2024-09-18 10:17:45 +02:00
|
|
|
.kanban [data-status="done"] h2::after {
|
2024-09-17 18:08:41 +02:00
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: var(--space-4);
|
|
|
|
|
bottom: 0;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: var(--icon-size, var(--header-height));
|
|
|
|
|
height: var(--icon-size, var(--header-height));
|
|
|
|
|
background: var(--icon-color, currentColor);
|
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
|
mask-position: center;
|
|
|
|
|
mask-size: var(--icon-size, 1rem);
|
|
|
|
|
mask-image: var(--icon, var(--icon-check));
|
|
|
|
|
}
|
2024-09-18 10:17:45 +02:00
|
|
|
|
|
|
|
|
.kanban [data-status="in-progress"] {
|
2024-09-17 18:08:41 +02:00
|
|
|
--header-bg-color: var(--color-primary-20);
|
|
|
|
|
--header-title-bg-color: var(--color-primary);
|
|
|
|
|
}
|
2024-09-18 10:17:45 +02:00
|
|
|
.kanban [data-status="in-progress"] h2::after {
|
|
|
|
|
content: "";
|
|
|
|
|
color: var(--color-primary);
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: var(--space-4);
|
|
|
|
|
bottom: 0;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: var(--icon-size, var(--header-height));
|
|
|
|
|
height: var(--icon-size, var(--header-height));
|
|
|
|
|
background: var(--icon-color, currentColor);
|
|
|
|
|
mask-repeat: no-repeat;
|
|
|
|
|
mask-position: center;
|
|
|
|
|
mask-size: var(--icon-size, 1rem);
|
|
|
|
|
mask-image: var(--icon-point-active);
|
|
|
|
|
}
|
|
|
|
|
.kanban [data-status="in-progress"]::after {
|
|
|
|
|
content: "En cours";
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: calc(var(--icon-size, var(--header-height)) + var(--space-4));
|
|
|
|
|
color: var(--color-primary);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: var(--text-sm);
|
|
|
|
|
line-height: 2.125rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.kanban [data-status="uncompleted"] h2 {
|
|
|
|
|
background: none;
|
|
|
|
|
}
|
|
|
|
|
.kanban [data-status="uncompleted"] h2::before {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
|
background-position: left center;
|
|
|
|
|
background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50%' cy='50%' r='2' opacity='0.15' fill='black'/%3E%3C/svg%3E%0A");
|
2024-09-25 17:33:28 +02:00
|
|
|
background-size: 0.5rem;
|
2024-09-18 10:17:45 +02:00
|
|
|
right: calc(-1 * var(--gap));
|
|
|
|
|
left: calc(-1 * var(--gap));
|
|
|
|
|
width: auto;
|
|
|
|
|
}
|
|
|
|
|
.kanban [data-status="uncompleted"] h2 > span {
|
|
|
|
|
border-radius: inherit;
|
|
|
|
|
}
|
2024-09-18 10:42:36 +02:00
|
|
|
.kanban [data-status="uncompleted"] .cards > * {
|
2024-09-18 10:17:45 +02:00
|
|
|
min-height: 10rem;
|
|
|
|
|
}
|
|
|
|
|
.kanban [data-status="uncompleted"]::after {
|
|
|
|
|
content: "En attente";
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
background-color: var(--color-grey-50);
|
|
|
|
|
color: var(--color-grey-700);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: var(--text-sm);
|
|
|
|
|
line-height: 2.125rem;
|
|
|
|
|
padding: 0 var(--space-12);
|
|
|
|
|
}
|
2024-09-18 10:42:36 +02:00
|
|
|
|
|
|
|
|
.kanban .cards {
|
|
|
|
|
padding-top: var(--space-16);
|
|
|
|
|
max-height: calc(100% - var(--header-height));
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
2024-09-17 18:08:41 +02:00
|
|
|
</style>
|