Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SMU-GDMU-CHINA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
SMU-GDMU-CHINA
Commits
44d75af2
Commit
44d75af2
authored
6 months ago
by
Xingan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
Navbar dark theme,miami bg
parent
c643dd12
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#414238
passed
6 months ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/asset/miami.jpg
+0
-0
0 additions, 0 deletions
src/asset/miami.jpg
src/components/Navbar.tsx
+4
-2
4 additions, 2 deletions
src/components/Navbar.tsx
src/containers/App/App.css
+8
-0
8 additions, 0 deletions
src/containers/App/App.css
with
12 additions
and
2 deletions
src/asset/miami.jpg
0 → 100644
+
0
−
0
View file @
44d75af2
389 KiB
This diff is collapsed.
Click to expand it.
src/components/Navbar.tsx
+
4
−
2
View file @
44d75af2
...
...
@@ -40,14 +40,16 @@ export function Navbar() {
});
return
(
<
BootstrapNavbar
expand
=
"lg"
className
=
"bg-body-tertiary"
fixed
=
"top"
>
<
BootstrapNavbar
expand
=
"lg"
className
=
"bg-body-tertiary"
fixed
=
"top"
data-bs-theme
=
"dark"
>
{
/* 修改navbar为dark */
}
<
Container
>
<
BootstrapNavbar
.
Brand
>
{
import
.
meta
.
env
.
VITE_TEAM_NAME
}
</
BootstrapNavbar
.
Brand
>
<
BootstrapNavbar
.
Toggle
aria-controls
=
"basic-navbar-nav"
/>
<
BootstrapNavbar
.
Collapse
id
=
"basic-navbar-nav"
>
<
Nav
className
=
"left-aligned"
>
{
pages
}
</
Nav
>
<
Nav
className
=
"left-aligned"
data-bs-theme
=
"dark"
>
{
pages
}
</
Nav
>
{
/* 修改了dropdown的颜色为dark */
}
</
BootstrapNavbar
.
Collapse
>
</
Container
>
</
BootstrapNavbar
>
...
...
This diff is collapsed.
Click to expand it.
src/containers/App/App.css
+
8
−
0
View file @
44d75af2
...
...
@@ -14,6 +14,14 @@ body {
background-color
:
#45b06c
ff
;
}
.bg-miami
{
background-image
:
url('/src/asset/miami.jpg')
;
/* 背景图片路径 */
background-size
:
cover
;
/* 使背景图片覆盖整个容器 */
background-position
:
center
;
/* 居中对齐背景图片 */
background-repeat
:
no-repeat
;
/* 防止背景图片重复 */
background-attachment
:
fixed
;
/* 固定背景图片,使其在滚动时不移动 */
}
/* CALLOUT */
.bd-callout
{
padding
:
1.25rem
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment