ajout partenaires et équipe

This commit is contained in:
Valentin
2024-11-15 13:33:36 +01:00
parent 9370996c03
commit 77817ab74c
8 changed files with 386 additions and 226 deletions

View File

@@ -3,7 +3,12 @@
:enter-active-class="animationsAreEnabled ? 'v-enter-active' : 'no-transition'"
:leave-active-class="animationsAreEnabled ? 'v-leave-active' : 'no-transition'"
>
<div v-if="!loading && (contentType === 'etape' || contentType === 'static')">
<div v-if="!loading && (
contentType === 'etape'
|| contentType === 'static'
|| contentType === 'equipe'
|| contentType === 'partenaires'
)">
<div class="content-wrapper">
<ModaleHeader
:contentType="contentType"
@@ -38,6 +43,12 @@
v-if="partie.type === 'video'"
:partie="partie" />
</div>
<EquipeContent
v-if="contentType === 'equipe'"
:content="content" />
<PartenairesContent
v-if="contentType === 'partenaires'"
:content="content" />
</main>
<ModaleFooter
:contentType="contentType"
@@ -50,15 +61,16 @@
</template>
<script setup>
import { computed, watch, onMounted } from 'vue';
import { watch, onMounted } from 'vue';
import { storeToRefs } from 'pinia';
import { useContentStore } from '../stores/content';
import { useMapStore } from '../stores/map';
import { useLayoutStore } from '../stores/layout';
import ModaleHeader from './components/ModaleHeader.vue';
import ModaleFooter from './components/ModaleFooter.vue';
import EquipeContent from './components/EquipeContent.vue';
import PartenairesContent from './components/PartenairesContent.vue';
import ModaleCarteSensible from './components/parties/ModaleCarteSensible.vue';
import ModaleTitreTexte from './components/parties/ModaleTitreTexte.vue';
@@ -70,12 +82,6 @@ import ModaleVideos from './components/parties/ModaleVideos.vue';
const store = useContentStore();
const mapState = useMapStore();
const layoutStore = useLayoutStore();
// pour importer le breakpoint
// const { minDesktopWidth } = storeToRefs(layoutStore);
// console.log(minDesktopWidth);
const {
contentType,
@@ -134,9 +140,7 @@ const handleMapMovement = () => {
} else {
console.log('détail -> détail');
setModaleTransition(animationDuration.value);
//mapState.resetMap();
zoomToContentPlace();
//setTimeout(zoomToContentPlace, animationDuration.value * 1000);
}
} else {
if (wasModaleEtape) {