From bb990bc5d82be7a9f3aa4da82c2b0e080dd1f1cf Mon Sep 17 00:00:00 2001 From: BowWowBow Date: Thu, 19 Dec 2024 18:03:06 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85,=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=ED=94=84=EB=A1=A0=ED=8A=B8=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stockm8/controller/UserController.java | 12 +- .../src/main/webapp/WEB-INF/views/main.jsp | 49 ++-- .../main/webapp/WEB-INF/views/user/signin.jsp | 246 +++++++++++------- .../main/webapp/WEB-INF/views/user/signup.jsp | 233 ++++++++++++----- .../css/stockmate-removebg-preview.png | Bin 0 -> 46109 bytes 5 files changed, 350 insertions(+), 190 deletions(-) create mode 100644 stockMate/src/main/webapp/resources/css/stockmate-removebg-preview.png diff --git a/stockMate/src/main/java/com/stockm8/controller/UserController.java b/stockMate/src/main/java/com/stockm8/controller/UserController.java index df31de6..e080f09 100644 --- a/stockMate/src/main/java/com/stockm8/controller/UserController.java +++ b/stockMate/src/main/java/com/stockm8/controller/UserController.java @@ -341,14 +341,14 @@ public void changePasswordPOST( // 비밀번호 찾기 - GET - @RequestMapping(value = "/findPassword", method = RequestMethod.GET) + @RequestMapping(value = "/findpassword", method = RequestMethod.GET) public String findPasswordGet() { - return "/user/findPassword"; // 비밀번호 찾기 페이지로 이동 + return "/user/findpassword"; // 비밀번호 찾기 페이지로 이동 } // 비밀번호 찾기 - POST - @RequestMapping(value = "/findPassword", method = RequestMethod.POST) - public String findPasswordPost(@RequestParam("email") String email, + @RequestMapping(value = "/findpassword", method = RequestMethod.POST) + public String findpasswordPost(@RequestParam("email") String email, @RequestParam("name") String name, Model model) { try { @@ -364,13 +364,13 @@ public String findPasswordPost(@RequestParam("email") String email, // 비밀번호가 일치하지 않으면 오류 메시지 추가 logger.info("비밀번호 찾기 실패: 이메일 또는 이름이 일치하지 않음"); // 실패 로그 model.addAttribute("errorMessage", "이메일 또는 이름이 일치하지 않습니다."); - return "/user/findPassword"; // 비밀번호 찾기 페이지로 다시 이동 + return "/user/findpassword"; // 비밀번호 찾기 페이지로 다시 이동 } } catch (Exception e) { e.printStackTrace(); logger.error("비밀번호 찾기 처리 중 오류 발생", e); // 예외 로그 추가 model.addAttribute("errorMessage", "비밀번호 찾기 처리 중 오류가 발생했습니다."); - return "/user/findPassword"; // 오류 발생 시 비밀번호 찾기 페이지로 돌아감 + return "/user/findpassword"; // 오류 발생 시 비밀번호 찾기 페이지로 돌아감 } } diff --git a/stockMate/src/main/webapp/WEB-INF/views/main.jsp b/stockMate/src/main/webapp/WEB-INF/views/main.jsp index 1e78dad..f77784c 100644 --- a/stockMate/src/main/webapp/WEB-INF/views/main.jsp +++ b/stockMate/src/main/webapp/WEB-INF/views/main.jsp @@ -22,7 +22,7 @@ body { /* Fullscreen Header Section */ .header { - height: 100vh; + height: 87vh; display: flex; flex-direction: column; justify-content: center; @@ -40,7 +40,7 @@ body { left: 0; width: 100%; height: 100%; - background: url('resources/css/stockmate.png') no-repeat center center/contain; + background: url('resources/css/stockmate-removebg-preview.png') no-repeat center center/contain; opacity: 0.1; z-index: 0; } @@ -63,7 +63,7 @@ body { .nav { display: flex; justify-content: center; - padding: 15px 0; + padding: 10px 0; background: #333333; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } @@ -71,13 +71,14 @@ body { .nav a { color: #ffffff; text-decoration: none; - margin: 0 15px; - padding: 10px 20px; + margin: 10px 15px; + padding: 15px 25px; font-weight: bold; border: 2px solid #007BFF; - border-radius: 5px; + border-radius: 10px; transition: all 0.3s ease; box-shadow: 0 0 10px #007BFF, 0 0 20px #0056b3; + font-size: 16px; } .nav a:hover { @@ -90,7 +91,6 @@ body { /* Footer */ .footer { background: #333333; - color: #ffffff; padding: 20px 10px; text-align: center; font-size: 0.9rem; @@ -98,14 +98,15 @@ body { } .footer a { - color: #007BFF; + color: #fff; text-decoration: none; transition: color 0.3s; + margin: 5px 5px; } .footer a:hover { - color: #0056b3; - text-decoration: underline; + color: #007BFF; +/* text-decoration: underline; */ } /* 모달 기본 스타일 */ @@ -153,6 +154,8 @@ body { color: red; } + + @keyframes fadeIn { from { background-color: rgba(0, 0, 0, 0); @@ -175,13 +178,8 @@ body { - -
-

Warehouse Management Solutions

-

스마트한 재고 관리와 최적화된 물류 시스템을 제공합니다.

-
- + + + + +
+

Warehouse Management Solutions

+

스마트한 재고 관리와 최적화된 물류 시스템을 제공합니다.

+
+ + @@ -270,4 +279,4 @@ body { } - + \ No newline at end of file diff --git a/stockMate/src/main/webapp/WEB-INF/views/user/signin.jsp b/stockMate/src/main/webapp/WEB-INF/views/user/signin.jsp index 3e6311b..7e740c5 100644 --- a/stockMate/src/main/webapp/WEB-INF/views/user/signin.jsp +++ b/stockMate/src/main/webapp/WEB-INF/views/user/signin.jsp @@ -1,108 +1,164 @@ <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> + - - -로그인 - + + -.login-container button { - padding: 12px; - background-color: #6a11cb; - color: #ffffff; - border: none; - border-radius: 8px; - font-size: 16px; - cursor: pointer; - transition: background-color 0.3s; -} -.login-container button:hover { - background-color: #2575fc; -} + <%-- 에러 메시지 표시 --%> + +
${errorMessage}
+
+ + <%-- 성공 메시지 표시 --%> + +
${successMessage}
+
+ + -.links { - margin-top: 15px; - text-align: center; -} +
+ + + + -.links a { - color: #6a11cb; - text-decoration: none; - font-size: 14px; - margin: 0 10px; -} +