All the modals are created, only the connection remains to be done.

This commit is contained in:
PascalMarchesseault
2024-07-27 10:10:50 -04:00
parent 8f9dee1b5f
commit 63d8689757
6 changed files with 34 additions and 9 deletions

View File

@@ -1,18 +1,25 @@
<template> <template>
<div class="p-4"> <div class="p-4">
<h2 class="text-lg font-semibold mb-4">Sélectionne ta bannière</h2> <h2 class="text-2xl font-semibold mb-4 flex justify-center">Sélectionne ta bannière</h2>
<div class="mb-5">
<img <img
@click="openModal('BannerPicker')" @click="openModal('BannerPicker')"
src="/images/hutopymedia/banners/tutorialbanner.png" src="/images/hutopymedia/banners/tutorialbanner.png"
class="w-full transition duration-200 ease-in-out transform hover:brightness-125" class="w-full transition duration-200 ease-in-out transform"
alt="Tutorial Banner" alt="Tutorial Banner"
> >
</div>
<v-file-input <v-file-input
variant="outlined"
accept="image/*" accept="image/*"
label="File input" label="File input"
></v-file-input> ></v-file-input>
<div class="flex justify-end space-x-4">
<v-btn variant="plain" color="black">Annuler</v-btn>
<v-btn color="#A6147D">Enregistrer</v-btn>
</div>
</div> </div>
</template> </template>

View File

@@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<h2 class="title text-2xl">Couleur contour</h2> <h2 class="title font-semibold text-2xl">Couleur contour</h2>
<div class="flex justify-center"><v-color-picker></v-color-picker></div> <div class="flex justify-center"><v-color-picker></v-color-picker></div>

View File

@@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<h2 class="title text-2xl">Couleur de la bannière inférieur</h2> <h2 class="title font-semibold text-2xl">Couleur de la bannière inférieur</h2>
<div class="flex justify-center"><v-color-picker></v-color-picker></div> <div class="flex justify-center"><v-color-picker></v-color-picker></div>

View File

@@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<h2 class="title text-2xl">Couleur des Menus</h2> <h2 class="title font-semibold text-2xl">Couleur des Menus</h2>
<div class="flex justify-center"><v-color-picker></v-color-picker></div> <div class="flex justify-center"><v-color-picker></v-color-picker></div>

View File

@@ -1,6 +1,6 @@
<template> <template>
<div> <div>
<h2 class="title text-2xl">Couleur de la bannière supérieure</h2> <h2 class="title font-semibold text-2xl">Couleur de la bannière supérieure</h2>
<div class="flex justify-center"><v-color-picker></v-color-picker></div> <div class="flex justify-center"><v-color-picker></v-color-picker></div>

View File

@@ -1,11 +1,29 @@
<template> <template>
<div class="p-4"> <div class="p-4">
<h2 class="text-lg font-semibold mb-4">Choisir Image de profil</h2> <h2 class="text-2xl font-semibold mb-4 flex justify-center">Choisir Image de profil</h2>
<input type="file" @change="onFileChange" accept="image/*" class="mb-4" /> <div class="flex justify-center mb-5">
<img
@click="openModal('ProfilePicturePicker')"
class=" custom-border active:bg-gray-600 shadow flex items-center transition duration-200 ease-in-out w-48 h-48 rounded-full"
src="/images/usersmedia/HutopyProfile/profilepictures/profileHutopyProfile01.png"
alt="Profile Image"
>
</div>
<v-file-input
variant="outlined"
accept="image/*"
label="File input"
></v-file-input>
<div v-if="bannerUrl" class="mt-4"> <div v-if="bannerUrl" class="mt-4">
<h3 class="text-md font-semibold mb-2">Aperçu de la bannière:</h3> <h3 class="text-md font-semibold mb-2">Aperçu de la bannière:</h3>
<img :src="bannerUrl" alt="Banner Preview" class="w-full h-auto rounded shadow" /> <img :src="bannerUrl" alt="Banner Preview" class="w-full h-auto rounded shadow" />
</div> </div>
<div class="flex justify-end space-x-4">
<v-btn variant="plain" color="black">Annuler</v-btn>
<v-btn color="#A6147D">Enregistrer</v-btn>
</div>
</div> </div>
</template> </template>