Files
test-mcp/style/dashboard.css
Taehoon 9369e18eb8 feat: 대시보드 데이터 파싱 로직 고도화 및 크롤링 서비스 개선
- 대시보드: 8컬럼 형식의 sheet.csv를 안정적으로 지원하도록 파싱 로직 개선

- 크롤러: Playwright 기반 크롤링 엔진 고도화 및 실시간 로그 전송 기능 강화

- UI/UX: 대시보드 동기화 버튼 및 헤더 레이아웃 최적화
2026-03-06 18:10:19 +09:00

319 lines
5.7 KiB
CSS

/* Portal (Index) */
.portal-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: calc(100vh - 36px);
background: var(--bg-muted);
padding: var(--space-lg);
margin-top: 36px;
}
.portal-header {
text-align: center;
margin-bottom: 50px;
}
.portal-header h1 {
font-size: 28px;
color: var(--primary-color);
margin-bottom: 10px;
}
.portal-header p {
color: var(--text-sub);
font-size: 15px;
}
.button-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
width: 100%;
max-width: 800px;
}
.portal-card {
background: #fff;
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 40px;
text-align: center;
transition: 0.3s;
width: 100%;
box-shadow: var(--box-shadow);
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
.portal-card:hover {
transform: translateY(-5px);
border-color: var(--primary-color);
box-shadow: var(--box-shadow-lg);
}
.portal-card .icon {
font-size: 32px;
width: 64px;
height: 64px;
background: var(--bg-muted);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: 0.3s;
}
.portal-card:hover .icon {
background: var(--primary-color);
color: #fff;
}
.portal-card h2 {
font-size: 20px;
font-weight: 700;
}
.portal-card p {
color: var(--text-sub);
font-size: 14px;
line-height: 1.5;
}
@media screen and (max-width: 600px) {
.button-grid {
grid-template-columns: 1fr;
}
}
/* Dashboard List & Console */
.log-console {
background: #000;
color: #0f0;
font-family: monospace;
padding: 15px;
margin-bottom: 20px;
border-radius: 4px;
max-height: 200px;
overflow-y: auto;
font-size: 12px;
line-height: 1.5;
}
.log-console-header {
color: #fff;
border-bottom: 1px solid #333;
margin-bottom: 10px;
padding-bottom: 5px;
font-weight: bold;
}
.accordion-container {
border-top: 1px solid var(--border-color);
}
.accordion-list-header,
.accordion-header {
display: grid;
grid-template-columns: 2.5fr 1fr 1fr 0.8fr 2fr;
gap: var(--space-md);
padding: var(--space-md) var(--space-lg);
align-items: center;
cursor: pointer;
}
.accordion-list-header {
font-size: 11px;
font-weight: 700;
color: var(--text-sub);
border-bottom: 1px solid var(--text-main);
cursor: default;
}
.accordion-item {
border-bottom: 1px solid var(--border-color);
}
.accordion-item:hover {
background: var(--primary-lv-0);
}
.repo-title {
font-weight: 700;
color: var(--primary-color);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.repo-files {
text-align: center;
font-weight: 600;
}
.repo-log {
font-size: 11px;
color: var(--text-sub);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.accordion-body {
display: none;
padding: var(--space-lg);
background: var(--bg-muted);
border-top: 1px solid var(--border-color);
}
.accordion-item.active .accordion-body {
display: block;
}
.status-warning {
background: #fff9e6;
}
.status-error {
background: #fee9e7;
}
.warning-text {
color: #f21d0d !important;
font-weight: 700;
}
/* Accordion Multi-level (Continent/Country) */
.continent-group,
.country-group {
margin-bottom: 10px;
}
.continent-header,
.country-header {
background: #fff;
padding: 12px 20px;
border: 1px solid var(--border-color);
border-radius: 8px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
font-weight: 700;
transition: all 0.2s;
}
.continent-header {
background: var(--primary-color);
color: white;
border: none;
font-size: 15px;
}
.country-header {
font-size: 14px;
color: var(--text-main);
margin-top: 5px;
}
.continent-body,
.country-body {
display: none;
padding: 10px 0 10px 20px;
}
.active>.continent-body,
.active>.country-body {
display: block;
}
/* Detail Views */
.detail-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
.detail-section h4 {
font-size: 13px;
margin-bottom: 10px;
color: var(--text-main);
border-left: 3px solid var(--primary-color);
padding-left: 8px;
}
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
.data-table th,
.data-table td {
padding: 8px;
border-bottom: 1px solid var(--border-color);
text-align: left;
}
.data-table th {
color: var(--text-sub);
font-weight: 600;
}
/* Header & Sync Button */
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--space-lg);
padding-bottom: var(--space-md);
border-bottom: 1px solid var(--border-color);
}
.main-content {
margin-top: 36px;
padding: var(--space-lg);
max-width: 1400px;
margin-left: auto;
margin-right: auto;
}
.sync-btn {
display: flex;
align-items: center;
gap: var(--space-sm);
background-color: var(--primary-color);
color: #fff;
padding: 8px 16px;
border-radius: var(--radius-lg);
font-size: 13px;
font-weight: 600;
box-shadow: var(--box-shadow);
}
.sync-btn:hover {
background-color: var(--primary-lv-8);
}
.sync-btn.loading .spinner {
display: inline-block;
}
.admin-info {
font-size: 13px;
color: var(--text-sub);
margin-left: var(--space-md);
padding: 6px 12px;
background: var(--bg-muted);
border-radius: var(--radius-sm);
border: 1px solid var(--border-color);
}
.admin-info strong {
color: var(--primary-color);
font-weight: 700;
}