I added the "About Us" button in the banner section and connected it with the backend.
This commit is contained in:
committed by
Jonathan Bourdon
parent
92908869b3
commit
d9f4973319
64
src/views/creators/AboutYou.vue
Normal file
64
src/views/creators/AboutYou.vue
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<button
|
||||||
|
class="flex items-center text-white transform transition-transform duration-200 hover:text-gray-300 hover:scale-125 mr-2"
|
||||||
|
@click="AboutUs = true"
|
||||||
|
>
|
||||||
|
<v-icon style="font-size: 35px; height: 35px; width: 55px;">mdi-information</v-icon>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<v-dialog v-model="AboutUs" max-width="500px">
|
||||||
|
<v-card>
|
||||||
|
<v-card-title>
|
||||||
|
À propos
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text class="scrollable-content">
|
||||||
|
{{ creator.description }}
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-actions>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<v-btn text class="ml-auto" @click="isModalOpen = false">Fermer</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-dialog>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
|
||||||
|
import {ref} from 'vue';
|
||||||
|
import {useUserStore} from "@/stores/user.js";
|
||||||
|
|
||||||
|
const AboutUs = ref(false);
|
||||||
|
|
||||||
|
const props = defineProps({
|
||||||
|
creator: {type: Object, required: true},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.scrollable-content {
|
||||||
|
max-height: 600px;
|
||||||
|
overflow-y: auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.scrollable-content::-webkit-scrollbar {
|
||||||
|
width: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scrollable-content::-webkit-scrollbar-thumb {
|
||||||
|
background-color: #A30E79;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scrollable-content::-webkit-scrollbar-thumb:hover {
|
||||||
|
background-color: #a21caf;
|
||||||
|
}
|
||||||
|
|
||||||
|
.transparent-btn {
|
||||||
|
background-color: transparent;
|
||||||
|
color: inherit;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Buttons -->
|
<!-- Buttons -->
|
||||||
<div class="flex flex-wrap items-center justify-center mt-2 sm:mt-8 md:mt-4 lg:mt-0 lg:ml-auto space-x-2 sm:space-x-4">
|
<div class="flex flex-wrap items-center justify-center mt-2 sm:mt-8 md:mt-4 lg:mt-0 lg:ml-auto space-x-2 sm:space-x-4 ml-">
|
||||||
<button v-if="creator.id === userStore.getCurrentUser().id"
|
<button v-if="creator.id === userStore.getCurrentUser().id"
|
||||||
class="flex items-center text-white transform transition-transform duration-200 hover:text-gray-300 hover:scale-125"
|
class="flex items-center text-white transform transition-transform duration-200 hover:text-gray-300 hover:scale-125"
|
||||||
@click="isDialogActive = true">
|
@click="isDialogActive = true">
|
||||||
@@ -76,10 +76,7 @@
|
|||||||
class="flex items-center text-white transform transition-transform duration-200 hover:text-white hover:scale-125">
|
class="flex items-center text-white transform transition-transform duration-200 hover:text-white hover:scale-125">
|
||||||
<v-icon style="font-size: 35px; height: 35px; width: 55px;">mdi-comment-text</v-icon>
|
<v-icon style="font-size: 35px; height: 35px; width: 55px;">mdi-comment-text</v-icon>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<AboutYou :creator="creator"></AboutYou>
|
||||||
class="flex items-center text-white transform transition-transform duration-200 hover:text-gray-300 hover:scale-125">
|
|
||||||
<v-icon style="font-size: 35px; height: 35px; width: 55px;">mdi-information</v-icon>
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -126,6 +123,7 @@
|
|||||||
</v-dialog>
|
</v-dialog>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
@@ -133,6 +131,7 @@
|
|||||||
import {defineProps, ref} from "vue";
|
import {defineProps, ref} from "vue";
|
||||||
import {useUserStore} from "@/stores/user.js";
|
import {useUserStore} from "@/stores/user.js";
|
||||||
import SeizeIndicator from "@/views/tools/SeizeIndicator.vue";
|
import SeizeIndicator from "@/views/tools/SeizeIndicator.vue";
|
||||||
|
import AboutYou from "@/views/creators/AboutYou.vue";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
creator: { type: Object, required: true },
|
creator: { type: Object, required: true },
|
||||||
|
|||||||
Reference in New Issue
Block a user