Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
7520d5f5
Commit
7520d5f5
authored
Aug 09, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: nav link
parent
c711f067
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
+21
-8
src/ui/Layout/index.module.scss
src/ui/Layout/index.module.scss
+2
-2
src/ui/Layout/index.tsx
src/ui/Layout/index.tsx
+19
-6
No files found.
src/ui/Layout/index.module.scss
View file @
7520d5f5
...
...
@@ -4,7 +4,7 @@
display
:
flex
;
flex-wrap
:
wrap
;
align-items
:
center
;
padding
:
0
2rem
;
padding
:
0
2rem
0
1rem
;
gap
:
1
.5rem
;
box-sizing
:
border-box
;
.logo-container
{
...
...
@@ -27,7 +27,7 @@
}
}
a
{
.link
{
color
:
white
;
font-size
:
0
.825rem
;
line-height
:
var
(
--
header-height
);
...
...
src/ui/Layout/index.tsx
View file @
7520d5f5
...
...
@@ -44,20 +44,33 @@ export const Component = () => {
<>
{
!
pathnamesHideHeader
.
includes
(
pathname
)
&&
(
<
nav
className=
{
styles
.
navbar
}
>
<
div
className=
{
styles
[
"
logo-container
"
]
}
>
<
a
href=
"https://github.com/DarkNeos/neos-ts"
title=
"repo"
className=
{
styles
[
"
logo-container
"
]
}
>
<
img
className=
{
styles
.
logo
}
src=
{
`${NeosConfig.assetsPath}/neos-logo.svg`
}
alt=
"NEOS"
/>
</
div
>
<
NavLink
to=
"/"
>
主页
</
NavLink
>
<
NavLink
to=
"/match"
>
匹配
</
NavLink
>
<
NavLink
to=
"/build"
>
组卡
</
NavLink
>
</
a
>
<
NavLink
to=
"/"
className=
{
styles
.
link
}
>
主页
</
NavLink
>
<
NavLink
to=
"/match"
className=
{
styles
.
link
}
>
匹配
</
NavLink
>
<
NavLink
to=
"/build"
className=
{
styles
.
link
}
>
组卡
</
NavLink
>
<
span
style=
{
{
flexGrow
:
1
}
}
/>
<
span
className=
{
styles
.
profile
}
>
<
NeosAvatar
/>
<
NavLink
to=
"/profile"
>
个人中心
</
NavLink
>
<
NavLink
to=
"/profile"
className=
{
styles
.
link
}
>
个人中心
</
NavLink
>
</
span
>
</
nav
>
)
}
...
...
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