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="

File not found

", status_code=404) -@app.get('/all') +@app.get('/all.json') async def get_all_articles(): try: with open('./all.json', 'r', encoding='utf-8') as f: @@ -38,7 +38,7 @@ async def get_all_articles(): except json.JSONDecodeError: return JSONResponse(content={"error": "Failed to decode JSON"}, status_code=500) -@app.get('/errors') +@app.get('/errors.json') async def get_error_friends(): try: with open('./errors.json', 'r', encoding='utf-8') as f: diff --git a/static/index.html b/static/index.html index 7b02a29..513ace6 100644 --- a/static/index.html +++ b/static/index.html @@ -7,16 +7,125 @@ - Frient-Circle-Lite + Friend-Circle-Lite +
+ Avatar +

Friend-Circle-Lite
服务已运行

+
+ 查看文档 + 测试接口 +
+ +