From 53b16f44fbb2d04aa8cd1e38ba3e94115f5b4584 Mon Sep 17 00:00:00 2001 From: wood chen Date: Sat, 15 Feb 2025 08:31:07 +0800 Subject: [PATCH] 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 --- web/templates/admin/layout.html | 37 ++++++++++++++++++++++++++++++++- web/templates/admin/login.html | 17 ++++----------- 2 files changed, 40 insertions(+), 14 deletions(-) diff --git a/web/templates/admin/layout.html b/web/templates/admin/layout.html index 0519ecb..b401c94 100644 --- a/web/templates/admin/layout.html +++ b/web/templates/admin/layout.html @@ -1 +1,36 @@ - \ No newline at end of file + + + + + + 代理服务管理后台 + + + + + + +
+ {{template "Content" .}} +
+ + + + + \ No newline at end of file diff --git a/web/templates/admin/login.html b/web/templates/admin/login.html index 5cd9d24..c733211 100644 --- a/web/templates/admin/login.html +++ b/web/templates/admin/login.html @@ -1,13 +1,5 @@ - - - - - - 管理员登录 - - - - +{{define "Content"}} +

管理员登录

@@ -23,6 +15,5 @@
- - - \ No newline at end of file +
+{{end}} \ No newline at end of file