From 8c2a0e12a350000cc4abd7edc4738ffccc02bb0d Mon Sep 17 00:00:00 2001 From: wzj <244142824@qq.com> Date: Tue, 24 Jun 2025 13:13:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/styles.css | 175 +++++++++++++++++++++++++++++++++++++++++++ templates/index.html | 67 ++++++++++++----- 2 files changed, 225 insertions(+), 17 deletions(-) diff --git a/static/styles.css b/static/styles.css index f7d7213..ce84b08 100644 --- a/static/styles.css +++ b/static/styles.css @@ -240,4 +240,179 @@ input:checked + .slider { input:checked + .slider:before { transform: translateX(24px); +} + +/* 在现有CSS文件末尾添加以下内容 */ + +/* 首页专用样式 */ +.dashboard { + display: flex; + justify-content: space-around; + gap: 20px; + margin: 30px 0; +} + +.dashboard-card { + flex: 1; + background: linear-gradient(135deg, #4285f4, #34a853); + color: white; + padding: 25px; + border-radius: 10px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); + text-align: center; + transition: transform 0.3s, box-shadow 0.3s; +} + +.dashboard-card:hover { + transform: translateY(-5px); + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); +} + +.dashboard-card h3 { + margin-top: 0; + font-size: 18px; + font-weight: 500; +} + +.stat { + font-size: 32px; + font-weight: 600; + margin: 10px 0 0; +} + +.proxy-info { + background-color: #f8f9fa; + border-radius: 10px; + padding: 25px; + margin: 30px 0; + border-left: 4px solid #4285f4; +} + +.proxy-info h2 { + margin-top: 0; + color: #2c3e50; +} + +.proxy-info p { + margin: 15px 0; + line-height: 1.6; +} + +.proxy-info code { + background-color: #e9ecef; + padding: 2px 6px; + border-radius: 4px; + font-family: monospace; + color: #d63384; +} + +/* 响应式设计 */ +@media (max-width: 768px) { + .dashboard { + flex-direction: column; + } + + .dashboard-card { + margin-bottom: 15px; + } +} + +/* 添加以下新样式 */ + +.home-header { + text-align: center; + margin-bottom: 30px; +} + +.home-header .subtitle { + color: #6c757d; + font-size: 18px; + margin-top: 10px; +} + +.card-icon { + font-size: 40px; + margin-bottom: 15px; +} + +.card-desc { + font-size: 14px; + opacity: 0.9; + margin-top: 5px; +} + +.info-steps { + display: flex; + flex-direction: column; + gap: 15px; +} + +.step { + display: flex; + align-items: flex-start; + gap: 15px; +} + +.step-number { + background-color: #4285f4; + color: white; + width: 25px; + height: 25px; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-size: 14px; + flex-shrink: 0; +} + +.quick-actions { + display: flex; + gap: 20px; + margin-top: 30px; +} + +.action-card { + flex: 1; + background-color: white; + border-radius: 10px; + padding: 25px; + text-align: center; + text-decoration: none; + color: #333; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); + transition: transform 0.3s, box-shadow 0.3s; +} + +.action-card:hover { + transform: translateY(-3px); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); +} + +.action-icon { + font-size: 36px; + margin-bottom: 15px; +} + +.action-card h3 { + margin: 0 0 10px; + color: #2c3e50; +} + +.action-card p { + margin: 0; + color: #6c757d; + font-size: 14px; +} + +/* 响应式调整 */ +@media (max-width: 768px) { + .quick-actions { + flex-direction: column; + } + + .step { + flex-direction: column; + gap: 5px; + } } \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 7bd2c3e..ffa4f7d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,28 +1,61 @@ - {% extends "base.html" %} {% block title %}Squid代理用户管理系统{% endblock %} {% block content %} +

Squid代理用户管理系统

+

高效、安全的代理服务管理平台

+
-
-
-

用户数量

-

{{ user_count }}

-
- -
-

代理地址

-

{{ proxy_address }}:{{ proxy_port }}

-
+
+
+
👥
+

用户数量

+

{{ user_count }}

+

当前活跃用户总数

-
-

代理使用说明

-

1. 在浏览器或系统设置中配置代理服务器

-

2. 地址: {{ proxy_address }} 端口: {{ proxy_port }}

-

3. 使用格式: http://用户名:密码@{{ proxy_address }}:{{ proxy_port }}

-

4. 或者在PAC文件中配置: PROXY {{ proxy_address }}:{{ proxy_port }}

+
+
🔌
+

代理地址

+

{{ proxy_address }}:{{ proxy_port }}

+

服务器连接信息

+
+ +
+

📋 代理使用说明

+
+
+ 1 +

在浏览器或系统设置中配置代理服务器

+
+
+ 2 +

地址: {{ proxy_address }} 端口: {{ proxy_port }}

+
+
+ 3 +

使用格式: http://用户名:密码@{{ proxy_address }}:{{ proxy_port }}

+
+
+ 4 +

或者在PAC文件中配置: PROXY {{ proxy_address }}:{{ proxy_port }}

+
+
+
+ + {% endblock %} \ No newline at end of file