From 1de0c882dd1163b2a7c467b7a0e72f89c3aa1a9f Mon Sep 17 00:00:00 2001 From: dyhj625 Date: Tue, 4 Feb 2025 15:56:08 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=B4=EB=93=9C=EB=A6=AC=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20=EB=B3=B4=EB=93=9C=EC=B9=B4?= =?UTF-8?q?=EB=93=9C=20=EC=9B=90=EB=B3=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 17 ++ package.json | 1 + src/components/list/BoardCard.vue | 210 ++++++++-------- src/components/list/BoardCardList.vue | 8 +- src/views/board/BoardList.vue | 288 ++++++++++++++-------- src/views/vacation/VacationManagement.vue | 274 ++++++++++---------- 6 files changed, 461 insertions(+), 337 deletions(-) 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/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 @@ + - +// 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 @@ diff --git a/src/views/board/BoardList.vue b/src/views/board/BoardList.vue index 89eb2e8..1b528c5 100644 --- a/src/views/board/BoardList.vue +++ b/src/views/board/BoardList.vue @@ -2,57 +2,96 @@
-
+
-
+
-
- -
- -
+ +
+
- - -
-
- + +
+ +
+ +
+
- - -
-
- -
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
번호제목작성자작성일조회수
{{ post.id }} + {{ post.title }} + + N + {{ post.author }}{{ post.date }}{{ post.views }}
@@ -62,19 +101,28 @@ + + diff --git a/src/views/vacation/VacationManagement.vue b/src/views/vacation/VacationManagement.vue index df74285..fae4aa9 100644 --- a/src/views/vacation/VacationManagement.vue +++ b/src/views/vacation/VacationManagement.vue @@ -1,75 +1,63 @@ + -