diff --git a/web/src/components/PublicHeader.tsx b/web/src/components/PublicHeader.tsx index 3912e17..5dade29 100644 --- a/web/src/components/PublicHeader.tsx +++ b/web/src/components/PublicHeader.tsx @@ -61,7 +61,7 @@ const PublicHeader = () => { return ( <> -
+
diff --git a/web/src/pages/Public/ServerList.tsx b/web/src/pages/Public/ServerList.tsx index 6122795..047890e 100644 --- a/web/src/pages/Public/ServerList.tsx +++ b/web/src/pages/Public/ServerList.tsx @@ -321,7 +321,7 @@ const ServerList = () => { {/* Network */} -
+
IN: {formatSpeed(download)} diff --git a/web/src/pages/PublicLayout.tsx b/web/src/pages/PublicLayout.tsx index 35be789..6e953c5 100644 --- a/web/src/pages/PublicLayout.tsx +++ b/web/src/pages/PublicLayout.tsx @@ -2,9 +2,52 @@ import {Outlet} from 'react-router-dom'; import PublicHeader from '../components/PublicHeader'; import PublicFooter from '../components/PublicFooter'; +const globalStyles = ` + /* 防止滚动时出现白色背景 */ + html, body { + background-color: #05050a; + } + + /* 整体滚动条 */ + ::-webkit-scrollbar { + width: 8px; + height: 8px; + } + + /* 滚动条轨道 */ + ::-webkit-scrollbar-track { + background: #0a0a0f; + border-radius: 4px; + } + + /* 滚动条滑块 */ + ::-webkit-scrollbar-thumb { + background: #1e1e28; + border-radius: 4px; + border: 1px solid #2a2a35; + } + + /* 滚动条滑块悬停 */ + ::-webkit-scrollbar-thumb:hover { + background: #2a2a38; + } + + /* 滚动条角落 */ + ::-webkit-scrollbar-corner { + background: #05050a; + } + + /* Firefox 滚动条 */ + * { + scrollbar-width: thin; + scrollbar-color: #1e1e28 #0a0a0f; + } +`; + const PublicLayout = () => { return (
+ {/* 背景网格效果 */}
@@ -12,8 +55,8 @@ const PublicLayout = () => {
-
- + +