主要功能: - 完整的Flask-Admin后台管理系统 - 网站/标签/新闻管理功能 - 用户登录认证系统 - 科技感/未来风UI设计 - 标签分类系统(取代传统分类) - 详情页面展示 - 数据库迁移脚本 - 书签导入解析工具 技术栈: - Flask + SQLAlchemy - Flask-Admin管理界面 - Bootstrap 4响应式设计 - 用户认证与权限管理 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
108 lines
6.9 KiB
HTML
108 lines
6.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en"><head>
|
|
<meta charset="utf-8"/>
|
|
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
|
|
<title>Admin Login - AI Discovery</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap" rel="stylesheet"/>
|
|
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet"/>
|
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet"/>
|
|
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
|
<script>
|
|
tailwind.config = {
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
"primary": "#0ea5e9", // Sky 500 - Clearer on light
|
|
"primary-dark": "#0284c7", // Sky 600 - Hover state
|
|
"background": "#f8fafc", // Slate 50 - Light, clean
|
|
"surface": "#ffffff",
|
|
"input-bg": "#ffffff",
|
|
"input-border": "#e2e8f0", // Slate 200
|
|
"text-main": "#0f172a", // Slate 900
|
|
"text-secondary": "#334155", // Slate 700
|
|
"text-muted": "#64748b", // Slate 500
|
|
},
|
|
fontFamily: {
|
|
"display": ["Space Grotesk", "sans-serif"],
|
|
"body": ["Noto Sans", "sans-serif"],
|
|
},
|
|
backgroundImage: {
|
|
// Very subtle grid for light mode
|
|
'tech-grid': "radial-gradient(circle at center, rgba(14, 165, 233, 0.04) 0%, transparent 60%), linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px)",
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
.glass-panel {
|
|
background: rgba(255, 255, 255, 0.75);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
}
|
|
.tech-bg-size {
|
|
background-size: 100% 100%, 40px 40px, 40px 40px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-background font-display text-text-main min-h-screen flex flex-col items-center justify-center relative overflow-hidden selection:bg-primary/20 selection:text-primary-dark">
|
|
<div class="absolute inset-0 z-0 bg-tech-grid tech-bg-size pointer-events-none"></div>
|
|
<div class="absolute top-[-20%] right-[-10%] w-[600px] h-[600px] bg-sky-200/40 rounded-full blur-[120px] pointer-events-none mix-blend-multiply"></div>
|
|
<div class="absolute bottom-[-10%] left-[-10%] w-[500px] h-[500px] bg-indigo-100/60 rounded-full blur-[100px] pointer-events-none mix-blend-multiply"></div>
|
|
<div class="w-full max-w-[480px] px-4 z-10 flex flex-col gap-6">
|
|
<a class="group flex items-center gap-2 text-text-muted hover:text-text-main transition-colors w-fit" href="#">
|
|
<div class="flex items-center justify-center w-8 h-8 rounded-full border border-input-border bg-white group-hover:border-primary/50 group-hover:bg-primary/5 transition-all shadow-sm">
|
|
<span class="material-symbols-outlined text-sm">arrow_back</span>
|
|
</div>
|
|
<span class="text-sm font-medium">Back to Home</span>
|
|
</a>
|
|
<div class="glass-panel border border-white rounded-2xl shadow-[0_4px_30px_rgba(0,0,0,0.03)] p-8 md:p-12 relative overflow-hidden ring-1 ring-black/5">
|
|
<div class="absolute top-0 left-0 w-full h-[2px] bg-gradient-to-r from-transparent via-primary/50 to-transparent"></div>
|
|
<div class="flex flex-col gap-2 mb-8">
|
|
<div class="flex items-center gap-3 mb-2">
|
|
<div class="p-2 rounded-lg bg-primary/10 text-primary">
|
|
<span class="material-symbols-outlined text-2xl">shield_person</span>
|
|
</div>
|
|
<span class="text-xs font-bold tracking-widest uppercase text-primary">System Access</span>
|
|
</div>
|
|
<h1 class="text-3xl font-black tracking-tight text-text-main leading-tight">管理员登录</h1>
|
|
<p class="text-text-muted text-base font-normal">Enter your credentials to access the AI Control Panel.</p>
|
|
</div>
|
|
<form class="flex flex-col gap-5">
|
|
<div class="space-y-2">
|
|
<label class="text-text-secondary text-sm font-semibold leading-normal" for="username">Username</label>
|
|
<div class="relative group">
|
|
<input class="form-input flex w-full h-12 pl-11 pr-4 rounded-lg text-text-main focus:outline-0 focus:ring-2 focus:ring-primary/20 border border-input-border bg-input-bg focus:border-primary placeholder:text-slate-400 text-base font-normal leading-normal transition-all shadow-sm" id="username" placeholder="Enter your username" type="text"/>
|
|
<div class="absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:text-primary transition-colors flex items-center justify-center pointer-events-none">
|
|
<span class="material-symbols-outlined text-[20px]">person</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="space-y-2">
|
|
<div class="flex justify-between items-end">
|
|
<label class="text-text-secondary text-sm font-semibold leading-normal" for="password">Password</label>
|
|
<a class="text-xs font-medium text-primary hover:text-primary-dark transition-colors mb-1" href="#">Forgot password?</a>
|
|
</div>
|
|
<div class="flex w-full items-stretch rounded-lg group relative">
|
|
<input class="form-input flex w-full h-12 pl-11 pr-11 rounded-lg text-text-main focus:outline-0 focus:ring-2 focus:ring-primary/20 border border-input-border bg-input-bg focus:border-primary placeholder:text-slate-400 text-base font-normal leading-normal transition-all shadow-sm z-10" id="password" placeholder="Enter your password" type="password"/>
|
|
<div class="absolute left-3 top-1/2 -translate-y-1/2 text-slate-400 group-focus-within:text-primary transition-colors flex items-center justify-center pointer-events-none z-20">
|
|
<span class="material-symbols-outlined text-[20px]">lock</span>
|
|
</div>
|
|
<button class="absolute right-0 top-0 h-full px-3 text-slate-400 hover:text-text-secondary transition-colors flex items-center justify-center z-20 focus:outline-none" type="button">
|
|
<span class="material-symbols-outlined text-[20px]">visibility_off</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<button class="mt-4 flex w-full h-12 cursor-pointer items-center justify-center overflow-hidden rounded-lg bg-primary text-white text-base font-bold leading-normal tracking-wide hover:bg-primary-dark transition-all active:scale-[0.98] shadow-lg shadow-primary/25 hover:shadow-primary/40" type="button">
|
|
<span class="truncate">Login</span>
|
|
</button>
|
|
</form>
|
|
<div class="mt-8 flex justify-center gap-6 border-t border-slate-100 pt-6">
|
|
<p class="text-text-muted text-xs text-center font-medium">
|
|
Protected by reCAPTCHA. <a class="underline hover:text-primary decoration-slate-300 hover:decoration-primary" href="#">Privacy</a> & <a class="underline hover:text-primary decoration-slate-300 hover:decoration-primary" href="#">Terms</a>.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body></html> |