diff --git a/package-lock.json b/package-lock.json
index 7a47e84..b6cefde 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -17,6 +17,7 @@
"@vueup/vue-quill": "^1.2.0",
"axios": "^1.7.9",
"bootstrap": "^5.3.3",
+ "bootstrap-icons": "^1.11.3",
"dayjs": "^1.11.13",
"dompurify": "^3.2.3",
"flatpickr": "^4.6.13",
@@ -1890,6 +1891,22 @@
"@popperjs/core": "^2.11.8"
}
},
+ "node_modules/bootstrap-icons": {
+ "version": "1.11.3",
+ "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.11.3.tgz",
+ "integrity": "sha512-+3lpHrCw/it2/7lBL15VR0HEumaBss0+f/Lb6ZvHISn1mlK83jjFpooTLsMWbIjJMDjDjOExMsTxnXSIT4k4ww==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/twbs"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/bootstrap"
+ }
+ ],
+ "license": "MIT"
+ },
"node_modules/brace-expansion": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
diff --git a/package.json b/package.json
index 823ef27..866adaa 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
"@vueup/vue-quill": "^1.2.0",
"axios": "^1.7.9",
"bootstrap": "^5.3.3",
+ "bootstrap-icons": "^1.11.3",
"dayjs": "^1.11.13",
"dompurify": "^3.2.3",
"flatpickr": "^4.6.13",
diff --git a/src/components/board/BoardProfile.vue b/src/components/board/BoardProfile.vue
index d5091f5..2125e95 100644
--- a/src/components/board/BoardProfile.vue
+++ b/src/components/board/BoardProfile.vue
@@ -7,16 +7,13 @@
{{ profileName }}
- 2024.12.10 10:46
+ {{ date }}
-
+
{{ views }}
- {{ likes }}
-
-
- {{ dislikes }}
+ {{ comments }}
@@ -45,6 +42,7 @@
diff --git a/src/components/list/BoardCard.vue b/src/components/list/BoardCard.vue
index fe0eecc..1ddac0f 100644
--- a/src/components/list/BoardCard.vue
+++ b/src/components/list/BoardCard.vue
@@ -1,124 +1,142 @@
-
-
-
![이미지]()
-
-
-
- {{ category }}
-
-
-
- {{ title }}
-
-
-
-
-
-
{{ content }}
-
-
- {{ formattedDate }}
-
-
- {{ views || 0 }}
-
-
- {{ comments }}
-
-
- {{ likes }}
-
-
- {{ dislikes }}
-
-
-
-
+
+
+
+
+
![이미지]()
+
+
+
+
+
+
+ {{ category }}
+
+
+
+ {{ title }}
+
+
+
+
+
+
{{ content }}
+
+
+
{{ formattedDate }}
+
+
+
+ {{ views || 0 }}
+
+
+ {{ likes }}
+
+
+ {{ comments }}
+
+
+
+
+
+
-
+
-
+// computed 속성
+const contentColClass = computed(() => {
+ return props.img ? 'col-sm-10 col-12' : 'col-sm-12';
+});
-
+
+.card:hover {
+ transform: scale(1.02);
+}
+
+/* 텍스트 줄임 표시 */
+.str_wrap {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+}
+
+/* 이미지 스타일 */
+.img-fluid {
+ border-radius: 8px 0 0 8px;
+}
+
+/* 태그 배지 스타일 */
+.badge {
+ font-size: 0.8rem;
+ padding: 5px 10px;
+}
+
diff --git a/src/components/list/BoardCardList.vue b/src/components/list/BoardCardList.vue
index 430a73d..5b3c29a 100644
--- a/src/components/list/BoardCardList.vue
+++ b/src/components/list/BoardCardList.vue
@@ -1,10 +1,9 @@
-
-
+
-
+
goDetail(post.id)"
/>
-
diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue
index 89eb2e8..28aacfc 100644
--- a/src/views/board/BoardList.vue
+++ b/src/views/board/BoardList.vue
@@ -2,57 +2,98 @@
-
+
-
-
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+ | 번호 |
+ 제목 |
+ 작성자 |
+ 작성일 |
+ 조회수 |
+
+
+
+
+
+
+ | 공지 |
+
+ 📌 {{ notice.title }}
+
+
+ N
+ |
+ {{ notice.author }} |
+ {{ notice.date }} |
+ {{ notice.views }} |
+
+
+
+
+ | {{ post.id }} |
+
+ {{ post.title }}
+
+
+ N
+ |
+ {{ post.author }} |
+ {{ post.date }} |
+ {{ post.views }} |
+
+
+
@@ -62,19 +103,28 @@
+
+
diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue
index 18df4be..8f81baa 100644
--- a/src/views/board/BoardView.vue
+++ b/src/views/board/BoardView.vue
@@ -9,8 +9,8 @@
:boardId="currentBoardId"
:profileName="profileName"
:views="views"
- :likes="likes"
- :dislikes="dislikes"
+ :comments="comments"
+ :date="formattedBoardDate"
class="pb-6 border-bottom"
/>
@@ -49,8 +49,8 @@
:bigBtn="true"
:boardId="currentBoardId"
:commentId="null"
- :likeCount="currentLikeCount"
- :dislikeCount="currentDislikeCount"
+ :likeCount="likes"
+ :dislikeCount="dislikes"
@updateReaction="handleUpdateReaction"
/>
@@ -63,7 +63,7 @@
-->
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-