최초 세팅

This commit is contained in:
bd091
2025-10-18 11:02:29 +09:00
commit d2d07f57ac
452 changed files with 63476 additions and 0 deletions

View File

@@ -0,0 +1,408 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{/web/layout/layout}">
<th:block layout:fragment="layoutCss">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* 전체 기본 스타일 */
html, body {
height: 100vh;
margin: 0;
padding: 0;
font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
background-color: #f8f9fa;
color: #1a1a1a;
line-height: 1.6;
overflow-x: hidden;
font-size: 16px;
}
/* 메인 컨테이너 */
.container {
max-width: 1280px;
width: 100%;
height: calc(100vh - 300px); /* 헤더/푸터 공간 확보 */
min-height: calc(100vh - 300px);
margin: 0 auto;
box-sizing: border-box;
display: flex;
flex-direction: column;
gap: 1.5rem;
}
/* 상단 헤더 영역 */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
background: white;
border-radius: 16px;
box-shadow: 0 2px 16px rgba(0,0,0,0.06);
border-bottom: 3px solid #C60B24;
flex-shrink: 0;
}
.page-title {
font-size: clamp(1.5rem, 3vw, 1.875rem); /* 24px ~ 30px */
font-weight: 600;
color: #1a1a1a;
margin: 0;
letter-spacing: -0.025em;
}
/* 하단 메인 콘텐츠 영역 (사이드바 + 메인) */
.content-wrapper {
flex: 1;
display: flex;
gap: 1.5rem;
min-height: 0;
}
/* 좌측 카테고리 사이드바 */
.sidebar {
width: 280px;
min-width: 250px;
flex-shrink: 0;
background: white;
border-radius: 16px;
box-shadow: 0 2px 16px rgba(0,0,0,0.06);
height: fit-content;
max-height: 100%;
overflow-y: auto;
position: sticky;
top: 0;
}
.sidebar-header {
padding: 1.25rem 1.5rem;
border-bottom: 1px solid #e9ecef;
font-size: 1.125rem; /* 18px */
font-weight: 600;
color: #374151;
}
.category-list {
list-style: none;
padding: 1rem;
}
.category-item {
margin-bottom: 0.375rem;
}
.category-link {
display: block;
padding: 0.875rem 1rem;
text-decoration: none;
color: #6b7280;
border-radius: 10px;
transition: all 0.2s ease;
border: 1px solid transparent;
cursor: pointer;
font-size: 0.95rem; /* 15.2px */
font-weight: 500;
}
.category-link:hover {
background-color: #f9fafb;
color: #C60B24;
border-color: #f3f4f6;
transform: translateX(2px);
}
.category-link.active {
background-color: rgba(198, 11, 36, 0.08);
color: #C60B24;
border-color: #C60B24;
border-left: 4px solid #C60B24;
font-weight: 600;
}
/* 메인 콘텐츠 영역 */
.main-content {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
height: 100%;
}
/* 스크롤 가능한 서비스 카드 컨테이너 */
.services-list {
flex: 1;
overflow-y: auto;
padding-right: 0.5rem;
min-height: 0;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
gap: 1.25rem;
padding-bottom: 2rem;
}
.service-card {
background: white;
border-radius: 16px;
padding: 1.75rem;
box-shadow: 0 2px 16px rgba(0,0,0,0.06);
transition: all 0.3s ease;
border: 1px solid #f1f5f9;
}
.service-card:hover {
transform: translateY(-6px);
box-shadow: 0 8px 32px rgba(0,0,0,0.12);
border-color: #C60B24;
}
.service-title {
font-size: 1.375rem; /* 22px */
font-weight: 600;
color: #1a1a1a;
margin-bottom: 0.5rem;
letter-spacing: -0.025em;
}
.service-description {
color: #6b7280;
margin-bottom: 1rem;
line-height: 1.5;
font-size: 0.9375rem; /* 15px */
}
.service-price {
font-size: 1.5rem; /* 24px */
font-weight: 700;
color: #C60B24;
text-align: right;
}
.cancel-price {
font-size: 1.125rem; /* 18px */
font-weight: 400;
color: #9ca3af;
text-align: right;
text-decoration: line-through;
}
/* 로딩 스타일 */
.loading {
text-align: center;
padding: 2rem;
color: #6b7280;
font-size: 0.9375rem; /* 15px */
}
.error-message {
text-align: center;
padding: 2rem;
color: #dc2626;
font-size: 0.9375rem; /* 15px */
}
/* 스크롤바 커스텀 스타일링 */
.services-list::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
width: 6px;
}
.services-list::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
background: #f8fafc;
border-radius: 3px;
}
.services-list::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 3px;
}
.services-list::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
background: #C60B24;
}
/* 반응형 디자인 */
@media (max-width: 1024px) {
.container {
max-width: 100%;
padding: 1rem;
gap: 1rem;
}
.sidebar {
width: 240px;
min-width: 220px;
}
.services-grid {
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 1rem;
}
.header {
padding: 1.25rem 1.5rem;
}
.page-title {
font-size: clamp(1.375rem, 2.8vw, 1.75rem); /* 22px ~ 28px */
}
}
@media (max-width: 768px) {
.container {
flex-direction: column;
padding: 1rem;
gap: 1rem;
height: auto;
min-height: calc(100vh - 300px);
}
.content-wrapper {
flex-direction: column;
gap: 1rem;
}
.sidebar {
width: 100%;
position: static;
order: 1;
flex-shrink: 0;
max-height: none;
}
.category-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 0.5rem;
padding: 1rem;
}
.category-link {
text-align: center;
padding: 0.75rem 0.5rem;
font-size: 0.875rem; /* 14px */
}
.main-content {
order: 2;
flex: 1;
height: auto;
min-height: 0;
}
.services-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.header {
padding: 1rem 1.5rem;
border-radius: 12px;
}
.page-title {
font-size: clamp(1.25rem, 2.5vw, 1.5rem); /* 20px ~ 24px */
}
.service-title {
font-size: 1.25rem; /* 20px */
}
.service-price {
font-size: 1.375rem; /* 22px */
}
}
@media (max-width: 480px) {
.container {
padding: 0.75rem;
}
.header {
padding: 0.875rem 1rem;
}
.page-title {
font-size: clamp(1.125rem, 2.2vw, 1.375rem); /* 18px ~ 22px */
}
.sidebar-header {
font-size: 1rem; /* 16px */
padding: 1rem 1.25rem;
}
.service-card {
padding: 1.25rem;
}
}
</style>
</th:block>
<th:block layout:fragment="layout_top_script">
<script th:inline="javascript">
// 서버에서 전달받은 파라미터들을 전역 변수로 설정
window.pageParams = {
categoryDivCd: /*[[${param.categoryDivCd}]]*/ '',
categoryNo: /*[[${param.categoryNo}]]*/ ''
};
// 빈 값 처리
if (!window.pageParams.categoryDivCd || window.pageParams.categoryDivCd === 'null') {
window.pageParams.categoryDivCd = 'SERVICE'; // 기본값
}
if (!window.pageParams.categoryNo || window.pageParams.categoryNo === 'null') {
window.pageParams.categoryNo = '';
}
console.log('페이지 파라미터:', window.pageParams);
</script>
</th:block>
<th:block layout:fragment="layoutContent">
<div class="container">
<!-- 상단 헤더 영역 -->
<div class="header">
<h2 class="page-title">시술안내/가격</h2>
</div>
<!-- 하단 콘텐츠 영역 (사이드바 + 메인) -->
<div class="content-wrapper">
<!-- 좌측 카테고리 사이드바 -->
<aside class="sidebar">
<div class="sidebar-header">Category</div>
<ul class="category-list" id="category-list">
<li class="category-item">
<div class="loading">카테고리 로딩 중...</div>
</li>
</ul>
</aside>
<!-- 메인 콘텐츠 -->
<main class="main-content">
<!-- 스크롤 가능한 서비스 카드 컨테이너 -->
<div class="services-list">
<div class="services-grid" id="services-grid">
<div class="loading">서비스 정보 로딩 중...</div>
</div>
</div>
</main>
</div>
</div>
</th:block>
<th:block layout:fragment="layoutContentScript">
<script src="/js/web/service/serviceInfo.js"></script>
</th:block>
</html>