diff --git a/controllers/home.py b/controllers/home.py index 237c1fd5c7e8491b26ab69b19257b8d5c7e403e7..3ed6e58916ea4dc38af4841471b73478a2060921 100644 --- a/controllers/home.py +++ b/controllers/home.py @@ -17,6 +17,7 @@ from utils.system import cfg,getHost,is_linux from utils import parser from utils.log import logger from utils.files import getAlist,get_live_url +from utils.update import getLocalVer from js.rules import getJxs import random @@ -43,7 +44,8 @@ def index(): manager0 += f':{sup_port}' manager1 += f':{sup_port}' manager2 += f':{sup_port}' - return render_template('index.html',getHost=getHost,manager0=manager0,manager1=manager1,manager2=manager2,is_linux=is_linux()) + ver = getLocalVer() + return render_template('index.html',ver=ver,getHost=getHost,manager0=manager0,manager1=manager1,manager2=manager2,is_linux=is_linux()) @home.route('/rules/clear') def rules_to_clear(): diff --git a/js/version.txt b/js/version.txt index 0444f320767571752143e9169e56454d978101fc..acf9bf09db017296e5c58f1770c9bacc492266f2 100644 --- a/js/version.txt +++ b/js/version.txt @@ -1 +1 @@ -3.2.1 \ No newline at end of file +3.2.2 \ No newline at end of file diff --git a/readme.md b/readme.md index 12de5cf049d9d78336be0c381e79a07261854ecb..281518de2e4fad54db1279ac60d415d5b6a34853 100644 --- a/readme.md +++ b/readme.md @@ -55,6 +55,7 @@ - [X] 6.升级到3.2.0,进行了全面后端重构用了蓝图写法,app.py文件以后尽量不动 - [X] 7.后台管理界面显示美化-感谢蓝莓果酱 - [X] 8.打包升级后的三平台镜像(v3.2.1) +- [X] 9.首页美化,升级版本号(v3.2.2) ###### 2022/09/05 - [X] 1.内置jar修复了原本tv_box无法播放直播的问题 - [X] 2.重新构建了三种平台的镜像 amd64,armv7,arm64 diff --git a/static/css/home.css b/static/css/home.css new file mode 100644 index 0000000000000000000000000000000000000000..888d82484beaa359c5b70afe816f63f71b6dc008 --- /dev/null +++ b/static/css/home.css @@ -0,0 +1,77 @@ +body { + text-align: center; + margin: 0 auto; +} + +.title { + background-image: linear-gradient(to right, orange, purple); + -webkit-background-clip: text; + color: transparent; + font-size: 30px; + text-align: center; + line-height: height; +} + +.ver_title { + font-size: 15px; + padding-left: 5px +} +.image{ + width: 100%; + height: 100%; + position: relative; + /*position: fixed;*/ + text-align: center; + /*fixed center;*/ +} +.image::after{ + content: ""; + background:url('https://tuapi.eees.cc/api.php?category=dongman&type=302&px=m'); + background-repeat: no-repeat; + opacity: 0.5; + /*position: fixed;*/ + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + z-index: -1; +} + +.btn { + margin-bottom: 1rem; + border: 1px solid #5fdefe; + width: 360px; + height: 30px; + text-align: center; + background-color: #1379cb; + color: #ffffff; + border-radius: 50px; + line-height: 30px; +} + +.btn1 { + margin-bottom: 1rem; + border: 1px solid #5c6cf6; + width: 360px; + height: 30px; + text-align: center; + border-radius: 50px; + line-height: 30px; +} +.btn1 a { + color: #000000; +} +.btn a { + color: #ffffff; +} + +a { + text-decoration: none; + text-align: center; + line-height: 30px; +} + +.jyw { + margin-bottom: 5rem; +} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 799764c49ae0c6ad0473b91e520055f97c3767f9..af9966ed4de06198b226477cc669b967636851a6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,88 +1,93 @@ - + - + dr_py首页 - + + - - + + + +
-

欢迎使用drpy项目

+

欢迎使用DR-PY首页界面
当前版本: {{ver}}框架开发:道长框架美化:蓝莓
+

可以简单的自定义爬虫实现cms数据接口

+
+
+ + + + + + + {% if is_linux %} + + {% endif %} + + {% if '192.168' in getHost(1) %} + + {% if is_linux %} + + {% endif %} + + {% endif %} + + {% if is_linux %} + + {% endif %} - - - - - - - -{% if is_linux %} - -{% endif %} - -局域网:{{ getHost(1) }} -{% if '192.168' in getHost(1) %} - -{% if is_linux %} - -{% endif %} - -{% endif %} - -{% if is_linux %} - -{% endif %} - +
\ No newline at end of file