first commit 2

This commit is contained in:
hmw1001
2026-06-11 18:47:38 +09:00
parent c768729ce6
commit 6f534e33a6
11095 changed files with 1595758 additions and 0 deletions
@@ -0,0 +1,78 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="'.G5_THEME_URL.'/shop/rb.layout_hd/Trend04/style.css?ver='.G5_SERVER_TIME.'">', 0);
add_javascript('<script src="'.G5_THEME_URL.'/shop/rb.layout_hd/Trend04/script.js?ver='.G5_SERVER_TIME.'"></script>', 1);
?>
<header id="site-header" class="trend04-header">
<div class="header-inner container">
<div class="header-logo">
<a href="<?php echo G5_SHOP_URL; ?>/">
<!-- 💡 [수정] 로고 이미지 경로 변경 -->
<img src="<?php echo G5_THEME_URL; ?>/img/logo/logo.jpg" alt="<?php echo $config['cf_title']; ?>">
</a>
</div>
<nav class="header-gnb">
<ul>
<?php
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where length(ca_id) = 2 and ca_use = '1' order by ca_order, ca_id ";
$result = sql_query($sql);
while ($row = sql_fetch_array($result)) {
echo '<li><a href="'.G5_SHOP_URL.'/list.php?ca_id='.$row['ca_id'].'">'.get_text($row['ca_name']).'</a></li>';
}
?>
</ul>
</nav>
<div class="header-utils">
<ul>
<?php if ($is_member) { ?>
<li><a href="<?php echo G5_BBS_URL; ?>/logout.php">LOGOUT</a></li>
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php">MY PAGE</a></li>
<?php } else { ?>
<li><a href="<?php echo G5_BBS_URL; ?>/login.php">LOGIN</a></li>
<li><a href="<?php echo G5_BBS_URL; ?>/register.php">JOIN</a></li>
<?php } ?>
<li><a href="<?php echo G5_SHOP_URL; ?>/cart.php">CART</a></li>
</ul>
</div>
<button type="button" class="mobile-menu-trigger">
<span></span>
<span></span>
<span></span>
</button>
</div>
<div class="mobile-menu-panel">
<div class="mobile-menu-header">
<button type="button" class="mobile-menu-close">&times;</button>
</div>
<nav class="mobile-gnb">
<ul>
<?php
$sql = " select ca_id, ca_name from {$g5['g5_shop_category_table']} where length(ca_id) = 2 and ca_use = '1' order by ca_order, ca_id ";
$result = sql_query($sql);
while ($row = sql_fetch_array($result)) {
echo '<li><a href="'.G5_SHOP_URL.'/list.php?ca_id='.$row['ca_id'].'">'.get_text($row['ca_name']).'</a></li>';
}
?>
</ul>
</nav>
<div class="mobile-utils">
<ul>
<?php if ($is_member) { ?>
<li><a href="<?php echo G5_BBS_URL; ?>/logout.php">LOGOUT</a></li>
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php">MY PAGE</a></li>
<?php } else { ?>
<li><a href="<?php echo G5_BBS_URL; ?>/login.php">LOGIN</a></li>
<li><a href="<?php echo G5_BBS_URL; ?>/register.php">JOIN</a></li>
<?php } ?>
<li><a href="<?php echo G5_SHOP_URL; ?>/cart.php">CART</a></li>
</ul>
</div>
</div>
</header>
@@ -0,0 +1,15 @@
document.addEventListener('DOMContentLoaded', function () {
const trigger = document.querySelector('.mobile-menu-trigger');
const panel = document.querySelector('.mobile-menu-panel');
const closeBtn = document.querySelector('.mobile-menu-close');
if (trigger && panel && closeBtn) {
trigger.addEventListener('click', function () {
panel.classList.add('active');
});
closeBtn.addEventListener('click', function () {
panel.classList.remove('active');
});
}
});
@@ -0,0 +1,174 @@
/* Trend04 Header Style - Luxury & Elegant */
#site-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 80px;
background-color: rgba(15, 15, 15, 0.8); /* 반투명 어두운 배경 */
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
z-index: 1000;
/* font-family: 'Playfair Display', serif; */ /* 💡 [수정] 관리자 설정 폰트 사용을 위해 주석 처리 */
}
.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 100%;
padding: 0 40px;
}
.header-logo img {
height: 30px;
width: auto;
filter: brightness(0) invert(1); /* 로고를 흰색으로 */
}
.header-gnb ul {
display: flex;
gap: 50px;
margin: 0;
padding: 0;
list-style: none;
}
.header-gnb a {
text-decoration: none;
color: #e0e0e0;
font-size: 1rem;
letter-spacing: 1px;
transition: color 0.3s;
}
.header-gnb a:hover {
color: #d4af37; /* 골드 색상 */
}
.header-utils ul {
display: flex;
align-items: center;
gap: 25px;
margin: 0;
padding: 0;
list-style: none;
}
.header-utils a {
text-decoration: none;
color: #aaa;
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.header-utils a:hover {
color: #fff;
}
/* 모바일 메뉴 */
.mobile-menu-trigger,
.mobile-menu-panel {
display: none;
}
@media (max-width: 1024px) {
.header-inner {
padding: 0 20px;
}
.header-gnb,
.header-utils {
display: none;
}
.mobile-menu-trigger {
display: flex;
flex-direction: column;
justify-content: space-around;
width: 30px;
height: 25px;
background: transparent;
border: none;
cursor: pointer;
padding: 0;
}
.mobile-menu-trigger span {
display: block;
width: 100%;
height: 2px;
background-color: #fff;
}
.mobile-menu-panel {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #0f0f0f;
color: #fff;
transform: scaleY(0);
transform-origin: top;
transition: transform 0.4s ease;
padding: 40px;
z-index: 1100;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.mobile-menu-panel.active {
transform: scaleY(1);
}
.mobile-menu-header {
position: absolute;
top: 20px;
right: 20px;
}
.mobile-menu-close {
font-size: 3rem;
color: #fff;
background: none;
border: none;
cursor: pointer;
}
.mobile-gnb ul {
flex-direction: column;
gap: 30px;
padding: 0;
list-style: none;
text-align: center;
}
.mobile-gnb a {
font-size: 2rem;
color: #fff;
text-decoration: none;
font-weight: 400;
}
.mobile-utils {
margin-top: 50px;
}
.mobile-utils ul {
display: flex;
gap: 20px;
list-style: none;
padding: 0;
}
.mobile-utils a {
color: #aaa;
text-decoration: none;
font-size: 1rem;
}
}