diff --git a/.env.dev b/.env.dev index 99081c1..f608ba3 100644 --- a/.env.dev +++ b/.env.dev @@ -2,4 +2,5 @@ VITE_DOMAIN = http://localhost:5173/ # VITE_LOGIN_URL = http://localhost:10325/ms/ # VITE_FILE_URL = http://localhost:10325/ms/ # VITE_API_URL = http://localhost:10325/api/ -VITE_API_URL = http://localhost:10325/test/ \ No newline at end of file +VITE_API_URL = http://localhost:10325/test/ +VITE_KAKAO_MAP_KEY=6f092e8f45ee81186bb6d8408f66a492 \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index a398f1c..8e2f1c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,8 @@ "vite-plugin-mkcert": "^1.17.6", "vue": "^3.5.13", "vue-flatpickr-component": "^11.0.5", - "vue-router": "^4.4.5" + "vue-router": "^4.4.5", + "vue3-kakao-maps": "^2.3.10" }, "devDependencies": { "@eslint/js": "^9.14.0", @@ -2544,6 +2545,12 @@ "graceful-fs": "^4.1.6" } }, + "node_modules/kakao.maps.d.ts": { + "version": "0.1.40", + "resolved": "https://registry.npmjs.org/kakao.maps.d.ts/-/kakao.maps.d.ts-0.1.40.tgz", + "integrity": "sha512-nX69MB1ok04epe3OqS+/tEeWBbU31GSQbvDPJmQRRltzzqn6t4jBsO5v1nzalUjCKzwcH2CptOc767NZ7Hbu3g==", + "license": "MIT" + }, "node_modules/keyv": { "version": "4.5.4", "dev": true, @@ -4142,6 +4149,15 @@ "version": "6.6.4", "license": "MIT" }, + "node_modules/vue3-kakao-maps": { + "version": "2.3.10", + "resolved": "https://registry.npmjs.org/vue3-kakao-maps/-/vue3-kakao-maps-2.3.10.tgz", + "integrity": "sha512-vzzxvdw1ZtyID4clA/LFg++Qf1uTq49ksnL3ejqbp/rB+WVRrulSQ0ja+L929VFehbQY628lJPsp9KwxC6VrNA==", + "license": "MIT", + "dependencies": { + "kakao.maps.d.ts": "^0.1.39" + } + }, "node_modules/which": { "version": "2.0.2", "dev": true, diff --git a/package.json b/package.json index 52c9503..2b5c030 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,8 @@ "vite-plugin-mkcert": "^1.17.6", "vue": "^3.5.13", "vue-flatpickr-component": "^11.0.5", - "vue-router": "^4.4.5" + "vue-router": "^4.4.5", + "vue3-kakao-maps": "^2.3.10" }, "devDependencies": { "@eslint/js": "^9.14.0", diff --git a/public/css/custom.css b/public/css/custom.css index c4bb01d..17633c9 100644 --- a/public/css/custom.css +++ b/public/css/custom.css @@ -44,13 +44,56 @@ margin-right: auto; } - .grayscaleImg { - filter: grayscale(100%); - } +.grayscaleImg { + filter: grayscale(100%); +} - - /* scrollbar 안보이게 */ - .scrollbar-none { - scrollbar-width: none; +/* scrollbar 안보이게 */ +.scrollbar-none { + scrollbar-width: none; +} + +/* project list */ + +.map { + top: -160px; + left: -5px; +} + +@keyframes sparkle { + 0% { + color: #ffcc00; } - \ No newline at end of file + 50% { + color: red; + } + 100% { + color: #ffcc00; + } +} + +.bxs-map { + animation: sparkle 1s infinite; /* 1초마다 반복 */ +} + +.popover-close { + position: absolute; + top: 1rem; + right: 1rem; + z-index: 2; + background-color: #fff !important; + border-radius: 0.5rem; + opacity: 1; + padding: 0.635rem; + box-shadow: 0 0.125rem 0.25rem rgba(161, 172, 184, 0.4); + transition: all 0.23s ease 0.1s; + transform: translate(23px, -25px); +} + +.popover-close:hover { + opacity: 1; + outline: none; + transform: translate(20px, -20px); +} + +/* project list end */ \ No newline at end of file diff --git a/src/common/formattedDate.js b/src/common/formattedDate.js new file mode 100644 index 0000000..01956d6 --- /dev/null +++ b/src/common/formattedDate.js @@ -0,0 +1,13 @@ +/** 날짜 포맷1 (YYYY-MM-DD HH:MM) */ +export const formattedDate = (dateString) => { + if (!dateString) return "날짜 없음"; + const dateObj = new Date(dateString); + return `${dateObj.getFullYear()}-${String(dateObj.getMonth() + 1).padStart(2, '0')}-${String(dateObj.getDate()).padStart(2, '0')} ${String(dateObj.getHours()).padStart(2, '0')}:${String(dateObj.getMinutes()).padStart(2, '0')}`; +}; + +/** 날짜 포맷2 (YYYY-MM-DD) */ +export const formatDate = (dateString) => { + if (!dateString) return "날짜 없음"; + const dateObj = new Date(dateString); + return `${dateObj.getFullYear()}-${String(dateObj.getMonth() + 1).padStart(2, '0')}-${String(dateObj.getDate()).padStart(2, '0')}`; +}; diff --git a/src/components/list/ProjectCard.vue b/src/components/list/ProjectCard.vue index 25195a1..8e1b6c4 100644 --- a/src/components/list/ProjectCard.vue +++ b/src/components/list/ProjectCard.vue @@ -26,25 +26,57 @@
{{ logData.createDate }}
- [{{ logData.creator }}] 프로젝트 등록 + [{{ logData.creator }}] 프로젝트 등록{{ logData.updateDate }}
- [{{ logData.updater }}] 프로젝트 수정 +{{ logData.updateDate }}
+ [{{ logData.updater }}] 프로젝트 수정 +