初始化项目基础结构
添加了完整的前后端开发环境配置,包括: - 创建 .gitignore 文件忽略本地生成目录和环境文件 - 添加详细的 README.md 开发指南文档 - 配置 backend 目录结构和 FastAPI 应用基础框架 - 实现应用配置管理、健康检查和状态接口 - 设置 uv 依赖管理和虚拟环境配置 - 完成 CORS 中间件配置支持前端开发联调
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
:root {
|
||||
font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
|
||||
color: #20211f;
|
||||
background: #f4f1e9;
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
--ink: #20211f;
|
||||
--muted: #77776f;
|
||||
--paper: #fffdf7;
|
||||
--line: #dedbd0;
|
||||
--accent: #e76f3d;
|
||||
--success: #307b59;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; min-width: 320px; min-height: 100vh; }
|
||||
button { font: inherit; }
|
||||
|
||||
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
|
||||
.sidebar {
|
||||
display: flex; flex-direction: column; padding: 28px 20px;
|
||||
color: #f8f5ed; background: #20211f;
|
||||
}
|
||||
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; font-weight: 700; }
|
||||
.brand-mark {
|
||||
display: grid; place-items: center; width: 32px; height: 32px;
|
||||
border-radius: 10px; color: #20211f; background: #f2c14e;
|
||||
}
|
||||
nav { display: grid; gap: 6px; }
|
||||
.nav-item {
|
||||
padding: 11px 14px; border: 0; border-radius: 8px; text-align: left;
|
||||
color: #bcbdb7; background: transparent;
|
||||
}
|
||||
.nav-item.active { color: white; background: #343632; }
|
||||
.nav-item:disabled { cursor: not-allowed; opacity: .55; }
|
||||
.sidebar-hint { margin-top: auto; color: #8f918a; font-size: 13px; }
|
||||
|
||||
.workspace { padding: 64px clamp(28px, 6vw, 88px); }
|
||||
.workspace header { max-width: 720px; margin-bottom: 42px; }
|
||||
.eyebrow, .card-label { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
|
||||
h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(42px, 7vw, 76px); line-height: 1; letter-spacing: -.045em; }
|
||||
.subtitle { max-width: 580px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
|
||||
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 960px; }
|
||||
.card { min-height: 180px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 12px 40px rgb(46 43 36 / 6%); }
|
||||
.hero-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; }
|
||||
.card h2 { margin: 0 0 12px; font-size: 21px; }
|
||||
.card p { color: var(--muted); line-height: 1.6; }
|
||||
.status-line { display: flex; align-items: center; gap: 12px; min-width: 250px; }
|
||||
.status-line p { margin: 3px 0 0; font-size: 13px; }
|
||||
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #aaa; box-shadow: 0 0 0 5px rgb(120 120 120 / 10%); }
|
||||
.status-line.success .status-dot { background: var(--success); box-shadow: 0 0 0 5px rgb(48 123 89 / 12%); }
|
||||
.status-line.error .status-dot { background: #b84737; box-shadow: 0 0 0 5px rgb(184 71 55 / 12%); }
|
||||
.primary-button {
|
||||
justify-self: end; padding: 10px 16px; border: 0; border-radius: 9px;
|
||||
color: white; background: var(--ink); cursor: pointer;
|
||||
}
|
||||
.primary-button:disabled { cursor: wait; opacity: .6; }
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.app-shell { grid-template-columns: 1fr; }
|
||||
.sidebar { min-height: auto; padding: 18px 20px; }
|
||||
.brand { margin-bottom: 18px; }
|
||||
nav { grid-template-columns: repeat(4, 1fr); }
|
||||
.nav-item { padding: 9px 6px; text-align: center; font-size: 13px; }
|
||||
.sidebar-hint { display: none; }
|
||||
.workspace { padding-top: 42px; }
|
||||
.cards { grid-template-columns: 1fr; }
|
||||
.hero-card { display: grid; grid-column: auto; }
|
||||
.primary-button { justify-self: start; }
|
||||
}
|
||||
Reference in New Issue
Block a user