From b7ae5b8329d4bbcfee42ddb01dcac4f988b82b9c Mon Sep 17 00:00:00 2001 From: jjstyle Date: Wed, 27 May 2026 16:40:11 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B3=A0=EC=99=80=20=ED=96=84?= =?UTF-8?q?=EB=B2=84=EA=B1=B0=20=EB=B2=84=ED=8A=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 +++++ src/main/resources/static/css/common.css | 28 ++++++++++++++++++++++-- src/main/resources/static/js/sub.js | 3 ++- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 0967737..e5116e3 100644 --- a/pom.xml +++ b/pom.xml @@ -24,6 +24,12 @@ + + + org.springframework.boot + spring-boot-starter-actuator + + org.springframework.boot diff --git a/src/main/resources/static/css/common.css b/src/main/resources/static/css/common.css index bc8e2e5..4342069 100644 --- a/src/main/resources/static/css/common.css +++ b/src/main/resources/static/css/common.css @@ -149,6 +149,9 @@ label,input,button,select,img { vertical-align:middle } #top_nav_wrap .h_center .util { display:flex; align-items:center; justify-content:space-between; width:100% } +#top_logo { position:relative } +#top_logo a { display:inline-block } +#top_logo img { width:180px; height:auto } #top_nav_wrap .h_center .h_left { display:flex; align-items:center } #top_nav.sub li>a { color:#fff } #top_nav.sub li ul a { color:#888 } @@ -174,6 +177,16 @@ label,input,button,select,img { vertical-align:middle } #topmenuM.dark #m_navBtn span:before, #topmenuM.dark #m_navBtn span:after { background-color:#222 } +/* 서브 페이지 모바일 헤더 */ +#hd.sub #topmenuM { + background-color:#fff; + box-shadow:0 0 12px rgba(0,0,0,0.05); +} +#hd.sub #m_navBtn span:before, +#hd.sub #m_navBtn span:after { + background-color:#222 !important; +} + #m_logo { position:relative } #m_logo a { display:inline-block } #m_logo img { width:150px } @@ -294,13 +307,24 @@ body.page-inquiry #m_navBtn.on span:after { background-color: #fff; } +/* 서브 페이지 PC 로고 교체 */ +#top_nav_wrap.sub #top_logo img { + content: url('/img/common/logo_d.png') !important; + display: inline-block !important; +} +/* 서브 페이지 모바일 로고 교체 */ +#hd.sub #m_logo img { + content: url('/img/common/logo_d.png') !important; + display: inline-block !important; +} + /* PC 로고 교체 */ body.page-inquiry #top_logo img { - content: url('/img/common/logo_d.png'); + content: url('/img/common/logo_d.png') !important; } /* 모바일 로고 교체 */ body.page-inquiry #m_logo img { - content: url('/img/common/logo_d.png'); + content: url('/img/common/logo_d.png') !important; } /* 헤더 반응형 */ diff --git a/src/main/resources/static/js/sub.js b/src/main/resources/static/js/sub.js index bf081b2..c090327 100644 --- a/src/main/resources/static/js/sub.js +++ b/src/main/resources/static/js/sub.js @@ -1,8 +1,9 @@ /* ========================== Head & Footer */ $.get("/include/header").done(function (html) { + // main 클래스를 sub로 미리 교체 + html = html.replace('class="main"', 'class="sub"'); $("#hd").html(html); - $("#top_nav_wrap").removeClass("main").addClass("sub"); }); $.get("/include/footer").done(function (html) { $("#ft").html(html);