212 lines
6.0 KiB
HTML
212 lines
6.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Stash 本地应用控制台</title>
|
|
<style>
|
|
:root {
|
|
/* suxing.me 经典轻量博客/导航设计配色体系 */
|
|
--bg: #f4f6f9;
|
|
--container-bg: #ffffff;
|
|
--primary: #ff5c38;
|
|
--primary-light: rgba(255, 92, 56, 0.08);
|
|
--title-color: #2b2f36;
|
|
--desc-color: #8a92a3;
|
|
--border-color: #edf2f7;
|
|
--card-hover-bg: #f8fafc;
|
|
--shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
|
|
--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
|
|
background-color: var(--bg);
|
|
color: var(--title-color);
|
|
padding: 48px 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.wrapper {
|
|
max-width: 1080px;
|
|
width: 100%;
|
|
}
|
|
|
|
/* 主容器卡片化,呈现图中的圆角纯白面板 */
|
|
.panel {
|
|
background: var(--container-bg);
|
|
border-radius: 16px;
|
|
padding: 24px 28px 32px;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
/* 顶部标题区(参考图中的左侧圆环图标+加粗标题) */
|
|
.panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 24px;
|
|
padding-bottom: 14px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.header-title-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.header-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 26px;
|
|
height: 26px;
|
|
color: var(--title-color);
|
|
}
|
|
|
|
.panel-header h2 {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--title-color);
|
|
letter-spacing: -0.2px;
|
|
}
|
|
|
|
.panel-action {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
color: #b1b9c7;
|
|
font-size: 18px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
/* 4列自适应网格,复刻参考图结构 */
|
|
.site-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 20px 24px;
|
|
}
|
|
|
|
@media (max-width: 992px) {
|
|
.site-grid {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.site-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* 每一个站点项目的水平卡片 */
|
|
.site-item {
|
|
display: flex;
|
|
align-items: center;
|
|
text-decoration: none;
|
|
padding: 10px 12px;
|
|
border-radius: 12px;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
background: transparent;
|
|
}
|
|
|
|
.site-item:hover {
|
|
background: var(--card-hover-bg);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.site-item:hover .site-name {
|
|
color: var(--primary);
|
|
}
|
|
|
|
/* 圆形小头像/图标 */
|
|
.site-avatar {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 50%;
|
|
background: var(--primary-light);
|
|
color: var(--primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
flex-shrink: 0;
|
|
margin-right: 12px;
|
|
box-shadow: 0 2px 6px rgba(255, 92, 56, 0.12);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.site-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
}
|
|
|
|
.site-name {
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
color: var(--title-color);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-bottom: 3px;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.site-desc {
|
|
font-size: 12px;
|
|
color: var(--desc-color);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-family: inherit;
|
|
}
|
|
|
|
/* 空状态占位 */
|
|
.empty-state {
|
|
grid-column: 1 / -1;
|
|
text-align: center;
|
|
padding: 60px 0;
|
|
color: var(--desc-color);
|
|
font-size: 14px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wrapper">
|
|
<div class="panel">
|
|
<div class="panel-header">
|
|
<div class="header-title-group">
|
|
<span class="header-icon">
|
|
<!-- 类似参考图中的网球/球体圆环图标 -->
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
<circle cx="12" cy="12" r="10"></circle>
|
|
<path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"></path>
|
|
<path d="M2 12h20"></path>
|
|
</svg>
|
|
</span>
|
|
<h2>本地前端应用</h2>
|
|
</div>
|
|
<div class="panel-action">•••</div>
|
|
</div>
|
|
|
|
<div class="site-grid">
|
|
__CARDS__
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |