wood chen 53b16f44fb feat(admin): Implement admin layout and login page template
- Add responsive admin layout with navigation menu
- Convert login page to use layout template system
- Integrate Tailwind CSS and DaisyUI for styling
- Add authentication check script in layout
2025-02-15 08:31:07 +08:00

19 lines
857 B
HTML

{{define "Content"}}
<div class="flex items-center justify-center min-h-[80vh]">
<div class="card w-96 bg-base-100 shadow-xl">
<div class="card-body">
<h2 class="card-title justify-center text-2xl font-bold mb-6">管理员登录</h2>
<div class="form-control w-full">
<label class="label">
<span class="label-text">密码</span>
</label>
<input type="password" id="password" placeholder="请输入管理密码" class="input input-bordered w-full" />
</div>
<div class="card-actions justify-end mt-6">
<button onclick="login()" class="btn btn-primary w-full">登录</button>
</div>
<div id="message" class="alert mt-4" style="display: none;"></div>
</div>
</div>
</div>
{{end}}