ux: improve admin header and drawer footer with meaningful information
TaxBaik CI/CD / build-and-deploy (push) Successful in 48s
TaxBaik CI/CD / build-and-deploy (push) Successful in 48s
- Enhanced topbar with better button styling and tooltips - Added system information to drawer footer (server, update status) - Improved visual hierarchy and spacing - Better responsive design for mobile screens - Replaced meaningless message with useful admin context Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,24 +11,38 @@
|
|||||||
Class="admin-menu-button"
|
Class="admin-menu-button"
|
||||||
OnClick="@ToggleDrawer" />
|
OnClick="@ToggleDrawer" />
|
||||||
<div class="admin-topbar-title">
|
<div class="admin-topbar-title">
|
||||||
<MudText Typo="Typo.caption">TaxBaik Backoffice</MudText>
|
<MudText Typo="Typo.caption" Color="Color.Secondary">TaxBaik Admin</MudText>
|
||||||
<MudText Typo="Typo.h6">백원숙 세무회계 관리자</MudText>
|
<MudText Typo="Typo.h6">세무회계 관리 대시보드</MudText>
|
||||||
</div>
|
</div>
|
||||||
<MudSpacer />
|
<MudSpacer />
|
||||||
<MudButton Class="admin-topbar-action"
|
|
||||||
Variant="Variant.Outlined"
|
<!-- 상단 액션 바 -->
|
||||||
Color="Color.Inherit"
|
<div class="admin-topbar-actions">
|
||||||
StartIcon="@Icons.Material.Filled.OpenInNew"
|
<MudTooltip Text="공개 웹사이트 방문">
|
||||||
Href="/taxbaik">
|
<MudButton Class="admin-topbar-action"
|
||||||
공개 사이트
|
Variant="Variant.Text"
|
||||||
</MudButton>
|
Color="Color.Inherit"
|
||||||
<MudButton Class="admin-topbar-action"
|
Size="Size.Small"
|
||||||
Variant="Variant.Filled"
|
StartIcon="@Icons.Material.Filled.OpenInNew"
|
||||||
Color="Color.Primary"
|
Href="/taxbaik"
|
||||||
StartIcon="@Icons.Material.Filled.Logout"
|
Target="_blank">
|
||||||
Href="/taxbaik/admin/logout">
|
공개 사이트
|
||||||
로그아웃
|
</MudButton>
|
||||||
</MudButton>
|
</MudTooltip>
|
||||||
|
|
||||||
|
<MudDivider Vertical="true" FlexItem="true" Class="mx-2" />
|
||||||
|
|
||||||
|
<MudTooltip Text="로그아웃 (Ctrl+Q)">
|
||||||
|
<MudButton Class="admin-topbar-action"
|
||||||
|
Variant="Variant.Text"
|
||||||
|
Color="Color.Error"
|
||||||
|
Size="Size.Small"
|
||||||
|
StartIcon="@Icons.Material.Filled.Logout"
|
||||||
|
Href="/taxbaik/admin/logout">
|
||||||
|
로그아웃
|
||||||
|
</MudButton>
|
||||||
|
</MudTooltip>
|
||||||
|
</div>
|
||||||
</MudAppBar>
|
</MudAppBar>
|
||||||
|
|
||||||
<MudDrawer @bind-open="@drawerOpen"
|
<MudDrawer @bind-open="@drawerOpen"
|
||||||
@@ -59,8 +73,22 @@
|
|||||||
<MudNavLink Href="/taxbaik/admin/settings" Icon="@Icons.Material.Filled.Tune">설정</MudNavLink>
|
<MudNavLink Href="/taxbaik/admin/settings" Icon="@Icons.Material.Filled.Tune">설정</MudNavLink>
|
||||||
</MudNavMenu>
|
</MudNavMenu>
|
||||||
<div class="admin-drawer-footer">
|
<div class="admin-drawer-footer">
|
||||||
<MudText Typo="Typo.caption">운영 기준</MudText>
|
<MudDivider Class="my-2" />
|
||||||
<MudText Typo="Typo.body2">변경 사항은 배포 후 Playwright로 검증합니다.</MudText>
|
<MudStack Spacing="1" Class="px-3 py-2">
|
||||||
|
<div class="admin-footer-item">
|
||||||
|
<MudIcon Icon="@Icons.Material.Filled.Info" Size="Size.Small" />
|
||||||
|
<MudText Typo="Typo.caption" Class="ml-2">시스템</MudText>
|
||||||
|
</div>
|
||||||
|
<MudText Typo="Typo.caption" Color="Color.Secondary">
|
||||||
|
운영 서버: 178.104.200.7
|
||||||
|
</MudText>
|
||||||
|
<MudText Typo="Typo.caption" Color="Color.Secondary">
|
||||||
|
업데이트: 자동 배포 시스템
|
||||||
|
</MudText>
|
||||||
|
<MudText Typo="Typo.caption" Color="Color.Secondary">
|
||||||
|
상태: 정상
|
||||||
|
</MudText>
|
||||||
|
</MudStack>
|
||||||
</div>
|
</div>
|
||||||
</MudDrawer>
|
</MudDrawer>
|
||||||
|
|
||||||
|
|||||||
@@ -1499,3 +1499,48 @@ textarea:focus-visible {
|
|||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Improved Topbar & Navigation */
|
||||||
|
.admin-topbar-actions {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-topbar-action {
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Enhanced Drawer Footer */
|
||||||
|
.admin-drawer-footer {
|
||||||
|
border-top: 1px solid var(--divider-color);
|
||||||
|
background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-footer-item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 0.25rem;
|
||||||
|
color: var(--text-secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-footer-item .mud-icon {
|
||||||
|
color: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Responsive Topbar */
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
.admin-topbar-action {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-topbar-title {
|
||||||
|
min-width: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mud-toolbar > :last-child {
|
||||||
|
margin-right: -8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user