게시판 댓글, 프로필 수정

This commit is contained in:
Dang 2024-12-17 13:18:04 +09:00
parent 77f6dc4297
commit 742d371646
2 changed files with 32 additions and 4 deletions

View File

@ -21,7 +21,7 @@
<BoardComentArea v-if="comment" /> <BoardComentArea v-if="comment" />
</li> </li>
<li> <li>
<BoardProfile profileName=곤데리 :showDetail="false" :unknown="false"/> <BoardProfile :showDetail="false" :unknown="false" :likeClicked="true" :dislikeClicked="true"/>
<div class="mt-2">저도 궁금합니다.</div> <div class="mt-2">저도 궁금합니다.</div>
<button type="button" class="btn btn-text-primary" @click="toggleComment">답변달기</button> <button type="button" class="btn btn-text-primary" @click="toggleComment">답변달기</button>
<BoardComentArea v-if="comment" /> <BoardComentArea v-if="comment" />

View File

@ -32,10 +32,10 @@
</button> </button>
</template> </template>
<template v-else> <template v-else>
<button class="btn btn-label-primary btn-icon"> <button class="btn btn-label-primary btn-icon" :class=" likeClicked ? 'clicked' : '' ">
<i class="fa-regular fa-thumbs-up"></i> <span class="num">1</span> <i class="fa-regular fa-thumbs-up"></i> <span class="num">1</span>
</button> </button>
<button class="btn btn-label-danger btn-icon"> <button class="btn btn-label-danger btn-icon" :class=" dislikeClicked ? 'clicked' : '' ">
<i class="fa-regular fa-thumbs-down"></i> <span class="num">1</span> <i class="fa-regular fa-thumbs-down"></i> <span class="num">1</span>
</button> </button>
</template> </template>
@ -47,7 +47,7 @@
defineProps({ defineProps({
profileName : { profileName : {
type: String, type: String,
required: true, default: '익명',
}, },
unknown : { unknown : {
type: Boolean, type: Boolean,
@ -57,7 +57,17 @@ defineProps({
type: Boolean, type: Boolean,
default: true, default: true,
}, },
likeClicked : {
type : Boolean,
default : false,
},
dislikeClicked : {
type : Boolean,
default : false,
}
}); });
</script> </script>
<style scoped> <style scoped>
@ -72,4 +82,22 @@ defineProps({
.num { .num {
margin-left: 5px; margin-left: 5px;
} }
.btn-label-danger.clicked {
background-color: #e6381a;
}
.btn-label-danger.clicked i,
.btn-label-danger.clicked span {
color: #fff;
}
.btn-label-primary.clicked {
background-color: #5f61e6;
}
.btn-label-primary.clicked i,
.btn-label-primary.clicked span {
color : #fff;
}
</style> </style>