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
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
MyCard
Neos
Commits
91ea1bf9
Commit
91ea1bf9
authored
Jul 28, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix css styles
parent
2b54a30a
Pipeline
#22818
passed with stages
in 14 minutes and 45 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
21 deletions
+14
-21
neos-assets/home-background.png
neos-assets/home-background.png
+0
-0
src/ui/Duel/Message/EndModal/index.tsx
src/ui/Duel/Message/EndModal/index.tsx
+1
-1
src/ui/Home/index.module.scss
src/ui/Home/index.module.scss
+0
-12
src/ui/Home/index.tsx
src/ui/Home/index.tsx
+13
-8
No files found.
neos-assets/home-background.png
View replaced file @
2b54a30a
View file @
91ea1bf9
3.07 MB
|
W:
|
H:
651 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/ui/Duel/Message/EndModal/index.tsx
View file @
91ea1bf9
...
@@ -29,7 +29,7 @@ export const EndModal: React.FC = () => {
...
@@ -29,7 +29,7 @@ export const EndModal: React.FC = () => {
const
onReturn
=
()
=>
{
const
onReturn
=
()
=>
{
resetUniverse
();
resetUniverse
();
rs
();
rs
();
navigate
(
"
/
"
);
navigate
(
"
/
home
"
);
};
};
return
(
return
(
...
...
src/ui/Home/index.module.scss
View file @
91ea1bf9
#root
{
height
:
100%
;
}
body
{
text-align
:
center
;
position
:
relative
;
margin
:
0
;
padding
:
0
;
border
:
0
;
}
.account-header
{
.account-header
{
position
:
relative
;
position
:
relative
;
z-index
:
200
;
z-index
:
200
;
...
...
src/ui/Home/index.tsx
View file @
91ea1bf9
import
React
from
"
react
"
;
import
React
,
{
useEffect
}
from
"
react
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
useConfig
}
from
"
@/config
"
;
import
{
useConfig
}
from
"
@/config
"
;
...
@@ -10,9 +11,17 @@ const NeosConfig = useConfig();
...
@@ -10,9 +11,17 @@ const NeosConfig = useConfig();
const
Home
:
React
.
FC
=
()
=>
{
const
Home
:
React
.
FC
=
()
=>
{
const
{
user
}
=
useSnapshot
(
accountStore
);
const
{
user
}
=
useSnapshot
(
accountStore
);
const
navigate
=
useNavigate
();
const
onLogout
=
()
=>
{};
// TODO
const
onLogout
=
()
=>
{};
// TODO
useEffect
(()
=>
{
if
(
!
user
)
{
// 跳转SSO界面进行登录
navigate
(
"
/sso
"
);
}
},
[
user
]);
return
(
return
(
<>
<>
<
div
className=
{
styles
[
"
account-header
"
]
}
>
<
div
className=
{
styles
[
"
account-header
"
]
}
>
...
@@ -36,11 +45,7 @@ const Home: React.FC = () => {
...
@@ -36,11 +45,7 @@ const Home: React.FC = () => {
个人中心
个人中心
</
a
>
</
a
>
<
span
className=
{
styles
.
sep
}
>
|
</
span
>
<
span
className=
{
styles
.
sep
}
>
|
</
span
>
<
a
<
a
className=
{
styles
[
"
header-user-btn
"
]
}
href=
""
onClick=
{
onLogout
}
>
className=
{
styles
[
"
header-user-btn
"
]
}
href=
"javascript:void(0)"
onClick=
{
onLogout
}
>
登出
登出
</
a
>
</
a
>
</
div
>
</
div
>
...
@@ -48,10 +53,10 @@ const Home: React.FC = () => {
...
@@ -48,10 +53,10 @@ const Home: React.FC = () => {
<
div
className=
{
styles
.
container
}
>
<
div
className=
{
styles
.
container
}
>
<
div
className=
{
styles
.
bg
}
></
div
>
<
div
className=
{
styles
.
bg
}
></
div
>
<
div
className=
{
styles
.
box
}
>
<
div
className=
{
styles
.
box
}
>
<
p
>
欢迎来到NEOS
</
p
>
<
p
>
欢迎来到NEOS
,
{
user
?.
username
}
</
p
>
<
button
>
娱乐匹配
</
button
>
<
button
>
娱乐匹配
</
button
>
<
button
>
竞技匹配
</
button
>
<
button
>
竞技匹配
</
button
>
<
button
>
自定义匹配
</
button
>
<
button
onClick=
{
()
=>
navigate
(
"
/match
"
)
}
>
自定义匹配
</
button
>
<
button
>
人机对战
</
button
>
<
button
>
人机对战
</
button
>
<
button
>
录像回放
</
button
>
<
button
>
录像回放
</
button
>
<
button
>
卡组编辑
</
button
>
<
button
>
卡组编辑
</
button
>
...
...
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