🔍 구글 스타일 프로젝트 선택기로 전면 개편

핵심 변경사항:
 구글 검색창 스타일의 깔끔한 프로젝트 관리 페이지 완성
- 복잡한 카드 리스트 → 중앙 집중식 드롭다운 선택기
- 미니멀한 디자인으로 사용성 대폭 개선

🎯 구글 스타일 드롭다운 시스템
- 중앙 배치된 둥근 검색창 스타일 드롭다운
- 클릭 시 부드러운 확장 애니메이션 (둥근→사각형)
- 내장된 실시간 검색 기능 (프로젝트명/Job No./고객사)
- 외부 클릭 시 자동 닫힘

🎨 DevonThink 미니멀 디자인
- 중앙 정렬된 대형 'TK Project' 타이틀 (48px, 얇은 폰트)
- 충분한 여백과 깔끔한 레이아웃 (80vh 중앙 배치)
- 회색/파란색 위주의 절제된 색상 팔레트
- 부드러운 그림자와 호버 효과

📋 스마트 프로젝트 정보 표시
- 드롭다운 옵션: 프로젝트명 + Job No. + 고객사 + 상태
- 선택 후 상세 정보 카드 자동 표시 (fadeInUp 애니메이션)
- 프로젝트별 맞춤 액션 버튼 (상태에 따른 활성화/비활성화)
- 세션 스토리지 자동 저장

 인터랙티브 기능
- 드롭다운 열기 시 검색창 자동 포커스
- 실시간 필터링 (타이핑과 동시에 옵션 필터링)
- 키보드 네비게이션 지원 (Enter, Escape)
- 상태별 버튼 동적 업데이트

🔄 상태별 버튼 로직
- 계획 단계: 생산회의록 비활성화
- 진행중: 모든 기능 활성화
- 제작중: 생산회의록 + 프로젝트 관리 활성화
- 완료: 모든 버튼 '(완료)' 표시로 변경

📊 하단 통계 표시
- 간소화된 4개 통계 (전체/진행중/제작중/지연)
- 중앙 정렬된 깔끔한 배치
- 큰 숫자 + 작은 라벨 구조

💾 하드코딩 데이터 구조화
- getProjectData() 함수로 중앙 관리
- 4개 프로젝트 완전한 정보 (고객사, 납기, PM, 상태 등)
- 상태별 클래스와 진행률 포함

🎭 애니메이션 효과
- 페이지 로드 시 순차적 fade-in
- 드롭다운 화살표 회전 (180도)
- 프로젝트 정보 카드 fadeInUp
- 호버 시 그림자 확대

시연 준비: 구글 수준의 직관적이고 깔끔한 프로젝트 선택 시스템 완성
This commit is contained in:
Hyungi Ahn
2025-09-15 11:56:56 +09:00
parent 23eb3f1f46
commit 5375842144
3 changed files with 552 additions and 564 deletions

View File

@@ -590,197 +590,240 @@ body {
}
}
/* 프로젝트 관리 컨테이너 */
.project-management-container {
/* 프로젝트 선택기 컨테이너 */
.project-selector-container {
display: flex;
flex-direction: column;
gap: 24px;
}
/* 프로젝트 필터 */
.project-filters {
background-color: white;
border-radius: 8px;
box-shadow: var(--dt-shadow);
border: 1px solid var(--dt-gray-200);
padding: 24px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
min-height: 80vh;
padding: 40px 20px;
gap: 40px;
}
.filter-section {
display: flex;
align-items: center;
gap: 20px;
flex-wrap: wrap;
}
.search-box {
display: flex;
align-items: center;
gap: 8px;
}
.search-input {
padding: 8px 12px;
border: 1px solid var(--dt-gray-300);
border-radius: 6px;
font-size: 14px;
width: 300px;
background-color: white;
}
.search-btn {
padding: 8px 12px;
border: none;
background-color: var(--dt-primary);
color: white;
border-radius: 6px;
cursor: pointer;
font-size: 14px;
}
.filter-buttons {
display: flex;
gap: 8px;
}
.filter-btn {
padding: 6px 16px;
border: 1px solid var(--dt-gray-300);
background-color: white;
color: var(--dt-gray-700);
border-radius: 20px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.filter-btn:hover {
background-color: var(--dt-gray-50);
}
.filter-btn.active {
background-color: var(--dt-primary);
color: white;
border-color: var(--dt-primary);
}
.project-stats {
display: flex;
gap: 24px;
}
.stat-item {
/* 프로젝트 선택기 헤더 */
.project-selector-header {
text-align: center;
}
.stat-number {
display: block;
font-size: 24px;
font-weight: 700;
color: var(--dt-primary);
line-height: 1;
.project-selector-header h1 {
font-size: 48px;
font-weight: 300;
color: var(--dt-gray-800);
margin-bottom: 16px;
letter-spacing: -1px;
}
.stat-label {
font-size: 12px;
.selector-description {
font-size: 18px;
color: var(--dt-gray-600);
font-weight: 500;
font-weight: 400;
}
/* 프로젝트 리스트 */
.project-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 24px;
/* 프로젝트 선택기 메인 */
.project-selector-main {
display: flex;
flex-direction: column;
align-items: center;
gap: 32px;
width: 100%;
max-width: 600px;
}
@media (max-width: 800px) {
.project-list {
grid-template-columns: 1fr;
}
/* 프로젝트 드롭다운 컨테이너 */
.project-dropdown-container {
width: 100%;
position: relative;
}
/* 프로젝트 드 */
.project-card {
/* 프로젝트 드롭다운 */
.project-dropdown {
position: relative;
width: 100%;
}
.dropdown-display {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
background-color: white;
border-radius: 12px;
box-shadow: var(--dt-shadow);
border: 1px solid var(--dt-gray-200);
padding: 24px;
transition: all 0.2s ease;
border: 2px solid var(--dt-gray-200);
border-radius: 50px;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: var(--dt-shadow);
font-size: 16px;
}
.project-card:hover {
transform: translateY(-2px);
.dropdown-display:hover {
border-color: var(--dt-primary);
box-shadow: var(--dt-shadow-lg);
}
.project-card.status-production {
border-left: 4px solid var(--dt-primary);
.dropdown-display.active {
border-color: var(--dt-primary);
border-radius: 20px 20px 0 0;
}
.project-card.status-planning {
border-left: 4px solid var(--dt-gray-400);
.dropdown-text {
color: var(--dt-gray-700);
font-weight: 500;
}
.project-card.status-in-progress {
border-left: 4px solid var(--dt-warning);
.dropdown-arrow {
color: var(--dt-gray-500);
font-size: 12px;
transition: transform 0.2s ease;
}
.project-card.status-completed {
border-left: 4px solid var(--dt-success);
.dropdown-display.active .dropdown-arrow {
transform: rotate(180deg);
}
.project-header {
/* 드롭다운 메뉴 */
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
right: 0;
background-color: white;
border: 2px solid var(--dt-primary);
border-top: none;
border-radius: 0 0 20px 20px;
box-shadow: var(--dt-shadow-lg);
z-index: 1000;
display: none;
max-height: 400px;
overflow: hidden;
}
.dropdown-menu.active {
display: block;
}
/* 드롭다운 검색 */
.dropdown-search {
padding: 16px;
border-bottom: 1px solid var(--dt-gray-200);
}
.dropdown-search-input {
width: 100%;
padding: 12px 16px;
border: 1px solid var(--dt-gray-300);
border-radius: 8px;
font-size: 14px;
background-color: var(--dt-gray-50);
}
.dropdown-search-input:focus {
outline: none;
border-color: var(--dt-primary);
background-color: white;
}
/* 드롭다운 옵션들 */
.dropdown-options {
max-height: 300px;
overflow-y: auto;
}
.dropdown-option {
padding: 16px 20px;
cursor: pointer;
transition: background-color 0.2s ease;
border-bottom: 1px solid var(--dt-gray-100);
}
.dropdown-option:hover {
background-color: var(--dt-gray-50);
}
.dropdown-option:last-child {
border-bottom: none;
}
.option-main {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
align-items: center;
margin-bottom: 8px;
}
.project-title h3 {
font-size: 18px;
.option-title {
font-size: 16px;
font-weight: 600;
color: var(--dt-gray-800);
margin-bottom: 4px;
}
.project-title .job-no {
.option-job-no {
font-size: 12px;
font-weight: 700;
color: var(--dt-primary);
font-family: 'Monaco', 'Menlo', monospace;
}
.project-status {
.option-details {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.progress-text {
.option-customer {
font-size: 14px;
font-weight: 600;
color: var(--dt-gray-600);
}
/* 프로젝트 정보 */
.project-info {
margin-bottom: 20px;
.option-status {
font-size: 11px;
font-weight: 600;
padding: 4px 8px;
border-radius: 12px;
}
/* 선택된 프로젝트 정보 */
.selected-project-info {
width: 100%;
animation: fadeInUp 0.3s ease;
}
.project-info-card {
background-color: white;
border-radius: 16px;
box-shadow: var(--dt-shadow-lg);
border: 1px solid var(--dt-gray-200);
padding: 32px;
text-align: center;
}
.project-info-header {
margin-bottom: 24px;
}
.project-info-header h3 {
font-size: 24px;
font-weight: 600;
color: var(--dt-gray-800);
margin-bottom: 8px;
}
.info-job-no {
font-size: 14px;
font-weight: 700;
color: var(--dt-primary);
font-family: 'Monaco', 'Menlo', monospace;
}
.project-info-details {
margin-bottom: 32px;
}
.info-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 6px 0;
padding: 12px 0;
border-bottom: 1px solid var(--dt-gray-100);
}
@@ -789,114 +832,104 @@ body {
}
.info-label {
font-size: 12px;
font-size: 14px;
color: var(--dt-gray-600);
font-weight: 500;
}
.info-value {
font-size: 13px;
font-size: 14px;
color: var(--dt-gray-800);
font-weight: 600;
}
/* 프로젝트 진행률 */
.project-progress {
margin-bottom: 20px;
}
.progress-stages {
display: flex;
justify-content: space-between;
margin-top: 12px;
}
.stage {
font-size: 11px;
font-weight: 600;
color: var(--dt-gray-500);
text-align: center;
flex: 1;
position: relative;
}
.stage.completed {
color: var(--dt-success);
}
.stage.active {
color: var(--dt-primary);
}
.stage::after {
content: '';
position: absolute;
top: -8px;
left: 50%;
transform: translateX(-50%);
width: 8px;
height: 8px;
border-radius: 50%;
background-color: var(--dt-gray-300);
}
.stage.completed::after {
background-color: var(--dt-success);
}
.stage.active::after {
background-color: var(--dt-primary);
align-items: center;
gap: 8px;
}
/* 프로젝트 액션 */
.project-actions {
display: flex;
gap: 8px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.project-actions .btn {
flex: 1;
font-size: 12px;
padding: 8px 12px;
font-size: 14px;
padding: 12px 16px;
border-radius: 8px;
}
.btn.disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
/* 간단한 프로젝트 통계 */
.project-stats-simple {
display: flex;
gap: 32px;
justify-content: center;
}
.stat-item {
text-align: center;
}
.stat-number {
display: block;
font-size: 28px;
font-weight: 700;
color: var(--dt-primary);
line-height: 1;
margin-bottom: 4px;
}
.stat-label {
font-size: 12px;
color: var(--dt-gray-600);
font-weight: 500;
}
/* 애니메이션 */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 반응형 디자인 */
@media (max-width: 768px) {
.project-filters {
flex-direction: column;
align-items: stretch;
.project-selector-header h1 {
font-size: 36px;
}
.filter-section {
justify-content: center;
.selector-description {
font-size: 16px;
}
.search-input {
width: 100%;
max-width: 300px;
.project-selector-main {
max-width: 100%;
}
.project-stats {
justify-content: center;
.dropdown-display {
padding: 14px 18px;
font-size: 15px;
}
.project-card {
padding: 20px;
}
.project-header {
flex-direction: column;
gap: 12px;
.project-info-card {
padding: 24px;
}
.project-actions {
flex-direction: column;
grid-template-columns: 1fr;
}
.project-stats-simple {
gap: 24px;
}
.stat-number {
font-size: 24px;
}
}