## 주요 변경사항
### 1. 미사용 페이지 아카이브 (24개)
- admin 폴더 전체 (8개) → .archived-admin/
- 분석 페이지 (5개) → .archived-*
- 공통 페이지 (5개) → .archived-*
- 대시보드 페이지 (2개) → .archived-*
- 기타 (4개) → .archived-*
### 2. 새로운 폴더 구조
```
pages/
├── dashboard.html (메인 대시보드)
├── work/ (작업 관련)
│ ├── report-create.html (작업보고서 작성)
│ ├── report-view.html (작업보고서 조회)
│ └── analysis.html (작업 분석)
├── admin/ (관리 기능)
│ ├── index.html (관리 메뉴 허브)
│ ├── projects.html (프로젝트 관리)
│ ├── workers.html (작업자 관리)
│ ├── codes.html (코드 관리)
│ └── accounts.html (계정 관리)
└── profile/ (프로필)
├── info.html (내 정보)
└── password.html (비밀번호 변경)
```
### 3. 파일명 개선
- group-leader.html → dashboard.html
- daily-work-report.html → work/report-create.html
- daily-work-report-viewer.html → work/report-view.html
- work-analysis.html → work/analysis.html
- work-management.html → admin/index.html
- project-management.html → admin/projects.html
- worker-management.html → admin/workers.html
- code-management.html → admin/codes.html
- my-profile.html → profile/info.html
- change-password.html → profile/password.html
- admin-settings.html → admin/accounts.html
### 4. 내부 링크 전면 수정
- navbar.html 프로필 메뉴 링크 업데이트
- dashboard.html 빠른 작업 링크 업데이트
- admin/* 페이지 간 링크 업데이트
- load-navbar.js 대시보드 경로 수정
영향받는 파일: 39개
🤖 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/info.html" class="menu-item">
|
|
<span class="menu-icon">👤</span>
|
|
내 프로필
|
|
</a>
|
|
<a href="/pages/profile/password.html" class="menu-item">
|
|
<span class="menu-icon">🔐</span>
|
|
비밀번호 변경
|
|
</a>
|
|
<a href="/pages/admin/accounts.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> |