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,79 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
add_stylesheet('<link rel="stylesheet" href="'.G5_THEME_URL.'/shop/rb.layout_hd/Trend05/style.css?ver='.G5_SERVER_TIME.'">', 0);
add_javascript('<script src="'.G5_THEME_URL.'/shop/rb.layout_hd/Trend05/script.js?ver='.G5_SERVER_TIME.'"></script>', 1);
?>
<header id="site-header" class="trend05-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" class="btn-pill">Logout</a></li>
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php" class="btn-pill">My Page</a></li>
<?php } else { ?>
<li><a href="<?php echo G5_BBS_URL; ?>/login.php" class="btn-pill">Login</a></li>
<?php } ?>
<li><a href="<?php echo G5_SHOP_URL; ?>/cart.php" class="cart-icon">
<span class="icon">🛒</span>
</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,190 @@
/* Trend05 Header Style - Playful & Vibrant */
#site-header {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 80px;
background-color: #fff;
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
z-index: 1000;
/* font-family: 'Poppins', sans-serif; */ /* 💡 [수정] 관리자 설정 폰트 사용을 위해 주석 처리 */
}
.header-inner {
display: flex;
align-items: center;
justify-content: space-between;
height: 100%;
padding: 0 20px;
}
.header-logo img {
height: 40px;
width: auto;
}
.header-gnb ul {
display: flex;
gap: 30px;
margin: 0;
padding: 0;
list-style: none;
}
.header-gnb a {
text-decoration: none;
color: #333;
font-weight: 700;
font-size: 1.1rem;
padding: 8px 15px;
border-radius: 20px;
transition: all 0.3s;
}
.header-gnb a:hover {
background-color: #f0f4f8;
color: #ff6b6b;
}
.header-utils ul {
display: flex;
align-items: center;
gap: 15px;
margin: 0;
padding: 0;
list-style: none;
}
.header-utils a.btn-pill {
text-decoration: none;
color: #333;
font-weight: 600;
font-size: 0.9rem;
padding: 8px 20px;
border: 2px solid #333;
border-radius: 30px;
transition: all 0.3s;
}
.header-utils a.btn-pill:hover {
background-color: #333;
color: #fff;
}
.header-utils a.cart-icon {
font-size: 1.5rem;
text-decoration: none;
}
/* 모바일 메뉴 */
.mobile-menu-trigger,
.mobile-menu-panel {
display: none;
}
@media (max-width: 1024px) {
.header-gnb,
.header-utils {
display: none;
}
.mobile-menu-trigger {
display: flex;
flex-direction: column;
justify-content: space-around;
width: 35px;
height: 30px;
background: transparent;
border: none;
cursor: pointer;
padding: 0;
}
.mobile-menu-trigger span {
display: block;
width: 100%;
height: 4px;
background-color: #333;
border-radius: 4px;
}
.mobile-menu-trigger span:nth-child(2) {
width: 70%;
margin-left: auto;
}
.mobile-menu-panel {
position: fixed;
top: 0;
right: 0;
width: 100%;
height: 100%;
background-color: #ff6b6b; /* 강렬한 배경색 */
color: #fff;
transform: translateX(100%);
transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* 통통 튀는 애니메이션 */
padding: 40px;
z-index: 1100;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.mobile-menu-panel.active {
transform: translateX(0);
}
.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: 20px;
padding: 0;
list-style: none;
text-align: center;
}
.mobile-gnb a {
font-size: 2.5rem;
color: #fff;
text-decoration: none;
font-weight: 900;
text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}
.mobile-utils {
margin-top: 50px;
}
.mobile-utils ul {
display: flex;
gap: 20px;
list-style: none;
padding: 0;
}
.mobile-utils a {
color: #fff;
text-decoration: none;
font-size: 1.2rem;
font-weight: 700;
background-color: rgba(255,255,255,0.2);
padding: 10px 20px;
border-radius: 30px;
}
}