Initial commit: 公示系统集合 Flask 项目
This commit is contained in:
@@ -0,0 +1,141 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<title>{{ app_name }}</title>
|
||||
<style>
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
background: linear-gradient(180deg, #f2f7ff 0%, #f7f9fc 100%);
|
||||
color: #1c2740;
|
||||
}
|
||||
.shell {
|
||||
max-width: 1100px;
|
||||
margin: 0 auto;
|
||||
padding: 20px 16px 40px;
|
||||
}
|
||||
.hero {
|
||||
background: linear-gradient(135deg, #1f3a5f 0%, #2f80ff 100%);
|
||||
color: #fff;
|
||||
border-radius: 24px;
|
||||
padding: 24px 20px;
|
||||
box-shadow: 0 18px 40px rgba(31, 58, 95, 0.22);
|
||||
}
|
||||
.eyebrow {
|
||||
font-size: 13px;
|
||||
opacity: 0.86;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
h1 {
|
||||
margin: 10px 0 8px;
|
||||
font-size: 30px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
.hero p {
|
||||
display: none;
|
||||
}
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 14px;
|
||||
margin-top: 18px;
|
||||
}
|
||||
.card {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
background: rgba(255, 255, 255, 0.94);
|
||||
border: 1px solid rgba(47, 128, 255, 0.08);
|
||||
border-radius: 20px;
|
||||
padding: 18px;
|
||||
box-shadow: 0 12px 28px rgba(31, 58, 95, 0.08);
|
||||
transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease;
|
||||
}
|
||||
.card:active {
|
||||
transform: scale(0.99);
|
||||
}
|
||||
.card:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 18px 36px rgba(31, 58, 95, 0.12);
|
||||
border-color: rgba(47, 128, 255, 0.2);
|
||||
}
|
||||
.card-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
.card-title {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.card-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 72px;
|
||||
padding: 6px 10px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
background: #eaf2ff;
|
||||
color: #1f5fff;
|
||||
}
|
||||
.card-desc {
|
||||
display: none;
|
||||
}
|
||||
.card-foot {
|
||||
margin-top: 14px;
|
||||
font-size: 13px;
|
||||
color: #7b89a6;
|
||||
}
|
||||
.note {
|
||||
display: none;
|
||||
}
|
||||
@media (min-width: 860px) {
|
||||
.shell {
|
||||
padding: 28px 20px 48px;
|
||||
}
|
||||
.hero {
|
||||
padding: 32px 30px;
|
||||
}
|
||||
.grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
.card {
|
||||
min-height: 220px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="shell">
|
||||
<section class="hero">
|
||||
<div class="eyebrow">TASK PUBLIC BOARD</div>
|
||||
<h1>公示系统集成</h1>
|
||||
<p>统一承载多个任务公示项目的入口页面。当前先提供导航首页和统一查询骨架,后续新增项目时只需补充数据库配置、表名和 SQL。</p>
|
||||
</section>
|
||||
|
||||
<section class="grid">
|
||||
{% for key, project in projects.items() %}
|
||||
<a class="card" href="/project/{{ key }}{% if user_uuid %}?uuid={{ user_uuid|urlencode }}{% endif %}">
|
||||
<div class="card-top">
|
||||
<h2 class="card-title">{{ project.title }}</h2>
|
||||
<span class="card-tag">{{ project.status }}</span>
|
||||
</div>
|
||||
<p class="card-desc">{{ project.subtitle }}</p>
|
||||
<div class="card-foot">进入统一查询页</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</section>
|
||||
|
||||
<div class="note">
|
||||
后续接入新项目时,只需在 <strong>config.py</strong> 中补充项目配置,并为该项目填写数据库标识、表名和查询 SQL,即可复用统一项目页和统一查询接口。
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user