index로 변경

This commit is contained in:
pjs
2026-01-19 18:48:39 +09:00
parent 84f062c681
commit c0d026f896
4 changed files with 458 additions and 447 deletions

View File

@@ -1,6 +1,5 @@
package com.madeuhome.common.ctrl; package com.madeuhome.common.ctrl;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@@ -24,12 +23,13 @@ public class MenuController {
String requestURI = request.getRequestURI(); String requestURI = request.getRequestURI();
// 특정 URL 패턴에만 메뉴 추가 // 특정 URL 패턴에만 메뉴 추가
if (requestURI.endsWith("Intro.do") || requestURI.startsWith("/index") ) { /*
return menuService.getMenuHierarchy("MAIN"); * if (requestURI.endsWith("Intro.do") || requestURI.startsWith("/index") ) {
} * return menuService.getMenuHierarchy("MAIN"); }
*/
return new ArrayList<>(); return menuService.getMenuHierarchy("MAIN");
} }
} }

View File

@@ -5,7 +5,7 @@ import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession; import jakarta.servlet.http.HttpSession;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.GetMapping;
@Slf4j @Slf4j
@@ -19,16 +19,16 @@ public class WebHomeController extends ManagerDraftAction{
* @param response * @param response
* @return * @return
*/ */
@RequestMapping(value="/") @GetMapping("/")
public String homeIntro(HttpSession session,HttpServletRequest request) { public String homeIntro(HttpSession session,HttpServletRequest request) {
log.debug("WebHomeController homeIntro START"); log.debug("WebHomeController homeIntro START");
log.debug("WebHomeController homeIntro END"); log.debug("WebHomeController homeIntro END");
return "/intro"; return "/index";
} }
@RequestMapping(value="/index") @GetMapping("/index")
public String homeIndex(HttpSession session,HttpServletRequest request) { public String homeIndex(HttpSession session,HttpServletRequest request) {
log.debug("WebHomeController homeIndex START"); log.debug("WebHomeController homeIndex START");

View File

@@ -1,459 +1,470 @@
* { * {
box-sizing: border-box; box-sizing: border-box;
} }
body {
font-family: 'Noto Sans KR', sans-serif;
margin: 0;
background: #fafafa;
color: #222;
height: 100vh;
display: flex;
flex-direction: column;
}
/* Main container */ body {
.reservation-container { font-family: 'Noto Sans KR', sans-serif;
display: flex; margin: 0;
max-width: 1280px !important; background: #fafafa;
margin: 0 auto; color: #222;
gap: 20px; height: 100vh;
height: 100%; display: flex;
flex: 1; flex-direction: column;
padding: 20px 0; }
margin-top:65px;
}
.box { /* Main container */
background: #fff; .reservation-container {
border-radius: 16px; display: flex;
box-shadow: 0 2px 8px rgba(0,0,0,0.06); max-width: 1280px !important;
padding: 24px 16px; margin: 0 auto;
flex: 1 1 0; gap: 20px;
min-width: 260px; height: 100%;
display: flex; flex: 1;
flex-direction: column; padding: 20px 0;
height: fit-content; margin-top: 65px;
min-height: 600px; }
}
.step-title { .box {
color: #b23c3c; background: #fff;
font-weight: 700; border-radius: 16px;
font-size: 1.1em; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
margin-bottom: 12px; padding: 24px 16px;
letter-spacing: 0.02em; flex: 1 1 0;
transition: color 0.3s ease; min-width: 260px;
} display: flex;
flex-direction: column;
height: fit-content;
min-height: 600px;
}
.step-title.completed { .step-title {
color: #008000 !important; color: #b23c3c;
} font-weight: 700;
font-size: 1.1em;
margin-bottom: 12px;
letter-spacing: 0.02em;
transition: color 0.3s ease;
}
/* Service section */ .step-title.completed {
.service-list { color: #008000 !important;
flex: 1; }
margin-bottom: 24px;
}
.service-item {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 1.1em;
margin-bottom: 10px;
}
.service-item .del {
cursor: pointer;
color: #b23c3c;
margin-left: 8px;
font-size: 1.2em;
transition: color 0.3s ease, opacity 0.3s ease;
}
.service-item .del:hover {
color: #ff0000;
}
.service-item .del.disabled {
color: #ccc;
cursor: not-allowed;
opacity: 0.5;
}
.service-item .del.disabled:hover {
color: #ccc;
}
.service-item .price {
font-weight: bold;
color: #b23c3c;
}
/* Service count indicator */ /* Service section */
.service-count-info { .service-list {
font-size: 0.85em; flex: 1;
color: #888; margin-bottom: 24px;
margin-bottom: 8px; }
text-align: center;
padding: 4px 8px;
background: #f8f9fa;
border-radius: 4px;
}
.service-count-info.single { .service-item {
color: #ff8c00; display: flex;
background: #fff3e0; justify-content: space-between;
border: 1px solid #ffcc80; align-items: center;
} font-size: 1.1em;
margin-bottom: 10px;
}
.total { .service-item .del {
border-top: 1px solid #eee; cursor: pointer;
margin-top: auto; color: #b23c3c;
padding-top: 16px; margin-left: 8px;
display: flex; font-size: 1.2em;
justify-content: space-between; transition: color 0.3s ease, opacity 0.3s ease;
font-size: 1.1em; }
font-weight: bold;
}
.total .price {
color: #b23c3c;
}
.total small {
font-weight: normal;
color: #888;
font-size: 0.9em;
margin-right: 8px;
}
/* Calendar section */ .service-item .del:hover {
.calendar-box { color: #ff0000;
margin-bottom: 20px; }
}
.calendar-header {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.calendar-header button {
background: none;
border: none;
font-size: 1.2em;
cursor: pointer;
color: #b23c3c;
padding: 0 6px;
}
.calendar-table {
width: 100%;
border-collapse: collapse;
text-align: center;
margin-bottom: 8px;
}
.calendar-table th,
.calendar-table td {
width: 2em;
height: 2em;
padding: 2px;
font-size: 1em;
border-radius: 50%;
cursor: pointer;
transition: background 0.15s;
}
.calendar-table th {
color: #b23c3c;
font-weight: 500;
background: none;
}
.calendar-table td.selected {
background: #b23c3c;
color: #fff;
}
.calendar-table td.today {
border: 1.5px solid #b23c3c;
}
.calendar-table td:not(.selected):hover {
background: #f5eaea;
}
.calendar-table td.disabled {
color: #ccc;
pointer-events: none;
background: none;
}
/* Time slots */ .service-item .del.disabled {
.time-slots { color: #ccc;
display: flex; cursor: not-allowed;
flex-wrap: wrap; opacity: 0.5;
gap: 8px; }
margin-bottom: 12px;
}
.time-btn {
flex: 1 0 30%;
min-width: 80px;
padding: 8px 0;
border: 1px solid #b23c3c;
border-radius: 20px;
background: #fff;
color: #b23c3c;
font-size: 1em;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.time-btn.selected,
.time-btn:active {
background: #b23c3c;
color: #fff;
}
.time-btn:disabled {
color: #ccc;
border-color: #eee;
background: #f5f5f5;
cursor: not-allowed;
}
.person-count { .service-item .del.disabled:hover {
margin-top: 12px; color: #ccc;
font-size: 0.98em; }
color: #888;
}
/* Form section */ .service-item .price {
.form-group { font-weight: bold;
margin-bottom: 16px; color: #b23c3c;
} }
.form-group label {
display: block;
margin-bottom: 4px;
font-weight: 500;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 8px 10px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 1em;
resize: none;
transition: border-color 0.3s ease;
}
.form-group textarea {
min-height: 60px;
}
.checkbox-group { /* Service count indicator */
display: flex; .service-count-info {
align-items: center; font-size: 0.85em;
margin-bottom: 18px; color: #888;
font-size: 0.98em; margin-bottom: 8px;
} text-align: center;
padding: 4px 8px;
.checkbox-group input[type="checkbox"] { background: #f8f9fa;
margin-right: 8px; border-radius: 4px;
accent-color: #b23c3c; }
}
.submit-btn { .service-count-info.single {
width: 100%; color: #ff8c00;
padding: 14px 0; background: #fff3e0;
background: #ddd; border: 1px solid #ffcc80;
color: #888; }
border: none;
border-radius: 8px;
font-size: 1.1em;
font-weight: bold;
cursor: not-allowed;
transition: all 0.3s ease;
}
.submit-btn.step-progress {
background: linear-gradient(45deg, #ddd, #bbb);
color: #666;
font-size: 0.95em;
}
.submit-btn.ready {
background: #b23c3c;
color: #fff;
cursor: pointer;
animation: pulse 2s infinite;
}
@keyframes pulse { .total {
0% { transform: scale(1); } border-top: 1px solid #eee;
50% { transform: scale(1.02); } margin-top: auto;
100% { transform: scale(1); } padding-top: 16px;
} display: flex;
justify-content: space-between;
font-size: 1.1em;
font-weight: bold;
}
/* Phone message styles (common.js PhoneValidator용) */ .total .price {
.phone-message { color: #b23c3c;
font-size: 12px; }
margin-top: 5px;
padding: 4px 8px;
border-radius: 4px;
font-weight: 500;
transition: all 0.3s ease;
}
.phone-message.error {
color: #ff0000;
background-color: #ffebee;
border: 1px solid #ffcdd2;
}
.phone-message.warning {
color: #ff8c00;
background-color: #fff3e0;
border: 1px solid #ffcc80;
}
.phone-message.success {
color: #008000;
background-color: #f1f8e9;
border: 1px solid #c8e6c9;
}
.phone-message.info {
color: #2196f3;
background-color: #e3f2fd;
border: 1px solid #90caf9;
}
/* Birth date message styles */ .total small {
.birth-date-message { font-weight: normal;
font-size: 12px; color: #888;
margin-top: 5px; font-size: 0.9em;
padding: 4px 8px; margin-right: 8px;
border-radius: 4px; }
font-weight: 500;
transition: all 0.3s ease;
}
.birth-date-message.error {
color: #ff0000;
background-color: #ffebee;
border: 1px solid #ffcdd2;
}
.birth-date-message.warning {
color: #ff8c00;
background-color: #fff3e0;
border: 1px solid #ffcc80;
}
.birth-date-message.success {
color: #008000;
background-color: #f1f8e9;
border: 1px solid #c8e6c9;
}
.birth-date-message.info {
color: #2196f3;
background-color: #e3f2fd;
border: 1px solid #90caf9;
}
/* Responsive Design */ /* Calendar section */
@media (max-width: 1199.98px) { .calendar-box {
.reservation-container { margin-bottom: 20px;
max-width: 960px !important; }
gap: 16px;
padding: 20px 15px;
}
.box {
padding: 20px 14px;
}
}
@media (max-width: 991.98px) { .calendar-header {
.reservation-container { display: flex;
max-width: 720px !important; justify-content: center;
flex-direction: column; align-items: center;
gap: 24px; gap: 8px;
height: auto; margin-bottom: 8px;
padding: 20px 15px; }
}
.box {
min-height: unset;
min-width: unset;
}
}
@media (max-width: 767.98px) { .calendar-header button {
.reservation-container { background: none;
max-width: 540px !important; border: none;
padding: 15px; font-size: 1.2em;
gap: 20px; cursor: pointer;
} color: #b23c3c;
.box { padding: 0 6px;
padding: 16px 12px; }
}
.calendar-table th,
.calendar-table td {
width: 1.8em;
height: 1.8em;
}
.time-btn {
min-width: 70px;
font-size: 0.95em;
}
}
@media (max-width: 575.98px) { .calendar-table {
.reservation-container { width: 100%;
max-width: 100% !important; border-collapse: collapse;
padding: 10px; text-align: center;
gap: 16px; margin-bottom: 8px;
} }
.box {
padding: 16px 8px; .calendar-table th,
} .calendar-table td {
.calendar-table th, width: 2em;
.calendar-table td { height: 2em;
width: 1.5em; padding: 2px;
height: 1.5em; font-size: 1em;
font-size: 0.9em; border-radius: 50%;
} cursor: pointer;
.time-btn { transition: background 0.15s;
min-width: 60px; }
font-size: 0.9em;
padding: 6px 0; .calendar-table th {
} color: #b23c3c;
.step-title { font-weight: 500;
font-size: 1em; background: none;
} }
.service-item {
font-size: 1em; .calendar-table td.selected {
} background: #b23c3c;
} color: #fff;
.calendar-table td.disabled { }
color: #ccc;
cursor: not-allowed; .calendar-table td.today {
pointer-events: none; border: 1.5px solid #b23c3c;
background: none !important; }
}
.calendar-table td:not(.selected):hover {
.calendar-table td.disabled:hover { background: #f5eaea;
background: none !important; }
cursor: not-allowed !important;
} .calendar-table td.disabled {
color: #ccc;
pointer-events: none;
background: none;
}
/* Time slots */
.time-slots {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 12px;
}
.time-btn {
flex: 1 0 30%;
min-width: 80px;
padding: 8px 0;
border: 1px solid #b23c3c;
border-radius: 20px;
background: #fff;
color: #b23c3c;
font-size: 1em;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.time-btn.selected,
.time-btn:active {
background: #b23c3c;
color: #fff;
}
.time-btn:disabled {
color: #ccc;
border-color: #eee;
background: #f5f5f5;
cursor: not-allowed;
}
.person-count {
margin-top: 12px;
font-size: 0.98em;
color: #888;
}
/* Form section */
.form-group {
margin-bottom: 16px;
}
.form-group label {
display: block;
margin-bottom: 4px;
font-weight: 500;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 8px 10px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 1em;
resize: none;
transition: border-color 0.3s ease;
}
.form-group textarea {
min-height: 60px;
}
.checkbox-group {
display: flex;
align-items: center;
margin-bottom: 18px;
font-size: 0.98em;
}
.checkbox-group input[type="checkbox"] {
margin-right: 8px;
accent-color: #b23c3c;
}
.submit-btn {
width: 100%;
padding: 14px 0;
background: #ddd;
color: #888;
border: none;
border-radius: 8px;
font-size: 1.1em;
font-weight: bold;
cursor: not-allowed;
transition: all 0.3s ease;
}
.submit-btn.step-progress {
background: linear-gradient(45deg, #ddd, #bbb);
color: #666;
font-size: 0.95em;
}
.submit-btn.ready {
background: #b23c3c;
color: #fff;
cursor: pointer;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.02); }
100% { transform: scale(1); }
}
/* Phone message styles (common.js PhoneValidator용) */
.phone-message {
font-size: 12px;
margin-top: 5px;
padding: 4px 8px;
border-radius: 4px;
font-weight: 500;
transition: all 0.3s ease;
}
.phone-message.error {
color: #ff0000;
background-color: #ffebee;
border: 1px solid #ffcdd2;
}
.phone-message.warning {
color: #ff8c00;
background-color: #fff3e0;
border: 1px solid #ffcc80;
}
.phone-message.success {
color: #008000;
background-color: #f1f8e9;
border: 1px solid #c8e6c9;
}
.phone-message.info {
color: #2196f3;
background-color: #e3f2fd;
border: 1px solid #90caf9;
}
/* Birth date message styles */
.birth-date-message {
font-size: 12px;
margin-top: 5px;
padding: 4px 8px;
border-radius: 4px;
font-weight: 500;
transition: all 0.3s ease;
}
.birth-date-message.error {
color: #ff0000;
background-color: #ffebee;
border: 1px solid #ffcdd2;
}
.birth-date-message.warning {
color: #ff8c00;
background-color: #fff3e0;
border: 1px solid #ffcc80;
}
.birth-date-message.success {
color: #008000;
background-color: #f1f8e9;
border: 1px solid #c8e6c9;
}
.birth-date-message.info {
color: #2196f3;
background-color: #e3f2fd;
border: 1px solid #90caf9;
}
/* Disabled calendar cell - 강화된 스타일 */
.calendar-table td.disabled {
color: #ccc;
cursor: not-allowed;
pointer-events: none;
background: none !important;
}
.calendar-table td.disabled:hover {
background: none !important;
cursor: not-allowed !important;
}
/* Responsive Design */
@media (max-width: 1199.98px) {
.reservation-container {
max-width: 960px !important;
gap: 16px;
padding: 20px 15px;
}
.box {
padding: 20px 14px;
}
}
@media (max-width: 991.98px) {
.reservation-container {
max-width: 720px !important;
flex-direction: column;
gap: 24px;
height: auto;
padding: 20px 15px;
}
.box {
min-height: unset;
min-width: unset;
}
}
@media (max-width: 767.98px) {
.reservation-container {
max-width: 540px !important;
padding: 15px;
gap: 20px;
}
.box {
padding: 16px 12px;
}
.calendar-table th,
.calendar-table td {
width: 1.8em;
height: 1.8em;
}
.time-btn {
min-width: 70px;
font-size: 0.95em;
}
}
@media (max-width: 575.98px) {
.reservation-container {
max-width: 100% !important;
padding: 10px;
gap: 16px;
}
.box {
padding: 16px 8px;
}
.calendar-table th,
.calendar-table td {
width: 1.5em;
height: 1.5em;
font-size: 0.9em;
}
.time-btn {
min-width: 60px;
font-size: 0.9em;
padding: 6px 0;
}
.step-title {
font-size: 1em;
}
.service-item {
font-size: 1em;
}
}

View File

@@ -23,7 +23,7 @@
<meta property="og:description" content="설명문구"> <meta property="og:description" content="설명문구">
<!-- 사이트등록및소유확인 --> <!-- 사이트등록및소유확인 -->
<meta name="naver-site-verification" content="" /> <meta name="naver-site-verification" content="8720c03a4463520a0bd0979a3a743ff8ef0d8a03" />
<title>메이드유</title> <title>메이드유</title>