변경사항: - navbar의 대시보드 버튼이 개인 대시보드가 아닌 역할별 공통 대시보드로 이동하도록 수정 - Admin/System → /pages/dashboard/system.html - 그룹장 → /pages/dashboard/group-leader.html - 일반 사용자 → /pages/dashboard/user.html 수정된 파일: - web-ui/components/navbar.html - web-ui/js/load-navbar.js 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
327 lines
6.6 KiB
HTML
327 lines
6.6 KiB
HTML
<!-- components/navbar.html -->
|
|
<!-- 최신 대시보드 헤더 -->
|
|
<header class="dashboard-header">
|
|
<div class="header-content">
|
|
<div class="header-left">
|
|
<div class="brand">
|
|
<img src="/img/logo.png" alt="테크니컬코리아" class="brand-logo">
|
|
<div class="brand-text">
|
|
<h1 class="brand-title">테크니컬코리아</h1>
|
|
<p class="brand-subtitle">생산팀 포털</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header-center">
|
|
<div class="current-time" id="currentTime">
|
|
<span class="time-label">현재 시각</span>
|
|
<span class="time-value" id="timeValue">--:--:--</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="header-right">
|
|
<a href="#" id="dashboardBtn" class="dashboard-btn">
|
|
<span class="btn-icon">📊</span>
|
|
<span class="btn-text">대시보드</span>
|
|
</a>
|
|
|
|
<div class="user-profile" id="userProfile">
|
|
<div class="user-avatar">
|
|
<span class="avatar-text" id="userInitial">사</span>
|
|
</div>
|
|
<div class="user-info">
|
|
<span class="user-name" id="userName">사용자</span>
|
|
<span class="user-role" id="userRole">작업자</span>
|
|
</div>
|
|
<div class="profile-menu" id="profileMenu">
|
|
<a href="/pages/profile/my-profile.html" class="menu-item">
|
|
<span class="menu-icon">👤</span>
|
|
내 프로필
|
|
</a>
|
|
<a href="/pages/profile/change-password.html" class="menu-item">
|
|
<span class="menu-icon">🔐</span>
|
|
비밀번호 변경
|
|
</a>
|
|
<a href="/pages/profile/admin-settings.html" class="menu-item admin-only">
|
|
<span class="menu-icon">⚙️</span>
|
|
관리자 설정
|
|
</a>
|
|
<button class="menu-item logout-btn" id="logoutBtn">
|
|
<span class="menu-icon">🚪</span>
|
|
로그아웃
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<style>
|
|
/* 최신 대시보드 헤더 스타일 */
|
|
.dashboard-header {
|
|
background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
|
|
color: white;
|
|
padding: 1rem 1.5rem;
|
|
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.header-left .brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.brand-logo {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 0.75rem;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.brand-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.brand-subtitle {
|
|
font-size: 0.875rem;
|
|
opacity: 0.9;
|
|
margin: 0;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.header-center .current-time {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 9999px;
|
|
padding: 0.75rem 1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.time-label {
|
|
display: block;
|
|
font-size: 0.75rem;
|
|
opacity: 0.8;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.time-value {
|
|
display: block;
|
|
font-size: 1.125rem;
|
|
font-weight: 700;
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
|
|
.header-right .user-profile {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 9999px;
|
|
padding: 0.5rem 1rem;
|
|
cursor: pointer;
|
|
transition: all 0.25s ease;
|
|
}
|
|
|
|
.user-profile:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 9999px;
|
|
background: #90caf9;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 700;
|
|
color: #0d47a1;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.user-role {
|
|
font-size: 0.75rem;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.profile-menu {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
margin-top: 0.5rem;
|
|
background: linear-gradient(135deg, #ffffff, #f8fafc);
|
|
border-radius: 0.75rem;
|
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
|
|
border: 2px solid rgba(59, 130, 246, 0.2);
|
|
min-width: 220px;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(-10px);
|
|
transition: all 0.3s ease;
|
|
z-index: 1000;
|
|
backdrop-filter: blur(20px);
|
|
}
|
|
|
|
.user-profile:hover .profile-menu,
|
|
.profile-menu:hover {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.875rem 1.25rem;
|
|
color: #374151;
|
|
text-decoration: none;
|
|
border: none;
|
|
background: transparent;
|
|
width: 100%;
|
|
text-align: left;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
border-radius: 0.5rem;
|
|
margin: 0.25rem;
|
|
font-family: inherit;
|
|
}
|
|
|
|
.menu-item:hover {
|
|
background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
|
|
color: #1f2937;
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.menu-item:first-child {
|
|
border-radius: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.menu-item:last-child {
|
|
border-radius: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.menu-icon {
|
|
font-size: 1.1rem;
|
|
width: 1.5rem;
|
|
text-align: center;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.menu-item:hover .menu-icon {
|
|
opacity: 1;
|
|
}
|
|
|
|
.logout-btn {
|
|
color: #dc2626 !important;
|
|
border-top: 1px solid #e5e7eb;
|
|
margin-top: 0.5rem;
|
|
padding-top: 0.875rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
|
|
color: #b91c1c !important;
|
|
}
|
|
|
|
/* 대시보드 버튼 */
|
|
.dashboard-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.625rem 1.25rem;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
text-decoration: none;
|
|
border-radius: 0.75rem;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
transition: all 0.3s ease;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.dashboard-btn:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.dashboard-btn .btn-icon {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.dashboard-btn .btn-text {
|
|
font-family: inherit;
|
|
}
|
|
|
|
/* 반응형 디자인 */
|
|
@media (max-width: 768px) {
|
|
.dashboard-header {
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.brand-title {
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.brand-subtitle {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.header-center {
|
|
display: none;
|
|
}
|
|
|
|
.user-info {
|
|
display: none;
|
|
}
|
|
|
|
.dashboard-btn .btn-text {
|
|
display: none;
|
|
}
|
|
|
|
.dashboard-btn {
|
|
padding: 0.5rem 0.75rem;
|
|
}
|
|
}
|
|
</style> |