A bit of css for the content-list and content-card
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<div class="shadow-lg rounded-lg">
|
<div class="shadow-md rounded-lg bg-blue-100">
|
||||||
|
|
||||||
<div class="text-lg font-bold">
|
<div class="text-lg font-bold">
|
||||||
{{ props.content.title }}
|
{{ props.content.title }}
|
||||||
@@ -9,7 +9,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="h-48 object-cover bg-purple rounded-md">
|
<div v-if="props.content.url !== null || props.content.uri !== null"
|
||||||
|
class="h-48 object-cover bg-gray-300 rounded-md">
|
||||||
|
|
||||||
<v-img :src="props.content.url"
|
<v-img :src="props.content.url"
|
||||||
v-if="!isHttpUrl">
|
v-if="!isHttpUrl">
|
||||||
@@ -42,15 +43,17 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<div class="border-b p-6">
|
<div>
|
||||||
<h2 class="font-sans font-semibold">Commentaires</h2>
|
<h2 class="font-sans font-semibold">Commentaires</h2>
|
||||||
<MessageList :subject-id="props.content.id">
|
<message-list :subject-id="props.content.id">
|
||||||
</MessageList>
|
</message-list>
|
||||||
</div>
|
</div>
|
||||||
<div class="border-b-2 p-6">
|
|
||||||
<PostMessage :subject-id="props.content.id">
|
<div class="border-t-2 border-gray-300 mt-4 pt-4">
|
||||||
</PostMessage>
|
<post-message :subject-id="props.content.id">
|
||||||
|
</post-message>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<v-infinite-scroll :items="contents"
|
<v-infinite-scroll :items="contents"
|
||||||
:onLoad="load"
|
:onLoad="load">
|
||||||
class="bg-teal justify-items-center">
|
|
||||||
|
|
||||||
<ContentCard v-for="content in contents"
|
<template v-for="content in contents">
|
||||||
:content="content"
|
<ContentCard :content="content"
|
||||||
class="my-2 p-4 bg-yellow-300 w-full"
|
class="w-full p-2 my-2"
|
||||||
>
|
>
|
||||||
</ContentCard>
|
</ContentCard>
|
||||||
|
</template>
|
||||||
|
|
||||||
<template v-slot:empty>
|
<template v-slot:empty>
|
||||||
Il n'y a pas plus de contenus
|
Il n'y a pas plus de contenus
|
||||||
@@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
</v-infinite-scroll>
|
</v-infinite-scroll>
|
||||||
|
|
||||||
|
<p class="bg-orange">test</p>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
<creator-banner :creator="creator"></creator-banner>
|
<creator-banner :creator="creator"></creator-banner>
|
||||||
<donation-popup :creator-id="creator.id"></donation-popup>
|
<donation-popup :creator-id="creator.id"></donation-popup>
|
||||||
|
|
||||||
<div class="max-w-[800px] mx-auto flex flex-row justify-center border-l-2 border-r-2 -mt-6 ">
|
<div class="max-w-[1000px] mx-auto flex flex-row justify-center border-l-2 border-r-2 -mt-6 ">
|
||||||
<div class="w-full mt-20 h-full">
|
<div class="w-full h-full mx-1">
|
||||||
<content-list :creator-id="creator.id">
|
<content-list :creator-id="creator.id">
|
||||||
</content-list>
|
</content-list>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,12 +3,12 @@
|
|||||||
<v-infinite-scroll :items="messages"
|
<v-infinite-scroll :items="messages"
|
||||||
:onLoad="load"
|
:onLoad="load"
|
||||||
mode="manual"
|
mode="manual"
|
||||||
class="bg-teal justify-items-center">
|
class="bg-gray-300 rounded-md justify-items-center">
|
||||||
|
|
||||||
<template v-for="(message, index) in messages" :key="index">
|
<template v-for="(message, index) in messages" :key="index">
|
||||||
<Message
|
<Message
|
||||||
:message="message"
|
:message="message"
|
||||||
class="my-2 p-4 bg-amber-200 w-full"
|
class="m-2 p-2 rounded-md bg-gray-100"
|
||||||
>
|
>
|
||||||
</Message>
|
</Message>
|
||||||
</template>
|
</template>
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<template v-slot:load-more="{ props }">
|
<template v-slot:load-more="{ props }">
|
||||||
<v-btn
|
<v-btn
|
||||||
size="small"
|
size="small"
|
||||||
variant="flat"
|
variant="plain"
|
||||||
v-bind="props"
|
v-bind="props"
|
||||||
>Voir plus de commentaires
|
>Voir plus de commentaires
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<div class="flex flex-row">
|
<div class="flex flex-row">
|
||||||
|
|
||||||
<div class="px-1 content-center">
|
<div class="mx-2 content-center">
|
||||||
<img src="/images/usersmedia/anonyme/profilepictures/profileAnonymeSquare.png"
|
<img src="/images/usersmedia/anonyme/profilepictures/profileAnonymeSquare.png"
|
||||||
alt="Profile Image"
|
alt="Profile Image"
|
||||||
class="rounded-full"
|
class="rounded-full"
|
||||||
@@ -23,9 +23,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row gap-2 p-2 justify-end">
|
<div class="flex flex-row gap-2 mt-2 justify-end">
|
||||||
<v-btn style="border-radius: 20px" variant="text">Annuler</v-btn>
|
<v-btn variant="plain">Annuler</v-btn>
|
||||||
<v-btn style="border-radius: 20px" @click="publish">Commenter</v-btn>
|
<v-btn variant="tonal" @click="publish">Commenter</v-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -33,7 +33,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
// import posts from "@/views/posts/posts.json";
|
|
||||||
|
|
||||||
import {useClient} from '@/plugins/api.js';
|
import {useClient} from '@/plugins/api.js';
|
||||||
import {defineProps, ref} from 'vue';
|
import {defineProps, ref} from 'vue';
|
||||||
@@ -57,5 +56,4 @@ const publish = async () => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"content": "40C28A05-2262-43F4-862A-09A4246A8DDE",
|
|
||||||
"portrait": "/images/usersmedia/anonyme/profilepictures/profileAnonymeSquare.png",
|
|
||||||
"created_by": "@marchy",
|
|
||||||
"created_at": "",
|
|
||||||
"message": "Hello World!",
|
|
||||||
"thumb_up_count": 0,
|
|
||||||
"thumb_down_count": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"content": "40C28A05-2262-43F4-862A-09A4246A8DDE",
|
|
||||||
"portrait": "/images/usersmedia/anonyme/profilepictures/profileAnonymeSquare.png",
|
|
||||||
"created_by": "@marchy",
|
|
||||||
"created_at": "",
|
|
||||||
"message": "Welcome to life!",
|
|
||||||
"thumb_up_count": 0,
|
|
||||||
"thumb_down_count": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"content": "40C28A05-2262-43F4-862A-09A4246A8DDE",
|
|
||||||
"portrait": "/images/usersmedia/anonyme/profilepictures/profileAnonymeSquare.png",
|
|
||||||
"created_by": "@marchy",
|
|
||||||
"created_at": "",
|
|
||||||
"message": "We love you!",
|
|
||||||
"thumb_up_count": 1,
|
|
||||||
"thumb_down_count": 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
Reference in New Issue
Block a user