This commit is contained in:
ditiqi 2025-02-27 19:31:48 +08:00
parent fdfa1cc698
commit 6e8ba21b17
4 changed files with 45 additions and 5 deletions

37
apps/web/public/logo.svg Executable file
View File

@ -0,0 +1,37 @@
<svg width="200" height="200" viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg">
<!-- 背景圆形 -->
<circle cx="100" cy="100" r="90" fill="url(#gradient-bg)" />
<!-- 书本形状 -->
<path d="M60 60C60 55.5817 63.5817 52 68 52H132C136.418 52 140 55.5817 140 60V140C140 144.418 136.418 148 132 148H68C63.5817 148 60 144.418 60 140V60Z" fill="white"/>
<!-- 书页分隔线 -->
<path d="M100 52V148" stroke="#EAEAEA" stroke-width="2"/>
<!-- 火焰图形 -->
<path d="M85 65C85 65 75 80 80 95C85 110 95 105 95 120C95 135 85 140 85 140" stroke="url(#gradient-flame)" stroke-width="8" stroke-linecap="round"/>
<path d="M115 65C115 65 125 80 120 95C115 110 105 105 105 120C105 135 115 140 115 140" stroke="url(#gradient-flame)" stroke-width="8" stroke-linecap="round"/>
<!-- 中间连接线 - 类似信号传播 -->
<path d="M70 95H130" stroke="url(#gradient-line)" stroke-width="4" stroke-linecap="round"/>
<path d="M80 110H120" stroke="url(#gradient-line)" stroke-width="4" stroke-linecap="round"/>
<path d="M90 125H110" stroke="url(#gradient-line)" stroke-width="4" stroke-linecap="round"/>
<!-- 渐变定义 -->
<defs>
<linearGradient id="gradient-bg" x1="10" y1="10" x2="190" y2="190" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#3B82F6"/>
<stop offset="100%" stop-color="#1E40AF"/>
</linearGradient>
<linearGradient id="gradient-flame" x1="100" y1="65" x2="100" y2="140" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#F97316"/>
<stop offset="100%" stop-color="#EA580C"/>
</linearGradient>
<linearGradient id="gradient-line" x1="70" y1="110" x2="130" y2="110" gradientUnits="userSpaceOnUse">
<stop offset="0%" stop-color="#3B82F6"/>
<stop offset="100%" stop-color="#1E40AF"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -19,9 +19,10 @@ export function MainHeader() {
const { searchValue, setSearchValue } = useMainContext(); const { searchValue, setSearchValue } = useMainContext();
return ( return (
<div className="select-none flex items-center justify-center bg-white shadow-md border-b border-gray-100 fixed w-full z-30 py-2"> <div className="select-none w-full flex items-center justify-start bg-white shadow-md border-b border-gray-100 fixed z-30 py-2">
<div className="w-full max-w-screen-3xl px-4 md:px-6 mx-auto flex items-center justify-between h-full"> <div className="flex-1 px-4 md:px-6 mx-auto flex items-center justify-start h-full">
<div className="flex items-center space-x-8"> <div className="flex items-center justify-start space-x-4">
<img src="/logo.svg" className="h-8 w-auto " />
<div <div
onClick={() => navigate("/")} onClick={() => navigate("/")}
className="text-2xl font-bold bg-gradient-to-r from-primary-600 via-primary-500 to-primary-400 bg-clip-text text-transparent hover:scale-105 transition-transform cursor-pointer"> className="text-2xl font-bold bg-gradient-to-r from-primary-600 via-primary-500 to-primary-400 bg-clip-text text-transparent hover:scale-105 transition-transform cursor-pointer">
@ -30,7 +31,7 @@ export function MainHeader() {
<NavigationMenu /> <NavigationMenu />
</div> </div>
</div> </div>
<div className=" flex justify-end gap-4 mr-2"> <div className=" flex ">
<Input <Input
size="large" size="large"
prefix={ prefix={
@ -59,6 +60,8 @@ export function MainHeader() {
} }
}} }}
/> />
</div>
<div className="flex-1 flex justify-end gap-4 mr-2">
<div className="flex items-center gap-4"> <div className="flex items-center gap-4">
{isAuthenticated && ( {isAuthenticated && (
<> <>

View File

@ -100,7 +100,7 @@ server {
# 仅供内部使用 # 仅供内部使用
internal; internal;
# 代理到认证服务 # 代理到认证服务
proxy_pass http://host.docker.internal:3001/auth/file; proxy_pass http://host.docker.internal:3000/auth/file;
# 请求优化:不传递请求体 # 请求优化:不传递请求体
proxy_pass_request_body off; proxy_pass_request_body off;

0
web-dist/index.html Executable file → Normal file
View File