From b38a40911bc8dc14145f51806eb625018478d388 Mon Sep 17 00:00:00 2001
From: Cunninger <1803912219@qq.com>
Date: Sat, 18 Jan 2025 14:34:47 +0800
Subject: [PATCH] chore: add github link
---
worker.js | 41 ++++++++++++++++++++++++++++++++++-------
1 file changed, 34 insertions(+), 7 deletions(-)
diff --git a/worker.js b/worker.js
index b6ebe77..9de21a0 100644
--- a/worker.js
+++ b/worker.js
@@ -261,6 +261,7 @@ function getHTML() {
'
',
'',
'',
+ '',
'Qwen VL 智能识别系统',
// 添加 MathJax 支持
@@ -980,13 +981,6 @@ function getHTML() {
' color: #2980b9;',
' }',
- ' .footer-content {',
- ' margin-top: 2rem;',
- ' padding-top: 1rem;',
- ' border-top: 1px solid #eee;',
- ' text-align: center;',
- ' }',
-
' .powered-by {',
' color: #7f8c8d;',
' font-size: 0.9rem;',
@@ -1024,9 +1018,42 @@ function getHTML() {
' resize: none;',
' font-size: 14px;',
' }',
+
+ ' .github-link {',
+ ' position: fixed;',
+ ' right: 150px;', // 放在 token 设置按钮左边
+ ' top: 20px;',
+ ' background: #333;', // GitHub 的深色背景
+ ' color: white;',
+ ' border: none;',
+ ' padding: 10px;',
+ ' border-radius: 50%;', // 圆形按钮
+ ' cursor: pointer;',
+ ' z-index: 1001;',
+ ' width: 40px;',
+ ' height: 40px;',
+ ' display: flex;',
+ ' align-items: center;',
+ ' justify-content: center;',
+ ' transition: background 0.3s ease;',
+ ' }',
+
+ ' .github-link:hover {',
+ ' background: #24292e;', // GitHub hover 颜色
+ ' }',
+
+ ' .github-icon {',
+ ' width: 24px;',
+ ' height: 24px;',
+ ' }',
'',
'',
'',
+ '',
+ ' ',
+ '',
'',
'