From 45fdfb640e8e3fc2603b9a72aef783f6a450ef47 Mon Sep 17 00:00:00 2001 From: art Date: Tue, 30 Jun 2026 16:13:52 +0900 Subject: [PATCH] =?UTF-8?q?feat(redesign):=20=EB=B9=88=EC=83=81=ED=83=9C?= =?UTF-8?q?=20=ED=8C=8C=ED=8E=B8=202=EC=A2=85=20+=20=EB=AA=A9=EB=A1=9D=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20include?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fragments/posts-empty.jspf·recruit-empty.jspf 신설(.empty-state). CTA href 실제 라우트로 교정(/posts/new·/recruit/new 단수). posts-list·recruit-list 빈 분기에 include. recruit-list는 서버 초기 빈상태=파편 / 클라필터 0건=기존 #recruit-empty div 역할 분리, 필터 JS 무수정. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../WEB-INF/views/fragments/posts-empty.jspf | 20 ++++++++++++++++++ .../views/fragments/recruit-empty.jspf | 21 +++++++++++++++++++ src/main/webapp/WEB-INF/views/posts-list.jsp | 2 +- .../webapp/WEB-INF/views/recruit-list.jsp | 5 ++++- 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 src/main/webapp/WEB-INF/views/fragments/posts-empty.jspf create mode 100644 src/main/webapp/WEB-INF/views/fragments/recruit-empty.jspf diff --git a/src/main/webapp/WEB-INF/views/fragments/posts-empty.jspf b/src/main/webapp/WEB-INF/views/fragments/posts-empty.jspf new file mode 100644 index 0000000..0f8acfb --- /dev/null +++ b/src/main/webapp/WEB-INF/views/fragments/posts-empty.jspf @@ -0,0 +1,20 @@ +<%-- posts-empty.jspf — 포스팅 목록 빈 상태 파편 + 사용: posts-list.jsp의 posts.isEmpty() 분기에서 include + 필요: bibimbap.css (.empty-state 클래스) +--%> +
+ +

아직 등록된 포스트가 없어요

+

개발 일지, 팁, 질문 무엇이든 좋아요. 커뮤니티의 첫 글을 남겨보세요.

+ +
diff --git a/src/main/webapp/WEB-INF/views/fragments/recruit-empty.jspf b/src/main/webapp/WEB-INF/views/fragments/recruit-empty.jspf new file mode 100644 index 0000000..7d67819 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/fragments/recruit-empty.jspf @@ -0,0 +1,21 @@ +<%-- recruit-empty.jspf — 팀원 모집 목록 빈 상태 파편 + 사용: recruit-list.jsp의 recruitPosts.isEmpty() 분기에서 include + 필요: bibimbap.css (.empty-state 클래스) +--%> +
+ +

아직 올라온 모집글이 없어요

+

함께 만들 기획·아트·프로그래머를 찾고 있다면, 첫 모집글을 올려 팀을 시작해 보세요.

+ +
diff --git a/src/main/webapp/WEB-INF/views/posts-list.jsp b/src/main/webapp/WEB-INF/views/posts-list.jsp index f4c7ced..fb2c49e 100644 --- a/src/main/webapp/WEB-INF/views/posts-list.jsp +++ b/src/main/webapp/WEB-INF/views/posts-list.jsp @@ -240,7 +240,7 @@ <% if (posts.isEmpty()) { %> -
아직 등록된 포스트가 없습니다.
+ <%@ include file="fragments/posts-empty.jspf" %> <% } else { %>
<% for (PostData post : posts) { %> diff --git a/src/main/webapp/WEB-INF/views/recruit-list.jsp b/src/main/webapp/WEB-INF/views/recruit-list.jsp index 8da5e4f..5ec0dc3 100644 --- a/src/main/webapp/WEB-INF/views/recruit-list.jsp +++ b/src/main/webapp/WEB-INF/views/recruit-list.jsp @@ -315,7 +315,10 @@ } %>
-
" id="recruit-empty">아직 올라온 팀원 모집글이 없습니다.
+ <% if (recruitPosts.isEmpty()) { %> + <%@ include file="fragments/recruit-empty.jspf" %> + <% } %> +
아직 올라온 팀원 모집글이 없습니다.