Quick modification for home
This commit is contained in:
@@ -19,73 +19,35 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-col space-y-8 px-6 rounded-2xl py-8 shadow-2xl"
|
<!-- MainPage -->
|
||||||
|
<div v-if="!isEditMode" class="rounded-2xl flex flex-col space-y-6"
|
||||||
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
|
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
|
||||||
|
|
||||||
|
<!-- Main image -->
|
||||||
|
<div class="py-4">
|
||||||
|
<div v-if="mainTitle">
|
||||||
<!-- Titre principal -->
|
<h1 class="text-4xl font-bold text-center py-4 mb-4">{{ mainTitle }}</h1>
|
||||||
<div v-if="isEditMode">
|
|
||||||
<div class="text-2xl py-2"> Titre</div>
|
|
||||||
<textarea v-model="editableMainTitle" class="w-full p-2 border rounded-md h-24"
|
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
|
|
||||||
</div>
|
</div>
|
||||||
<h1 v-else-if="mainTitle" class="text-4xl font-bold text-center ">{{ mainTitle }}</h1>
|
|
||||||
|
|
||||||
<!-- Image principale -->
|
<img
|
||||||
<div class="relative flex justify-center">
|
v-if="mainImageUrl"
|
||||||
<label v-if="isEditMode">
|
:src="mainImageUrl"
|
||||||
<input type="file" @change="updateImage('mainImageUrl', $event)" class="hidden"/>
|
|
||||||
<img :src="mainImageUrl || fallbackImage"
|
|
||||||
alt="Image principale"
|
alt="Image principale"
|
||||||
class="rounded-md max-w-full h-auto cursor-pointer"/>
|
class="rounded-2xl max-w-full h-auto cursor-pointer"
|
||||||
</label>
|
|
||||||
<img v-else-if="mainImageUrl" :src="mainImageUrl"
|
|
||||||
alt="Image principale"
|
|
||||||
class="rounded-md max-w-full h-auto cursor-pointer"
|
|
||||||
@click="openFullscreen(mainImageUrl)"/>
|
@click="openFullscreen(mainImageUrl)"/>
|
||||||
|
|
||||||
<button v-if="isEditMode" @click="deleteImage('mainImageUrl')"
|
<p v-if="mainImageText" class="text-lg text-justify pa-6">
|
||||||
class="absolute top-10 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
|
|
||||||
X
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Texte sous l'image principale -->
|
|
||||||
<div v-if="isEditMode">
|
|
||||||
<div class="text-2xl py-2"> Description</div>
|
|
||||||
<textarea v-model="editableMainImageText" class="w-full p-2 border rounded-md h-24"
|
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
|
|
||||||
</div>
|
|
||||||
<p v-else-if="mainImageText" class="text-lg text-justify">
|
|
||||||
{{ mainImageText }}
|
{{ mainImageText }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<!-- Titre video principale -->
|
|
||||||
<div v-if="isEditMode">
|
|
||||||
<div class="text-2xl py-2"> Titre Vidéo Princpiale</div>
|
|
||||||
<textarea v-model="editableVideoSubtitleMain" class="w-full p-2 border rounded-md h-24"
|
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
|
|
||||||
</div>
|
</div>
|
||||||
<h2 v-else-if="videoSubtitleMain" class="text-2xl font-semibold text-center" >
|
|
||||||
|
<!-- Main video -->
|
||||||
|
<div :style="{ backgroundColor: brandingStore.colors.surface, color: brandingStore.colors.onSurface }">
|
||||||
|
<h2 v-if="videoSubtitleMain" class="text-3xl font-semibold text-center py-6">
|
||||||
{{ videoSubtitleMain }}
|
{{ videoSubtitleMain }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<!-- Vidéo YouTube principale -->
|
<div v-if="videoUrlMain" class="video-container">
|
||||||
<div v-if="isEditMode">
|
|
||||||
<div class="text-2xl py-2">URL vidéo</div>
|
|
||||||
<input
|
|
||||||
v-if="isEditMode"
|
|
||||||
type="text"
|
|
||||||
v-model="editableVideoUrlMain"
|
|
||||||
class="w-full p-2 border rounded-md"
|
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="flex justify-center">
|
|
||||||
<div v-if="isEditMode"></div>
|
|
||||||
<div v-else-if="videoUrlMain" class="video-container">
|
|
||||||
<iframe
|
<iframe
|
||||||
:src="videoUrlMain"
|
:src="videoUrlMain"
|
||||||
title="YouTube video player"
|
title="YouTube video player"
|
||||||
@@ -94,37 +56,208 @@
|
|||||||
class="video-frame">
|
class="video-frame">
|
||||||
</iframe>
|
</iframe>
|
||||||
</div>
|
</div>
|
||||||
|
<p v-if="mainVideoText" class="text-lg text-justify pa-6 mb-4">
|
||||||
|
{{ mainVideoText }}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Images -->
|
||||||
|
<div :style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
|
||||||
|
<div>
|
||||||
|
<h2 v-if="imagesSubtitle" class="text-xl font-semibold text-center mb-6">
|
||||||
|
{{ imagesSubtitle }}
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- images-->
|
||||||
|
<div class="pa-2">
|
||||||
|
<FullscreenImage ref="fullscreenImage" :image-url="currentImage"/>
|
||||||
|
<div>
|
||||||
|
<!-- Affichage des images -->
|
||||||
|
<div class="flex flex-wrap gap-4">
|
||||||
|
<!-- Première image -->
|
||||||
|
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image1Url"
|
||||||
|
@click="openFullscreen(image1Url)">
|
||||||
|
<img :src="image1Url" alt="Image 1" class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Deuxième image -->
|
||||||
|
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image2Url"
|
||||||
|
@click="openFullscreen(image2Url)">
|
||||||
|
<img :src="image2Url" alt="Image 2" class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Troisième image -->
|
||||||
|
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image3Url"
|
||||||
|
@click="openFullscreen(image3Url)">
|
||||||
|
<img :src="image3Url" alt="Image 3" class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Quatrième image -->
|
||||||
|
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image4Url"
|
||||||
|
@click="openFullscreen(image4Url)">
|
||||||
|
<img :src="image4Url" alt="Image 4" class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<p v-if="imagesText" class="text-lg text-justify pa-6">
|
||||||
|
{{ imagesText }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--SecondVideo-->
|
||||||
|
<div :style="{ backgroundColor: brandingStore.colors.surface, color: brandingStore.colors.onSurface }">
|
||||||
|
<h2 v-if="videoSubtitle" class="text-xl font-semibold text-center py-6">
|
||||||
|
{{ videoSubtitle }}
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<div class="flex justify-center items-center h-full">
|
||||||
|
<iframe
|
||||||
|
v-if="videoUrl"
|
||||||
|
:src="videoUrl"
|
||||||
|
title="YouTube video player"
|
||||||
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
|
allowfullscreen
|
||||||
|
class="rounded-md"
|
||||||
|
style="width: 600px; height: 337px;"
|
||||||
|
></iframe>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p v-if="videoText" class="text-lg text-justify pa-6">
|
||||||
|
{{ videoText }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Contact Info-->
|
||||||
|
<div class="mb-6" :style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
|
||||||
|
<!-- mobile-->
|
||||||
|
<div v-if="smAndDown">
|
||||||
|
<div class="flex flex-col space-y-10 justify-center items-center">
|
||||||
|
<!-- Affichage du téléphone -->
|
||||||
|
<div v-if="editablePhoneNumber" class="flex items-center space-x-2">
|
||||||
|
<i class="mdi mdi-phone-outline text-2xl"></i>
|
||||||
|
<span>{{ editablePhoneNumber }}</span>
|
||||||
|
</div>
|
||||||
|
<!-- Affichage de l'email -->
|
||||||
|
<div v-if="editableEmail" class="flex items-center space-x-2">
|
||||||
|
<i class="mdi mdi-email-outline text-2xl"></i>
|
||||||
|
<a
|
||||||
|
:href="`mailto:${editableEmail}`"
|
||||||
|
class="no-underline text-current"
|
||||||
|
>
|
||||||
|
{{ editableEmail }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--pc-->
|
||||||
|
<div v-if="!smAndDown">
|
||||||
|
<div class="flex space-x-64 space-y-4 justify-center items-center">
|
||||||
|
<!-- Affichage du téléphone -->
|
||||||
|
<div v-if="editablePhoneNumber" class="flex items-center space-x-2">
|
||||||
|
<i class="mdi mdi-phone-outline text-2xl"></i>
|
||||||
|
<span>{{ editablePhoneNumber }}</span>
|
||||||
|
</div>
|
||||||
|
<!-- Affichage de l'email -->
|
||||||
|
<div v-if="editableEmail" class="flex items-center space-x-2">
|
||||||
|
<i class="mdi mdi-email-outline text-2xl"></i>
|
||||||
|
<a
|
||||||
|
:href="`mailto:${editableEmail}`"
|
||||||
|
class="no-underline text-current"
|
||||||
|
>
|
||||||
|
{{ editableEmail }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Editmode-->
|
||||||
|
<div v-if="isEditMode" class="space-y-10">
|
||||||
|
|
||||||
|
<!--Main image-->
|
||||||
|
<div class="rounded-2xl"
|
||||||
|
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
|
||||||
|
<div v-if="isEditMode">
|
||||||
|
<div class="text-2xl pa-4">Image principale</div>
|
||||||
|
<v-text-field label="Titre" variant="outlined" v-model="editableMainTitle" class="w-full p-2"></v-text-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="relative flex justify-center">
|
||||||
|
<label v-if="isEditMode">
|
||||||
|
<input type="file" @change="updateImage('mainImageUrl', $event)" class="hidden"/>
|
||||||
|
<img :src="mainImageUrl || fallbackImage"
|
||||||
|
alt="Image principale"
|
||||||
|
class=" max-w-full h-auto cursor-pointer"/>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<button v-if="isEditMode" @click="deleteImage('mainImageUrl')"
|
||||||
|
class="absolute top-10 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
|
||||||
|
X
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<v-textarea label="Description" variant="outlined" v-model="editableMainImageText"
|
||||||
|
class="w-full p-2 py-6 "></v-textarea>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!--Main VideoUrl-->
|
||||||
|
<div class="rounded-2xl"
|
||||||
|
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onSurface}">
|
||||||
|
<!--Titre Video-->
|
||||||
|
<div class="text-2xl pa-4">Vidéo Princpiale</div>
|
||||||
|
<v-text-field
|
||||||
|
label="Titre"
|
||||||
|
variant="outlined"
|
||||||
|
v-model="editableVideoSubtitleMain"
|
||||||
|
class="w-full p-2 border rounded-md"></v-text-field>
|
||||||
|
|
||||||
|
<!--urlvideo-->
|
||||||
|
<v-text-field
|
||||||
|
label="URL Video"
|
||||||
|
variant="outlined"
|
||||||
|
v-if="isEditMode"
|
||||||
|
type="text"
|
||||||
|
v-model="editableVideoUrlMain"
|
||||||
|
class="w-full p-2 rounded-md"
|
||||||
|
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
<!-- Texte sous video principale -->
|
<!-- Texte sous video principale -->
|
||||||
<div v-if="isEditMode">
|
<v-text-field
|
||||||
<div class="text-2xl py-2"> Description</div>
|
label="Description"
|
||||||
<textarea v-model="editableMainVideoText" class="w-full p-2 border rounded-md h-24"
|
v-model="editableMainVideoText" class="w-full p-2 rounded-md h-24"
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
|
variant="outlined"
|
||||||
|
></v-text-field>
|
||||||
</div>
|
</div>
|
||||||
<p v-else-if="mainVideoText" class="text-lg text-justify">
|
|
||||||
{{ mainVideoText }}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
<!-- 4 images-->
|
||||||
|
<div class="rounded-2xl"
|
||||||
|
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onSurface}">
|
||||||
|
|
||||||
<!-- Sous-titre avant les deux images -->
|
|
||||||
<div v-if="isEditMode">
|
<div v-if="isEditMode">
|
||||||
<div v-if="isEditMode" class="text-2xl py-2"> Sous-titre</div>
|
<div class="text-2xl pa-4">Galerie d'images</div>
|
||||||
<textarea v-model="editableImagesSubtitle" class="w-full p-2 border rounded-md h-24"
|
<v-text-field label="Titre" variant="outlined" v-model="editableImagesSubtitle" class="w-full p-2 rounded-md"></v-text-field>
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
|
|
||||||
</div>
|
</div>
|
||||||
<h2 v-else-if="imagesSubtitle" class="text-2xl font-semibold text-center">
|
|
||||||
{{ imagesSubtitle }}
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<!-- 4 images côte à côte -->
|
<!--images-->
|
||||||
<FullscreenImage ref="fullscreenImage" :image-url="currentImage" />
|
<div class=" text-2xl pa-2
|
||||||
<div>
|
">Images
|
||||||
<!-- Mode édition -->
|
</div>
|
||||||
<div v-if="isEditMode">
|
<div class="pa-2 grid grid-cols-1 gap-4 md:grid-cols-4">
|
||||||
<div class="text-2xl py-2">Images</div>
|
|
||||||
<div class="grid grid-cols-1 gap-4 md:grid-cols-4">
|
|
||||||
<!-- Première image -->
|
<!-- Première image -->
|
||||||
<div class="relative">
|
<div class="relative">
|
||||||
<label>
|
<label>
|
||||||
@@ -181,142 +314,63 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Mode normal -->
|
|
||||||
<div v-else>
|
|
||||||
<div class="flex flex-wrap gap-4">
|
|
||||||
<!-- Première image -->
|
|
||||||
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image1Url" @click="openFullscreen(image1Url)">
|
|
||||||
<img :src="image1Url" alt="Image 1" class="rounded-md max-w-full h-auto cursor-pointer" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Deuxième image -->
|
|
||||||
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image2Url" @click="openFullscreen(image2Url)">
|
|
||||||
<img :src="image2Url" alt="Image 2" class="rounded-md max-w-full h-auto cursor-pointer" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Troisième image -->
|
|
||||||
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image3Url" @click="openFullscreen(image3Url)">
|
|
||||||
<img :src="image3Url" alt="Image 3" class="rounded-md max-w-full h-auto cursor-pointer" />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Quatrième image -->
|
|
||||||
<div class="relative w-full sm:flex-1 sm:min-w-[calc(25%-1rem)]" v-if="image4Url" @click="openFullscreen(image4Url)">
|
|
||||||
<img :src="image4Url" alt="Image 4" class="rounded-md max-w-full h-auto cursor-pointer" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<!-- Description-->
|
||||||
|
<div class="text-2xl pa-2"> Description</div>
|
||||||
|
<v-textarea variant="outlined" v-model="editableImagesText" class="w-full p-2 border rounded-md"></v-textarea>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<!-- Second Video -->
|
||||||
|
<div class="rounded-2xl"
|
||||||
|
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onSurface }">
|
||||||
|
<div class="text-2xl pa-4">Vidéo Secondaire</div>
|
||||||
|
|
||||||
|
<v-text-field
|
||||||
|
label="Titre"
|
||||||
|
variant="outlined"
|
||||||
|
v-model="editableVideoSubtitle"
|
||||||
|
class="w-full p-2"
|
||||||
|
></v-text-field>
|
||||||
|
|
||||||
<!-- Texte sous les deux images -->
|
<v-text-field
|
||||||
<div v-if="isEditMode">
|
label="URL Vidéo"
|
||||||
<div class="text-2xl py-2"> Images</div>
|
variant="outlined"
|
||||||
<textarea v-model="editableImagesText" class="w-full p-2 border rounded-md h-24"
|
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
|
|
||||||
</div>
|
|
||||||
<p v-else-if="imagesText" class="text-lg text-justify">
|
|
||||||
{{ imagesText }}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<!-- Sous-titre avant la vidéo -->
|
|
||||||
|
|
||||||
<div v-if="isEditMode">
|
|
||||||
<div class="text-2xl py-2"> Titre Video</div>
|
|
||||||
<textarea v-model="editableVideoSubtitle" class="w-full p-2 border rounded-md h-24"
|
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
|
|
||||||
</div>
|
|
||||||
<h2 v-else-if="videoSubtitle" class="text-2xl font-semibold text-center">
|
|
||||||
{{ videoSubtitle }}
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<!-- Vidéo YouTube -->
|
|
||||||
<div v-if="isEditMode">
|
|
||||||
<div class="text-2xl py-2">URL vidéo</div>
|
|
||||||
<input
|
|
||||||
v-if="isEditMode"
|
v-if="isEditMode"
|
||||||
type="text"
|
|
||||||
v-model="editableVideoUrl"
|
v-model="editableVideoUrl"
|
||||||
class="w-full p-2 border rounded-md"
|
class="w-full p-2"
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"
|
></v-text-field>
|
||||||
/>
|
|
||||||
</div>
|
<v-textarea
|
||||||
<div class="flex justify-center">
|
label="Description"
|
||||||
<div v-if="isEditMode"></div>
|
variant="outlined"
|
||||||
<iframe
|
v-model="editableVideoText"
|
||||||
v-else-if="videoUrl"
|
class="w-full p-2 py-6"
|
||||||
:src="videoUrl"
|
></v-textarea>
|
||||||
title="YouTube video player"
|
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
|
||||||
allowfullscreen
|
|
||||||
class="rounded-md"
|
|
||||||
style="width: 600px; height: 337px;"
|
|
||||||
></iframe>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Texte sous la vidéo -->
|
<!-- Informations de Contact -->
|
||||||
<div v-if="isEditMode" class="text-2xl"> Description</div>
|
<div class="rounded-2xl"
|
||||||
<div v-if="isEditMode">
|
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onSurface }">
|
||||||
<textarea v-model="editableVideoText" class="w-full p-2 border rounded-md h-24"
|
<div class="text-2xl pa-4">Informations de Contact</div>
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"></textarea>
|
|
||||||
</div>
|
|
||||||
<p v-else-if="videoText" class="text-lg text-justify">
|
|
||||||
{{ videoText }}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<!-- Informations de contact -->
|
<v-text-field
|
||||||
<div class="flex flex-col space-y-6 mt-8">
|
label="Numéro de Téléphone"
|
||||||
<div v-if="isEditMode" class="flex flex-col space-y-2">
|
variant="outlined"
|
||||||
<!-- Édition du téléphone -->
|
|
||||||
<div>
|
|
||||||
<label class="text-lg">Numéro de téléphone</label>
|
|
||||||
<input
|
|
||||||
v-model="editablePhoneNumber"
|
v-model="editablePhoneNumber"
|
||||||
type="text"
|
class="w-full p-2"
|
||||||
class="w-full p-2 border rounded-md"
|
></v-text-field>
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"
|
|
||||||
/>
|
<v-text-field
|
||||||
</div>
|
label="Adresse Email"
|
||||||
<!-- Édition de l'email -->
|
variant="outlined"
|
||||||
<div>
|
|
||||||
<label class="text-lg">Adresse email</label>
|
|
||||||
<input
|
|
||||||
v-model="editableEmail"
|
v-model="editableEmail"
|
||||||
type="text"
|
class="w-full p-2"
|
||||||
class="w-full p-2 border rounded-md"
|
></v-text-field>
|
||||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
v-else
|
|
||||||
class="flex flex-col sm:flex-row sm:space-x-64 space-y-4 sm:space-y-0 justify-center items-center"
|
|
||||||
>
|
|
||||||
<!-- Affichage du téléphone -->
|
|
||||||
<div v-if="editablePhoneNumber" class="flex items-center space-x-2">
|
|
||||||
<i class="mdi mdi-phone-outline text-2xl"></i>
|
|
||||||
<span>{{ editablePhoneNumber }}</span>
|
|
||||||
</div>
|
|
||||||
<!-- Affichage de l'email -->
|
|
||||||
<div v-if="editableEmail" class="flex items-center space-x-2">
|
|
||||||
<i class="mdi mdi-email-outline text-2xl"></i>
|
|
||||||
<a
|
|
||||||
:href="`mailto:${editableEmail}`"
|
|
||||||
class="no-underline text-current"
|
|
||||||
>
|
|
||||||
{{ editableEmail }}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
@@ -341,7 +395,6 @@ const isLoggedIn = true;
|
|||||||
const isEditMode = ref(false);
|
const isEditMode = ref(false);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const currentImage = ref("");
|
const currentImage = ref("");
|
||||||
const fullscreenImage = ref(null);
|
const fullscreenImage = ref(null);
|
||||||
|
|
||||||
@@ -436,8 +489,6 @@ function toggleEditMode() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Supprimer une image
|
// Supprimer une image
|
||||||
function deleteImage(field) {
|
function deleteImage(field) {
|
||||||
switch (field) {
|
switch (field) {
|
||||||
@@ -491,7 +542,6 @@ function updateImage(field, event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Charger les données au montage
|
// Charger les données au montage
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
mainTitle.value = brandingStore.presentationInfos.title;
|
mainTitle.value = brandingStore.presentationInfos.title;
|
||||||
@@ -592,8 +642,6 @@ async function saveChanges() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function cancelEdit() {
|
function cancelEdit() {
|
||||||
// Restaurer les valeurs d'origine
|
// Restaurer les valeurs d'origine
|
||||||
editableMainTitle.value = mainTitle.value;
|
editableMainTitle.value = mainTitle.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user