Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
I
incorrupt_party_build
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Yang
incorrupt_party_build
Commits
e2d55f74
Commit
e2d55f74
authored
Aug 07, 2026
by
Andy-bubu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
深色模式logo修改
parent
57e9254d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
2 deletions
+34
-2
DashboardSidebar.jsx
src/components/DashboardSidebar.jsx
+11
-1
global.less
src/global.less
+12
-0
Login.jsx
src/pages/Login.jsx
+11
-1
No files found.
src/components/DashboardSidebar.jsx
View file @
e2d55f74
import
xyLogoRed
from
'@/assets/identity/xy-logo-red.png'
;
import
xyLogoWhite
from
'@/assets/identity/xy-logo-white.png'
;
import
{
Sidebar
}
from
'@heroui-pro/react/sidebar'
;
import
{
Avatar
,
...
...
@@ -82,7 +83,16 @@ function SidebarContents({
<
Sidebar
.
Header
>
<
div
className=
"app-sidebar-brand rc-sidebar-brand"
>
<
div
className=
"app-sidebar-brand-mark rc-sidebar-brand-mark"
>
<
img
src=
{
xyLogoRed
}
alt=
"鑫元 Xinyuan"
className=
"rc-sidebar-logo"
/>
<
img
src=
{
xyLogoRed
}
alt=
"鑫元 Xinyuan"
className=
"rc-sidebar-logo rc-sidebar-logo--light"
/>
<
img
src=
{
xyLogoWhite
}
alt=
"鑫元 Xinyuan"
className=
"rc-sidebar-logo rc-sidebar-logo--dark"
/>
</
div
>
<
div
className=
"app-sidebar-brand-main rc-sidebar-brand-main"
...
...
src/global.less
View file @
e2d55f74
...
...
@@ -94,6 +94,18 @@ a {
object-fit: contain;
}
.login-brand-logo--dark {
display: none;
}
.dark .login-brand-logo--light {
display: none;
}
.dark .login-brand-logo--dark {
display: block;
}
.login-card-brand :is(h1, strong) {
margin: 0;
color: var(--rc-text-primary);
...
...
src/pages/Login.jsx
View file @
e2d55f74
import
xyLogoRed
from
'@/assets/identity/xy-logo-red.png'
;
import
xyLogoWhite
from
'@/assets/identity/xy-logo-white.png'
;
import
authService
from
'@/services/authService'
;
import
{
getCaptcha
,
userLogin
}
from
'@/services/DataService'
;
import
{
SiteContext
}
from
'@/wrapper/Site'
;
...
...
@@ -85,7 +86,16 @@ export default function LoginPage() {
<
Card
className=
"login-card"
>
<
Card
.
Content
>
<
div
className=
"login-brand login-card-brand"
>
<
img
src=
{
xyLogoRed
}
alt=
"鑫元"
className=
"login-brand-logo"
/>
<
img
src=
{
xyLogoRed
}
alt=
"鑫元"
className=
"login-brand-logo login-brand-logo--light"
/>
<
img
src=
{
xyLogoWhite
}
alt=
"鑫元"
className=
"login-brand-logo login-brand-logo--dark"
/>
<
h1
>
{
siteTitle
}
</
h1
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment