refactor: simplify homepage layout, consolidate landing page components

Merge hero/stats/features/footer sections into home-page-content.tsx,
remove separate landing-page.tsx. Update styles, layout, navbar, and
backend config.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-22 11:24:34 +08:00
parent ddbb79b9f6
commit 09621ef767
12 changed files with 425 additions and 1046 deletions
+6 -1
View File
@@ -139,7 +139,12 @@ def ensure_directories():
settings.generated_images_dir,
os.path.dirname(settings.log_file),
]
# SQLite 数据库目录
if not is_postgresql_database():
db_path = settings.database_url.replace("sqlite:///", "")
directories.append(os.path.dirname(db_path))
for directory in directories:
Path(directory).mkdir(parents=True, exist_ok=True)