From 399df46809e8aeb9d119e6a6893cc1999bb53fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B3=E7=A5=9E?= <3162475700@qq.com> Date: Fri, 27 Sep 2024 13:46:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=81=F0=9F=8F=BB=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E9=87=87=E7=94=A8=E6=9B=B4=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E5=8A=A8=E7=94=BB=E5=92=8C=E6=9B=B4=E7=B2=BE=E7=BB=86?= =?UTF-8?q?=E7=9A=84=E4=B8=BB=E9=A1=B5(@JLinMr)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deal_subscribe_issue.yml | 3 +- main/fclite.css | 18 ++-- server.py | 6 +- static/index.html | 115 ++++++++++++++++++++- 4 files changed, 126 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deal_subscribe_issue.yml b/.github/workflows/deal_subscribe_issue.yml index d1ff3cc..fb73812 100644 --- a/.github/workflows/deal_subscribe_issue.yml +++ b/.github/workflows/deal_subscribe_issue.yml @@ -25,9 +25,8 @@ jobs: token: ${{ secrets.GTIHUB_TOKEN }} issue-number: ${{ github.event.issue.number }} body: | - 🤩你好呀! ${{ github.event.issue.user.login }}!你已经成功通过邮件订阅了清羽飞扬的小站啦!若有新文章将通过邮箱推送给你!谢谢你的订阅! + 🤩你好呀! ${{ github.event.issue.user.login }}!你已经成功通过邮件订阅了本站啦!若有新文章将通过邮箱推送给你!谢谢你的订阅! 😥如果您实在想要关闭订阅,在右下角直接删除这个issue就好!咕咕咕咕咕咕咕! - 🤤个人主页是:https://www.liushen.fun ,欢迎来看看呀! - name: Close issue uses: actions-cool/issues-helper@v3 diff --git a/main/fclite.css b/main/fclite.css index 4b97938..9c961f0 100644 --- a/main/fclite.css +++ b/main/fclite.css @@ -41,10 +41,6 @@ --load-more-btn-bg-color: var(--container-bg-color); } -body { - background-color: var(--background-color); -} - #friend-circle-lite-root { width: 100%; } @@ -119,7 +115,7 @@ body { z-index: 999; opacity: 0; visibility: hidden; - transition: opacity 0.3s; + transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; } .modal-open { @@ -128,10 +124,11 @@ body { } .modal-content { + opacity: 0; position: relative; top: 50%; left: 50%; - transform: translate(-50%, -50%); + transform: translate(-50%, -50%) translateY(-50px); width: 350px; background-color: var(--modal-content-bg-color); padding: 20px; @@ -140,7 +137,12 @@ body { max-height: 90%; overflow: hidden; border-radius: 20px; - transition: opacity 0.3s; + transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; +} + +.modal.modal-open .modal-content { + transform: translate(-50%, -50%) translateY(0); + opacity: 1; } .modal-content:hover #modal-bg { @@ -293,7 +295,7 @@ body { font-size: 12px; color: var(--author-color); padding: 5px; - height: 25px; + line-height: 15px; } .card-author:hover { diff --git a/server.py b/server.py index 150ed36..9096097 100644 --- a/server.py +++ b/server.py @@ -21,13 +21,13 @@ app.add_middleware( @app.get("/", response_class=HTMLResponse) async def root(): try: - with open('./server/deploy-home.html', 'r', encoding='utf-8') as f: + with open('./static/index.html', 'r', encoding='utf-8') as f: html_content = f.read() return HTMLResponse(content=html_content) except FileNotFoundError: return HTMLResponse(content="