Remove colors
This commit is contained in:
@@ -3,23 +3,18 @@
|
||||
<div class="shadow-lg rounded-2xl mt-2">
|
||||
<div class="relative z-20">
|
||||
|
||||
<div class="min-h-8 rounded-t-2xl shadow-lg"
|
||||
:style="{ backgroundColor: branding.colors.primary }"
|
||||
></div>
|
||||
<div class="min-h-8 rounded-t-2xl shadow-lg bg-hPrimary">
|
||||
</div>
|
||||
|
||||
<actual-banner></actual-banner>
|
||||
<banner-actions></banner-actions>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {useBrandingStore} from "@/stores/brandingStore.js";
|
||||
import ActualBanner from "@/views/creators/ActualBanner.vue";
|
||||
import BannerActions from "@/views/creators/BannerActions.vue";
|
||||
|
||||
const branding = useBrandingStore();
|
||||
</script>
|
||||
|
||||
@@ -110,9 +110,8 @@ onBeforeUnmount(() => {
|
||||
<div class="flex flex-column w-full">
|
||||
<!-- Container principal avec le profil -->
|
||||
<div class="relative w-full shadow-xl rounded-2xl">
|
||||
<div class="rounded-b-2xl shadow-2xl"
|
||||
<div class="rounded-b-2xl shadow-2xl bg-hPrimary"
|
||||
:style="{
|
||||
backgroundColor: brandingStore.colors.primary,
|
||||
boxShadow: '0 5px 10px rgba(0, 0, 0, 0.3)',
|
||||
}">
|
||||
|
||||
@@ -139,12 +138,11 @@ onBeforeUnmount(() => {
|
||||
<!-- Bouton Support -->
|
||||
<div
|
||||
v-show="brandingStore.value.acceptDonation"
|
||||
class="z-20 shadow-2xl rounded-md text-white flex justify-center items-center z-50"
|
||||
class="z-20 shadow-2xl rounded-md bg-hSecondary text-hOnSecondary flex justify-center items-center z-50"
|
||||
:class="{
|
||||
'absolute bottom-6 right-8 w-64 h-28 ': !isMobile,
|
||||
'fixed bottom-0 left-0 right-0 w-full h-16': isMobile,
|
||||
}"
|
||||
:style="{ backgroundColor: brandingStore.colors.secondary }"
|
||||
>
|
||||
<donation-button-banner
|
||||
v-if="creator"
|
||||
@@ -159,9 +157,8 @@ onBeforeUnmount(() => {
|
||||
|
||||
<!-- Section pour les icônes de réseaux sociaux -->
|
||||
<div
|
||||
class="rounded-b-2xl -mt-3 h-12 px-36 flex flex-col items-center justify-center"
|
||||
class="rounded-b-2xl -mt-3 h-12 px-36 flex flex-col items-center justify-center bg-hSecondary"
|
||||
:style="{
|
||||
backgroundColor: brandingStore.colors.secondary,
|
||||
boxShadow: '0 5px 20px rgba(0, 0, 0, 0.3)',
|
||||
}"
|
||||
>
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
<template>
|
||||
<div v-if="creatorProfileStore.creator?.id === brandingStore.value.id" class="flex justify-end space-x-2 mb-5 pa-1">
|
||||
|
||||
<div v-if="creatorProfileStore.creator?.id === brandingStore.value.id"
|
||||
class="flex justify-end space-x-2 mb-5 pa-1">
|
||||
|
||||
<!-- Bouton principal : Éditer ou Enregistrer -->
|
||||
<button
|
||||
v-if="isLoggedIn"
|
||||
@click="isEditMode ? saveChanges() : toggleEditMode()"
|
||||
class="px-4 py-2 rounded-md hover:opacity-90"
|
||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"
|
||||
class="px-4 py-2 rounded-md hover:opacity-90 bg-hSecondary text-hOnSecondary"
|
||||
>
|
||||
<v-icon>mdi-home-edit</v-icon>
|
||||
{{ isEditMode ? 'Enregistrer' : 'Éditer la page' }}
|
||||
</button>
|
||||
|
||||
|
||||
|
||||
<button
|
||||
v-if="isEditMode && isLoggedIn"
|
||||
@click="cancelEdit"
|
||||
@@ -23,359 +22,282 @@
|
||||
</div>
|
||||
|
||||
<!-- MainPage -->
|
||||
<div v-if="!isEditMode" class=" flex flex-col" >
|
||||
<div class="flex flex-col max-w-[650px] mx-auto px-6 bg-hBackground text-hOnBackground">
|
||||
|
||||
<div v-if=" mainTitle || mainImageUrl || mainImageText || videoSubtitleMain || videoUrlMain || mainVideoText || imagesSubtitle || image1Url || image2Url || image3Url || image4Url || imagesText || videoSubtitle || videoUrl || videoText" :style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }" class="rounded-2xl py-4" >
|
||||
<!-- Main image -->
|
||||
<div v-if="mainTitle || mainImageUrl || mainImageText " class="py-4" :style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
|
||||
<div v-if="mainTitle">
|
||||
<h1 class="text-4xl font-bold text-center py-4 mb-4">{{ mainTitle }}</h1>
|
||||
</div>
|
||||
<h1 class="flex justify-start text-2xl font-bold text-center mb-4">Qui sommes-nous</h1>
|
||||
|
||||
<div class="flex justify-center items-center">
|
||||
<img
|
||||
v-if="mainImageUrl"
|
||||
:src="mainImageUrl"
|
||||
alt="Image principale"
|
||||
class=" max-w-full h-auto cursor-pointer flex center"
|
||||
@click="openFullscreen(mainImageUrl)"/>
|
||||
</div>
|
||||
<div>
|
||||
<!-- Main image Bloc D'information-->
|
||||
<div class="py-4" >
|
||||
|
||||
<p v-if="mainImageText" class="text-lg text-justify pa-6">
|
||||
{{ mainImageText }}
|
||||
</p>
|
||||
</div>
|
||||
<div v-if="!isEditMode">
|
||||
<p class="py-4 text-justify" v-if="mainImageText ">
|
||||
{{ mainImageText }}
|
||||
</p>
|
||||
</div>
|
||||
<v-textarea v-if="isEditMode" label="Description" variant="outlined" v-model="editableMainImageText"
|
||||
class="w-full p-2 py-6 "></v-textarea>
|
||||
|
||||
<!-- Main video -->
|
||||
<div v-if="videoSubtitleMain || videoUrlMain || mainVideoText " :style="{ backgroundColor: brandingStore.colors.surface, color: brandingStore.colors.onSurface }">
|
||||
<h2 v-if="videoSubtitleMain" class="text-3xl font-semibold text-center py-6">
|
||||
{{ videoSubtitleMain }}
|
||||
</h2>
|
||||
<div class="flex flex-row items-center space-x-4">
|
||||
<!-- image principale-->
|
||||
<div v-if="!isEditMode" class="flex justify-center items-center w-1/2">
|
||||
<img
|
||||
v-if="mainImageUrl"
|
||||
:src="mainImageUrl"
|
||||
alt="Image principale"
|
||||
class="max-w-full h-auto cursor-pointer"
|
||||
@click="openFullscreen(mainImageUrl)" />
|
||||
</div>
|
||||
<div v-if="isEditMode" class="relative flex justify-center">
|
||||
<label >
|
||||
<input type="file" @change="updateImage('mainImageUrl', $event)" class="hidden"/>
|
||||
<img :src="mainImageUrl || fallbackImage"
|
||||
alt="Image principale"
|
||||
class=" max-w-full h-auto cursor-pointer max-h-96"/>
|
||||
</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>
|
||||
|
||||
<div v-if="videoUrlMain" class="video-container">
|
||||
<iframe
|
||||
:src="videoUrlMain"
|
||||
title="YouTube video player"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen
|
||||
class="video-frame">
|
||||
</iframe>
|
||||
</div>
|
||||
<p v-if="mainVideoText" class="text-lg text-justify pa-6 mb-4">
|
||||
{{ mainVideoText }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="w-1/2 flex flex-col justify-center">
|
||||
<h2 v-if="videoSubtitleMain" class="text-xl font-semibold text-center">
|
||||
Pourquoi nous supporter
|
||||
</h2>
|
||||
|
||||
<!-- Images -->
|
||||
<div v-if="imagesSubtitle || image1Url || image2Url || image3Url || image4Url || imagesText " :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 v-if="!isEditMode">
|
||||
<p v-if="mainVideoText" class="text-lg text-justify mt-5 mb-4">
|
||||
{{ mainVideoText }}
|
||||
</p>
|
||||
</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 v-if="isEditMode">
|
||||
<v-textarea
|
||||
label="Description"
|
||||
v-model="editableMainVideoText"
|
||||
class="p-2 rounded-md mt-4"
|
||||
variant="outlined"
|
||||
rows="10"
|
||||
></v-textarea>
|
||||
</div>
|
||||
</div>
|
||||
</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>
|
||||
<div >
|
||||
<div v-if="!isEditMode" class="py-5 text-lg font-bold">
|
||||
{{ videoSubtitle }}
|
||||
</div>
|
||||
<div v-if="isEditMode">
|
||||
<v-text-field
|
||||
label="Titre"
|
||||
variant="outlined"
|
||||
v-model="editableVideoSubtitle"
|
||||
class="w-full p-2"
|
||||
></v-text-field>
|
||||
</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>
|
||||
<v-textarea v-if="isEditMode" rows="10" variant="outlined" v-model="editableImagesText" class="w-full p-2 border rounded-md"></v-textarea>
|
||||
|
||||
<div v-if="!isEditMode">
|
||||
<p v-if="imagesText " class="text-lg text-justify">
|
||||
{{ imagesText }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p v-if="imagesText" class="text-lg text-justify pa-6">
|
||||
{{ imagesText }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!--SecondVideo-->
|
||||
<div v-if="videoSubtitle || videoUrl || videoText " :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 v-if="editablePhoneNumber || editableEmail" 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 mt-12 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>
|
||||
<!-- media-->
|
||||
<div v-if="!isEditMode">
|
||||
<div v-if="videoUrlMain" class="video-container">
|
||||
<iframe
|
||||
:src="videoUrlMain"
|
||||
title="YouTube video player"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowfullscreen
|
||||
class="video-frame">
|
||||
</iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--pc-->
|
||||
<div v-if="!smAndDown">
|
||||
<div class="flex space-x-64 space-y-4 mt-9 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>
|
||||
|
||||
<!-- 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 max-h-96"/>
|
||||
</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.onPrimary}">
|
||||
<!--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 -->
|
||||
<v-text-field
|
||||
label="Description"
|
||||
v-model="editableMainVideoText" class="w-full p-2 rounded-md h-24"
|
||||
variant="outlined"
|
||||
></v-text-field>
|
||||
</div>
|
||||
|
||||
<!-- 4 images-->
|
||||
<div class="rounded-2xl"
|
||||
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary}">
|
||||
|
||||
<div v-if="isEditMode">
|
||||
<div class="text-2xl pa-4">Galerie d'images</div>
|
||||
<v-text-field label="Titre" variant="outlined" v-model="editableImagesSubtitle" class="w-full p-2 rounded-md"></v-text-field>
|
||||
<v-text-field
|
||||
label="URL Video"
|
||||
variant="outlined"
|
||||
v-if="isEditMode"
|
||||
type="text"
|
||||
v-model="editableVideoUrlMain"
|
||||
class="w-full p-2 rounded-md"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!--images-->
|
||||
<div class=" text-2xl pa-2
|
||||
">Images
|
||||
</div>
|
||||
<div class="pa-2 grid grid-cols-1 gap-4 md:grid-cols-4">
|
||||
<!-- Première image -->
|
||||
<div class="relative">
|
||||
<label>
|
||||
<input type="file" @change="updateImage('image1Url', $event)" class="hidden"/>
|
||||
<img :src="image1Url || fallbackImage"
|
||||
alt="Image 1"
|
||||
class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||
</label>
|
||||
<button @click="deleteImage('image1Url')"
|
||||
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
|
||||
X
|
||||
</button>
|
||||
</div>
|
||||
<!-- Images -->
|
||||
|
||||
<!-- Deuxième image -->
|
||||
<div class="relative">
|
||||
<label>
|
||||
<input type="file" @change="updateImage('image2Url', $event)" class="hidden"/>
|
||||
<img :src="image2Url || fallbackImage"
|
||||
alt="Image 2"
|
||||
class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||
</label>
|
||||
<button @click="deleteImage('image2Url')"
|
||||
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
|
||||
X
|
||||
</button>
|
||||
</div>
|
||||
<div v-if="!isEditMode">
|
||||
<div v-if="imagesSubtitle || image1Url || image2Url || image3Url || image4Url || imagesText " >
|
||||
<!-- images-->
|
||||
<div class="py-2">
|
||||
<FullscreenImage ref="fullscreenImage" :image-url="currentImage"/>
|
||||
<div>
|
||||
<!-- Affichage des images -->
|
||||
<div class="flex gap-2">
|
||||
<!-- Première image -->
|
||||
<div class="relative w-full sm:flex-1 " v-if="image1Url"
|
||||
@click="openFullscreen(image1Url)">
|
||||
<img :src="image1Url" alt="Image 1" class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||
</div>
|
||||
|
||||
<!-- Troisième image -->
|
||||
<div class="relative">
|
||||
<label>
|
||||
<input type="file" @change="updateImage('image3Url', $event)" class="hidden"/>
|
||||
<img :src="image3Url || fallbackImage"
|
||||
alt="Image 3"
|
||||
class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||
</label>
|
||||
<button @click="deleteImage('image3Url')"
|
||||
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
|
||||
X
|
||||
</button>
|
||||
</div>
|
||||
<!-- Deuxième image -->
|
||||
<div class="relative w-full sm:flex-1 " v-if="image2Url"
|
||||
@click="openFullscreen(image2Url)">
|
||||
<img :src="image2Url" alt="Image 2" class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||
</div>
|
||||
|
||||
<!-- Quatrième image -->
|
||||
<div class="relative">
|
||||
<label>
|
||||
<input type="file" @change="updateImage('image4Url', $event)" class="hidden"/>
|
||||
<img :src="image4Url || fallbackImage"
|
||||
alt="Image 4"
|
||||
class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||
</label>
|
||||
<button @click="deleteImage('image4Url')"
|
||||
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
|
||||
X
|
||||
</button>
|
||||
<!-- Troisième image -->
|
||||
<div class="relative w-full sm:flex-1 " 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 " 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>
|
||||
</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 v-if="isEditMode" class="rounded-2xl">
|
||||
<!--images-->
|
||||
<div class=" text-2xl pa-2">Images</div>
|
||||
<div class="pa-2 grid grid-cols-1 gap-4 md:grid-cols-4">
|
||||
<!-- Première image -->
|
||||
<div class="relative">
|
||||
<label>
|
||||
<input type="file" @change="updateImage('image1Url', $event)" class="hidden"/>
|
||||
<img :src="image1Url || fallbackImage"
|
||||
alt="Image 1"
|
||||
class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||
</label>
|
||||
<button @click="deleteImage('image1Url')"
|
||||
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
|
||||
X
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- Deuxième image -->
|
||||
<div class="relative">
|
||||
<label>
|
||||
<input type="file" @change="updateImage('image2Url', $event)" class="hidden"/>
|
||||
<img :src="image2Url || fallbackImage"
|
||||
alt="Image 2"
|
||||
class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||
</label>
|
||||
<button @click="deleteImage('image2Url')"
|
||||
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
|
||||
X
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Second Video -->
|
||||
<div class="rounded-2xl"
|
||||
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
|
||||
<div class="text-2xl pa-4">Vidéo Secondaire</div>
|
||||
<!-- Troisième image -->
|
||||
<div class="relative">
|
||||
<label>
|
||||
<input type="file" @change="updateImage('image3Url', $event)" class="hidden"/>
|
||||
<img :src="image3Url || fallbackImage"
|
||||
alt="Image 3"
|
||||
class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||
</label>
|
||||
<button @click="deleteImage('image3Url')"
|
||||
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
|
||||
X
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<v-text-field
|
||||
label="Titre"
|
||||
variant="outlined"
|
||||
v-model="editableVideoSubtitle"
|
||||
class="w-full p-2"
|
||||
></v-text-field>
|
||||
<!-- Quatrième image -->
|
||||
<div class="relative">
|
||||
<label>
|
||||
<input type="file" @change="updateImage('image4Url', $event)" class="hidden"/>
|
||||
<img :src="image4Url || fallbackImage"
|
||||
alt="Image 4"
|
||||
class="rounded-md max-w-full h-auto cursor-pointer"/>
|
||||
</label>
|
||||
<button @click="deleteImage('image4Url')"
|
||||
class="absolute top-2 right-2 px-2 py-1 bg-red-500 text-white hover:bg-red-600">
|
||||
X
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<v-text-field
|
||||
label="URL Vidéo"
|
||||
variant="outlined"
|
||||
v-if="isEditMode"
|
||||
v-model="editableVideoUrl"
|
||||
class="w-full p-2"
|
||||
></v-text-field>
|
||||
<!-- Description-->
|
||||
<div class="text-2xl pa-2"> Description</div>
|
||||
</div>
|
||||
|
||||
<v-textarea
|
||||
label="Description"
|
||||
variant="outlined"
|
||||
v-model="editableVideoText"
|
||||
class="w-full p-2 py-6"
|
||||
></v-textarea>
|
||||
</div>
|
||||
<!--Edit-->
|
||||
<div v-if="isEditMode">
|
||||
<v-text-field
|
||||
label="Numéro de Téléphone"
|
||||
variant="outlined"
|
||||
v-model="editablePhoneNumber"
|
||||
class="w-full p-2"
|
||||
></v-text-field>
|
||||
|
||||
<!-- Informations de Contact -->
|
||||
<div class="rounded-2xl"
|
||||
:style="{ backgroundColor: brandingStore.colors.primary, color: brandingStore.colors.onPrimary }">
|
||||
<div class="text-2xl pa-4">Informations de Contact</div>
|
||||
<v-text-field
|
||||
label="Adresse Email"
|
||||
variant="outlined"
|
||||
v-model="editableEmail"
|
||||
class="w-full p-2"
|
||||
></v-text-field>
|
||||
</div>
|
||||
|
||||
<v-text-field
|
||||
label="Numéro de Téléphone"
|
||||
variant="outlined"
|
||||
v-model="editablePhoneNumber"
|
||||
class="w-full p-2"
|
||||
></v-text-field>
|
||||
<!-- Contact Info-->
|
||||
<div v-if="!isEditMode">
|
||||
<div v-if="phoneNumber || email" class="mb-6" >
|
||||
<!-- mobile-->
|
||||
<div v-if="smAndDown">
|
||||
<div class="flex flex-col space-y-10 mt-12 justify-center items-center">
|
||||
<!-- Affichage du téléphone -->
|
||||
<div v-if="phoneNumber" class="flex items-center space-x-2">
|
||||
<i class="mdi mdi-phone-outline text-2xl"></i>
|
||||
<span>{{ phoneNumber }}</span>
|
||||
</div>
|
||||
<!-- Affichage de l'email -->
|
||||
<div v-if="email" class="flex items-center space-x-2">
|
||||
<i class="mdi mdi-email-outline text-2xl"></i>
|
||||
<a
|
||||
:href="`mailto:${email}`"
|
||||
class="no-underline text-current"
|
||||
>
|
||||
{{ email }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--pc-->
|
||||
<div v-if="!smAndDown">
|
||||
<div class="flex space-x-4 space-y-4 mt-5 justify-center items-center w-full">
|
||||
<!-- Affichage du téléphone -->
|
||||
<div v-if="phoneNumber" class="flex items-center space-x-2 w-1/2 justify-start">
|
||||
<i class="mdi mdi-phone-outline text-2xl"></i>
|
||||
<span>{{ phoneNumber }}</span>
|
||||
</div>
|
||||
|
||||
<v-text-field
|
||||
label="Adresse Email"
|
||||
variant="outlined"
|
||||
v-model="editableEmail"
|
||||
class="w-full p-2"
|
||||
></v-text-field>
|
||||
<!-- Affichage de l'email -->
|
||||
<div v-if="email" class="flex items-center space-x-2 w-1/2 justify-center">
|
||||
<i class="mdi mdi-email-outline text-2xl"></i>
|
||||
<a :href="`mailto:${email}`" class="no-underline text-current">
|
||||
{{ email }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@@ -388,8 +310,6 @@ import {watch} from "vue";
|
||||
import FullscreenImage from "@/views/creators/FullscreenImage.vue";
|
||||
|
||||
const {smAndDown} = useDisplay();
|
||||
const isMobileView = ref(smAndDown.value);
|
||||
|
||||
|
||||
const creatorProfileStore = useCreatorProfileStore();
|
||||
const brandingStore = useBrandingStore();
|
||||
@@ -399,25 +319,12 @@ const isLoading = ref(true);
|
||||
const isLoggedIn = true;
|
||||
const isEditMode = ref(false);
|
||||
|
||||
|
||||
const currentImage = ref("");
|
||||
const fullscreenImage = ref(null);
|
||||
|
||||
function openFullscreen(imageUrl) {
|
||||
currentImage.value = imageUrl;
|
||||
fullscreenImage.value.open();
|
||||
}
|
||||
|
||||
watch(smAndDown, (newVal) => {
|
||||
isMobileView.value = newVal;
|
||||
});
|
||||
|
||||
// Image de fallback pour l'éditeur
|
||||
const fallbackImage = "/medias/emptyimage.png";
|
||||
|
||||
// Variables réactives pour les données
|
||||
const editablePhoneNumber = ref("");
|
||||
const editableEmail = ref("");
|
||||
const mainTitle = ref("");
|
||||
const mainImageUrl = ref("");
|
||||
const mainImageText = ref("");
|
||||
@@ -431,26 +338,27 @@ const imagesText = ref("");
|
||||
const videoSubtitle = ref("");
|
||||
const videoSubtitleMain = ref("");
|
||||
const videoUrlMain = ref("");
|
||||
const videoUrl = ref("");
|
||||
const videoText = ref("");
|
||||
const phoneNumber = ref("");
|
||||
const email = ref("");
|
||||
|
||||
|
||||
const editableImages = ref([null, null, null, null]);
|
||||
|
||||
|
||||
// Editable fields
|
||||
const editableMainTitle = ref("");
|
||||
const editableMainImageText = ref("");
|
||||
const editableMainVideoText = ref("");
|
||||
const editableImagesSubtitle = ref("");
|
||||
const editableImagesText = ref("");
|
||||
const editableVideoSubtitle = ref("");
|
||||
const editableVideoSubtitleMain = ref("");
|
||||
const editableVideoText = ref("");
|
||||
const editableVideoUrlMain = ref("");
|
||||
const editableVideoUrl = ref("");
|
||||
const editablePhoneNumber = ref("");
|
||||
const editableEmail = ref("");
|
||||
|
||||
const editableImages = ref([null, null, null, null]);
|
||||
|
||||
function openFullscreen(imageUrl) {
|
||||
currentImage.value = imageUrl;
|
||||
fullscreenImage.value.open();
|
||||
}
|
||||
|
||||
watch(smAndDown, () => {});
|
||||
|
||||
// Activer/désactiver le mode édition
|
||||
function toggleEditMode() {
|
||||
@@ -460,27 +368,19 @@ function toggleEditMode() {
|
||||
editableMainTitle.value = mainTitle.value;
|
||||
editableMainImageText.value = mainImageText.value;
|
||||
editableMainVideoText.value = mainVideoText.value;
|
||||
editableImagesSubtitle.value = imagesSubtitle.value;
|
||||
editableImagesText.value = imagesText.value;
|
||||
editableVideoSubtitle.value = videoSubtitle.value;
|
||||
editableVideoSubtitleMain.value = videoSubtitleMain.value;
|
||||
editableVideoText.value = videoText.value;
|
||||
editableVideoUrlMain.value = videoUrlMain.value;
|
||||
editableVideoUrl.value = videoUrl.value;
|
||||
editablePhoneNumber.value = phoneNumber.value;
|
||||
editableEmail.value = email.value;
|
||||
} else {
|
||||
// Sauvegarder les modifications ou réinitialiser les URLs des images supprimées
|
||||
// Sauvegarder les modifications
|
||||
mainTitle.value = editableMainTitle.value;
|
||||
mainImageText.value = editableMainImageText.value;
|
||||
mainVideoText.value = editableMainVideoText.value;
|
||||
imagesSubtitle.value = editableImagesSubtitle.value;
|
||||
imagesText.value = editableImagesText.value;
|
||||
videoSubtitle.value = editableVideoSubtitle.value;
|
||||
videoSubtitleMain.value = editableVideoSubtitleMain.value;
|
||||
videoText.value = editableVideoText.value;
|
||||
videoUrlMain.value = editableVideoUrlMain.value;
|
||||
videoUrl.value = editableVideoUrl.value;
|
||||
phoneNumber.value = editablePhoneNumber.value;
|
||||
email.value = editableEmail.value;
|
||||
|
||||
@@ -493,7 +393,6 @@ function toggleEditMode() {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Supprimer une image
|
||||
function deleteImage(field) {
|
||||
switch (field) {
|
||||
@@ -515,12 +414,10 @@ function deleteImage(field) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Mettre à jour une image
|
||||
function updateImage(field, event) {
|
||||
const file = event.target.files[0];
|
||||
if (file) {
|
||||
// Stocker le fichier dans editableImages pour l'envoi
|
||||
switch (field) {
|
||||
case "mainImageUrl":
|
||||
editableImages.value[0] = file;
|
||||
@@ -546,7 +443,6 @@ function updateImage(field, event) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Charger les données au montage
|
||||
onMounted(() => {
|
||||
mainTitle.value = brandingStore.presentationInfos.title;
|
||||
@@ -561,11 +457,7 @@ onMounted(() => {
|
||||
imagesText.value = brandingStore.presentationInfos.imagesText;
|
||||
videoSubtitle.value = brandingStore.presentationInfos.videoSubtitle;
|
||||
videoSubtitleMain.value = brandingStore.presentationInfos.videoSubtitleMain;
|
||||
videoUrl.value = brandingStore.presentationInfos.videoUrl;
|
||||
videoUrlMain.value = brandingStore.presentationInfos.videoUrlMain;
|
||||
videoText.value = brandingStore.presentationInfos.videoText;
|
||||
editablePhoneNumber.value = brandingStore.presentationInfos.phoneNumber;
|
||||
editableEmail.value = brandingStore.presentationInfos.email;
|
||||
phoneNumber.value = brandingStore.presentationInfos.phoneNumber;
|
||||
email.value = brandingStore.presentationInfos.email;
|
||||
});
|
||||
@@ -584,13 +476,9 @@ async function saveChanges() {
|
||||
formData.append("Title", editableMainTitle.value || "");
|
||||
formData.append("MainImageText", editableMainImageText.value || "");
|
||||
formData.append("MainVideoText", editableMainVideoText.value || "");
|
||||
formData.append("ImagesSubtitle", editableImagesSubtitle.value || "");
|
||||
formData.append("ImagesText", editableImagesText.value || "");
|
||||
formData.append("VideoSubtitle", editableVideoSubtitle.value || "");
|
||||
formData.append("VideoSubtitleMain", editableVideoSubtitleMain.value || "");
|
||||
formData.append("VideoUrlMain", editableVideoUrlMain.value || "");
|
||||
formData.append("VideoUrl", editableVideoUrl.value || "");
|
||||
formData.append("VideoText", editableVideoText.value || "");
|
||||
|
||||
// Ajout des URLs d'images supprimées
|
||||
formData.append("MainImageUrl", mainImageUrl.value || ""); // Peut contenir un string vide
|
||||
@@ -607,10 +495,8 @@ async function saveChanges() {
|
||||
if (editableImages.value[4]) formData.append("Image4", editableImages.value[4]);
|
||||
|
||||
try {
|
||||
// Désactiver le bouton de sauvegarde pour éviter les clics multiples
|
||||
isLoading.value = true;
|
||||
|
||||
// Envoyer les données au backend
|
||||
const response = await client.post(
|
||||
`/api/creators/${creatorProfileStore.creator.id}/presentation-infos`,
|
||||
formData,
|
||||
@@ -621,51 +507,37 @@ async function saveChanges() {
|
||||
mainTitle.value = editableMainTitle.value;
|
||||
mainImageText.value = editableMainImageText.value;
|
||||
mainVideoText.value = editableMainVideoText.value;
|
||||
imagesSubtitle.value = editableImagesSubtitle.value;
|
||||
imagesText.value = editableImagesText.value;
|
||||
videoSubtitle.value = editableVideoSubtitle.value;
|
||||
videoSubtitleMain.value = editableVideoSubtitleMain.value;
|
||||
videoText.value = editableVideoText.value;
|
||||
videoUrlMain.value = editableVideoUrlMain.value;
|
||||
videoUrl.value = editableVideoUrl.value;
|
||||
phoneNumber.value = editablePhoneNumber.value;
|
||||
email.value = editableEmail.value;
|
||||
|
||||
console.log("Données sauvegardées :", response.data);
|
||||
|
||||
// Réinitialiser le mode édition
|
||||
isEditMode.value = false;
|
||||
|
||||
// Rafraîchir après une légère pause pour s'assurer des mises à jour visuelles
|
||||
|
||||
} catch (error) {
|
||||
console.error("Erreur lors de la sauvegarde :", error);
|
||||
} finally {
|
||||
// Réactiver les interactions
|
||||
isLoading.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function cancelEdit() {
|
||||
// Restaurer les valeurs d'origine
|
||||
editableMainTitle.value = mainTitle.value;
|
||||
editableMainImageText.value = mainImageText.value;
|
||||
editableMainVideoText.value = mainVideoText.value;
|
||||
editableImagesSubtitle.value = imagesSubtitle.value;
|
||||
editableImagesText.value = imagesText.value;
|
||||
editableVideoSubtitle.value = videoSubtitle.value;
|
||||
editableVideoSubtitleMain.value = videoSubtitleMain.value;
|
||||
editableVideoText.value = videoText.value;
|
||||
editableVideoUrlMain.value = videoUrlMain.value;
|
||||
editableVideoUrl.value = videoUrl.value;
|
||||
editablePhoneNumber.value = phoneNumber.value;
|
||||
editableEmail.value = email.value;
|
||||
|
||||
// Désactiver le mode édition
|
||||
isEditMode.value = false;
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@@ -684,4 +556,4 @@ function cancelEdit() {
|
||||
border: 0;
|
||||
border-radius: 0.5rem; /* Pour les bords arrondis */
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@@ -6,14 +6,13 @@
|
||||
>
|
||||
|
||||
<img
|
||||
class="shadow-2xl rounded-full border-solid border-102 max-w-[190px]"
|
||||
class="shadow-2xl rounded-full border-solid border-hSecondary border-102 max-w-[190px]"
|
||||
:src="brandingStore.value.images.logo
|
||||
? brandingStore.value.images.logo
|
||||
: '/images/placeholders/logo.png'"
|
||||
alt="Profile Picture"
|
||||
:style="{
|
||||
borderColor: brandingStore.colors.secondary,
|
||||
height: '190px',
|
||||
height: '190px'
|
||||
}"
|
||||
/>
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<v-btn class="hover:scale-125" variant="text" icon @click="openDonationDialog()">
|
||||
<v-btn class="hover:scale-125" variant="text" @click="openDonationDialog()">
|
||||
<v-icon :class="['text-2xl', iconColorClass]">mdi-gift-outline</v-icon>
|
||||
</v-btn>
|
||||
|
||||
|
||||
<v-dialog v-model="donationModal" max-width="500">
|
||||
<v-form>
|
||||
<v-card class="text-center rounded-xl" :style="{ border: `3px solid ${brandingStore.colors.primary}` }">
|
||||
<v-card class="text-center rounded-xl border-2 border-solid border-hPrimary">
|
||||
<div class="py-4 text-2xl font-bold border-b mb-2">
|
||||
Je Soutiens!
|
||||
</div>
|
||||
@@ -15,12 +15,11 @@
|
||||
<img
|
||||
:src="brandingStore.value.images.logo"
|
||||
alt="Profile Image"
|
||||
class="rounded-full"
|
||||
class="rounded-full border-2 border-solid border-hSecondary"
|
||||
width="40"
|
||||
height="40"
|
||||
:style="{ border: `2px solid ${brandingStore.colors.secondary}` }">
|
||||
height="40">
|
||||
<div class="capitalize px-2 text-2xl">{{ brandingStore.value.name }}</div>
|
||||
<v-btn icon @click="closeDonationDialog()" class="ml-auto" variant="text">
|
||||
<v-btn @click="closeDonationDialog()" class="ml-auto" variant="text">
|
||||
<v-icon>mdi-close</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
@@ -51,8 +50,8 @@
|
||||
></v-textarea>
|
||||
|
||||
<v-btn variant="outlined"
|
||||
:style="{ borderColor: brandingStore.colors.primary, color: brandingStore.colors.primary }"
|
||||
@click="goPay()" class="w-full mt-5">
|
||||
@click="goPay()"
|
||||
class="w-full mt-5 border-hPrimary">
|
||||
Envoyez
|
||||
</v-btn>
|
||||
</v-card-text>
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
<v-dialog v-model="donationModal" max-width="500">
|
||||
<v-form>
|
||||
<v-card
|
||||
class="text-center rounded-xl"
|
||||
:style="{ border: `3px solid ${brandingStore.colors.primary}` }"
|
||||
class="text-center rounded-xl border-2 border-solid border-hPrimary"
|
||||
>
|
||||
<div class="py-4 text-2xl font-bold border-b mb-2"> {{ $t('isupportbtn.isupport') }}</div>
|
||||
|
||||
@@ -20,16 +19,14 @@
|
||||
<img
|
||||
:src="brandingStore.value.images.logo"
|
||||
alt="Profile Image"
|
||||
class="rounded-full"
|
||||
class="rounded-full border-2 border-solid border-hSecondary"
|
||||
width="40"
|
||||
height="40"
|
||||
:style="{ border: `2px solid ${brandingStore.colors.secondary}` }"
|
||||
/>
|
||||
<div class="capitalize px-2 text-2xl">
|
||||
{{ brandingStore.value.name }}
|
||||
</div>
|
||||
<v-btn
|
||||
icon
|
||||
@click="closeDonationDialog()"
|
||||
class="ml-auto"
|
||||
variant="text"
|
||||
@@ -68,13 +65,8 @@
|
||||
|
||||
<v-btn
|
||||
variant="outlined"
|
||||
:style="{
|
||||
borderColor: brandingStore.colors.primary,
|
||||
color: brandingStore.colors.primary,
|
||||
backgroundColor: brandingStore.colors.secondary,
|
||||
}"
|
||||
@click="goPay()"
|
||||
class="w-full mt-5"
|
||||
class="w-full mt-5 border-hPrimary bg-hSecondary text-hOnPrimary"
|
||||
>
|
||||
{{ $t('isupportbtn.send') }}
|
||||
</v-btn>
|
||||
@@ -193,10 +185,6 @@ function preventNonNumeric(event) {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.full-height {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.error-message {
|
||||
color: white;
|
||||
background-color: red;
|
||||
|
||||
@@ -19,18 +19,16 @@ function hexToRgb(hex) {
|
||||
<div class="flex items-center justify-center">
|
||||
<!-- ExclusiveCard -->
|
||||
<div
|
||||
class="rounded-lg w-[290px] h-[380px] relative"
|
||||
class="rounded-lg w-[290px] h-[380px] relative bg-hSurface"
|
||||
:style="{
|
||||
backgroundColor: branding.colors.surface,
|
||||
boxShadow: '0 10px 10px rgba(0, 0, 0, 0.3)',
|
||||
borderColor: `rgba(${hexToRgb(branding.colors.secondary)}, 0.4)`,
|
||||
borderColor: `rgba(${hexToRgb('--h-secondary')}, 0.4)`,
|
||||
borderWidth: '1px',
|
||||
}"
|
||||
>
|
||||
<!-- Conteneur pour aligner le titre et le bouton -->
|
||||
<div
|
||||
class="flex items-center justify-between py-2 px-3"
|
||||
:style="{ color: branding.colors.onPrimary }"
|
||||
class="flex items-center justify-between py-2 px-3 text-hOnPrimary"
|
||||
>
|
||||
<div class="text-md">Comment créer un logo</div>
|
||||
|
||||
@@ -39,18 +37,12 @@ function hexToRgb(hex) {
|
||||
<template #activator="{ props }">
|
||||
<button
|
||||
v-bind="props"
|
||||
class="text-gray-600"
|
||||
:style="{ color: branding.colors.onPrimary }"
|
||||
class="text-gray-600 text-hOnPrimary"
|
||||
>
|
||||
<i class="mdi mdi-dots-vertical text-lg"></i>
|
||||
</button>
|
||||
</template>
|
||||
<v-list
|
||||
:style="{
|
||||
backgroundColor: branding.colors.secondary,
|
||||
color: branding.colors.onSecondary,
|
||||
}"
|
||||
>
|
||||
<v-list class="bg-hSecondary text-hOnSecondary">
|
||||
<v-list-item title="Modifier" @click="modifier" />
|
||||
<v-list-item title="Effacer" @click="effacer" />
|
||||
<v-list-item title="Reporter" @click="reporter" />
|
||||
@@ -65,21 +57,16 @@ function hexToRgb(hex) {
|
||||
alt="image"
|
||||
/>
|
||||
<div class="absolute inset-0 flex items-center justify-center">
|
||||
<i
|
||||
class="mdi mdi-lock text-7xl p-2 rounded-full"
|
||||
:style="{
|
||||
color: branding.colors.secondary,
|
||||
border: `2px solid ${branding.colors.secondary}`,
|
||||
}"
|
||||
<i class="mdi mdi-lock text-7xl p-2 rounded-full text-hSecondary border-2 border-solid border-hSecondary"
|
||||
></i>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-end pa-2 px-4" :style="{ color: branding.colors.onPrimary }">
|
||||
<div class="text-end pa-2 px-4 text-hOnPrimary">
|
||||
14-05-2024
|
||||
</div>
|
||||
|
||||
<div class="text-justify px-4 text-md" :style="{ color: branding.colors.onPrimary }">
|
||||
<div class="text-justify px-4 text-md text-hOnPrimary">
|
||||
Tutoriel sur comment s'assurer d'avoir un logo unique et percutant
|
||||
qui se démarque de la concurrence.
|
||||
</div>
|
||||
|
||||
@@ -6,15 +6,11 @@
|
||||
<!-- Grille avec colonnes dynamiques basées sur la largeur -->
|
||||
<div class="grid gap-3 grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 min-w-[250px]">
|
||||
<div v-for="(item, index) in contenuexclusif" :key="index"
|
||||
class="my-1 text-white rounded-lg w-full border-2 shadow h-[380px] hover-card relative overflow-hidden"
|
||||
:style="{
|
||||
background: creator.colors.bannerTop,
|
||||
borderColor: `rgba(${getRGB(creator.colors.bannerBottom)}, 0.38)`
|
||||
}">
|
||||
class="my-1 text-white rounded-lg w-full border-2 shadow h-[380px] hover-card relative overflow-hidden bg-hPrimary text-hOnPrimary border-hSecondary">
|
||||
<div class="flex justify-center items-center">
|
||||
</div>
|
||||
<div>
|
||||
<img :src="item.photo" class="w-full h-auto max-h-[170px] object-cover" />
|
||||
<img :src="item.photo" alt="photo" class="w-full h-auto max-h-[170px] object-cover" />
|
||||
|
||||
<!-- Section du nombre de clics et du bouton d'édition -->
|
||||
<div class="flex flex-row justify-between items-center p-2">
|
||||
@@ -24,7 +20,7 @@
|
||||
<p class="text-xs">200 clicks</p>
|
||||
</div>
|
||||
<!-- Bouton pour éditer le contenu à droite -->
|
||||
<v-btn class="" icon variant="plain" @click="editCard(item)">
|
||||
<v-btn class="" variant="plain" @click="editCard(item)">
|
||||
<v-icon>mdi-dots-vertical</v-icon>
|
||||
</v-btn>
|
||||
</div>
|
||||
@@ -160,17 +156,10 @@ window.addEventListener('resize', () => {
|
||||
transform: scale(1.03); /* Effet de hover restauré */
|
||||
}
|
||||
|
||||
.stars .v-icon {
|
||||
.stars {
|
||||
font-size: 18px; /* Ajustez la taille des icônes */
|
||||
}
|
||||
|
||||
.limited-text {
|
||||
height: 60px; /* Limite la hauteur du texte */
|
||||
overflow: hidden; /* Empêche le texte de dépasser */
|
||||
text-overflow: ellipsis; /* Ajoute des points de suspension si le texte dépasse */
|
||||
white-space: nowrap; /* Le texte reste sur une seule ligne */
|
||||
}
|
||||
|
||||
.stars {
|
||||
position: absolute; /* Fixe les étoiles au bas à droite */
|
||||
bottom: 10px;
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
<template>
|
||||
<v-dialog v-model="isVisible" fullscreen hide-overlay transition="fade-transition">
|
||||
<v-card class="pa-0" :style="{ backgroundColor: brandingStore.colors.background, color: brandingStore.colors.onBackground }">
|
||||
<v-card class="pa-0 bg-hBackground text-hOnBackground">
|
||||
<v-btn
|
||||
class="close-button"
|
||||
icon
|
||||
:style="{ backgroundColor: brandingStore.colors.secondary, color: brandingStore.colors.onSecondary }"
|
||||
class="close-button bg-hSecondary text-hOnSecondary"
|
||||
@click="close"
|
||||
>
|
||||
<v-icon>mdi-close</v-icon>
|
||||
|
||||
@@ -13,15 +13,14 @@
|
||||
<icon-account-verified></icon-account-verified>
|
||||
</div>
|
||||
|
||||
<div class="flex flex-col"
|
||||
:style="{ color: brandingStore.colors.onPrimary }">
|
||||
<span class="capitalize text-3xl">
|
||||
{{ brandingStore.value.name }}
|
||||
</span>
|
||||
<div class="flex flex-col text-hOnPrimary">
|
||||
<span class="capitalize text-3xl">
|
||||
{{ brandingStore.value.name }}
|
||||
</span>
|
||||
|
||||
<span class="capitalize text-lg">
|
||||
{{ brandingStore.value.title }}
|
||||
</span>
|
||||
<span class="capitalize text-lg">
|
||||
{{ brandingStore.value.title }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- Tint Effect -->
|
||||
|
||||
@@ -31,7 +31,7 @@ function unsubscribeFromCreator() {
|
||||
:style="{
|
||||
width: '150px',
|
||||
height: '28px',
|
||||
backgroundColor: brandingStore.colors.secondary,
|
||||
backgroundColor: '--h-secondary',
|
||||
color: 'white',
|
||||
borderRadius: '8px',
|
||||
padding: '10px 24px',
|
||||
@@ -51,7 +51,7 @@ function unsubscribeFromCreator() {
|
||||
:style="{
|
||||
width: '150px',
|
||||
height: '28px',
|
||||
backgroundColor: brandingStore.colors.secondary,
|
||||
backgroundColor: '--h-secondary',
|
||||
color: 'white',
|
||||
borderRadius: '0 8px 8px 0',
|
||||
padding: '10px 24px',
|
||||
@@ -67,8 +67,7 @@ function unsubscribeFromCreator() {
|
||||
</template>
|
||||
|
||||
<v-dialog v-model="showUnsubscribeModal" max-width="500">
|
||||
<v-card class="text-center rounded-xl"
|
||||
:style="{ border: `3px solid ${brandingStore.colors.secondary}` }">
|
||||
<v-card class="text-center rounded-xl border-2 border-solid border-hSecondary">
|
||||
|
||||
<div class="flex items-center justify-between py-4 text-2xl font-bold border-b mb-2">
|
||||
<div class="flex-1 text-center">
|
||||
@@ -84,11 +83,10 @@ function unsubscribeFromCreator() {
|
||||
@click="unsubscribeFromCreator">Oui
|
||||
</v-btn>
|
||||
|
||||
<v-btn class="flex-grow-1"
|
||||
:style="{ borderColor: brandingStore.colors.secondary, color: brandingStore.colors.secondary }"
|
||||
<v-btn class="flex-grow-1 border-hSecondary text-hOnSecondary"
|
||||
variant="outlined"
|
||||
@click="showUnsubscribeModal = false">
|
||||
<div :style="{ color: brandingStore.colors.secondary }">Non</div>
|
||||
Non
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
|
||||
@@ -2,9 +2,8 @@
|
||||
import {useBrandingStore} from "@/stores/brandingStore.js";
|
||||
import {ref, onMounted} from 'vue';
|
||||
import {useClient} from "@/plugins/api.js";
|
||||
import {useRoute, useRouter} from "vue-router";
|
||||
import {useRoute} from "vue-router";
|
||||
|
||||
const router = useRouter()
|
||||
const brandingStore = useBrandingStore();
|
||||
|
||||
const tiers = ref([]);
|
||||
@@ -23,14 +22,6 @@ onMounted(() => {
|
||||
fetchTiers();
|
||||
});
|
||||
|
||||
// Colors
|
||||
|
||||
const onPrimary = {color: brandingStore.colors.onPrimary}
|
||||
const Primary = {backgroundColor: brandingStore.colors.primary}
|
||||
|
||||
const onSecondaryColor = {color: brandingStore.colors.onSecondary}
|
||||
const secondaryColor = {backgroundColor: brandingStore.colors.secondary}
|
||||
|
||||
const route = useRoute()
|
||||
const baseUrl = window.location.origin;
|
||||
const creatorSlug = route.params.creator_slug || route.path.split('/')[1];
|
||||
@@ -48,7 +39,7 @@ async function doSubscribe(tier) {
|
||||
checkoutSuccessUrl: successUrl, // TODO: ensure the success-url will insert subscription
|
||||
checkoutCancelledUrl: cancelledUrl
|
||||
})
|
||||
|
||||
|
||||
window.location.href = response.data.stripeCheckoutUrl;
|
||||
} catch (error) {
|
||||
console.error("Error loading subscriptions:", error);
|
||||
@@ -88,12 +79,4 @@ async function doSubscribe(tier) {
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.v-card {
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.dotted-border {
|
||||
border: 2px dotted;
|
||||
padding: 1px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user