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
1ebfdef4
Commit
1ebfdef4
authored
Aug 06, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: small
parent
72c76146
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
54 deletions
+55
-54
src/styles/antd.scss
src/styles/antd.scss
+1
-0
src/styles/core.scss
src/styles/core.scss
+2
-1
src/ui/BuildDeck/DeckSelect.module.scss
src/ui/BuildDeck/DeckSelect.module.scss
+10
-13
src/ui/BuildDeck/DeckSelect.tsx
src/ui/BuildDeck/DeckSelect.tsx
+8
-10
src/ui/Layout/index.module.scss
src/ui/Layout/index.module.scss
+9
-6
src/ui/Layout/index.tsx
src/ui/Layout/index.tsx
+9
-3
src/ui/NewWaitRoom/index.tsx
src/ui/NewWaitRoom/index.tsx
+16
-21
No files found.
src/styles/antd.scss
View file @
1ebfdef4
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
.ant-btn
{
.ant-btn
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
}
}
// 点击按钮产生的波浪扩散效果
// 点击按钮产生的波浪扩散效果
...
...
src/styles/core.scss
View file @
1ebfdef4
@charset
"utf-8"
;
@charset
"utf-8"
;
@import
url("https://fonts.
googleapis.co
m/css2?family=Electrolize&display=swap")
;
@import
url("https://fonts.
font.i
m/css2?family=Electrolize&display=swap")
;
@import
"./antd.scss"
;
@import
"./antd.scss"
;
body
{
body
{
...
@@ -29,6 +29,7 @@ body {
...
@@ -29,6 +29,7 @@ body {
img
{
img
{
user-select
:
none
;
user-select
:
none
;
-webkit-user-drag
:
none
;
-webkit-user-drag
:
none
;
display
:
block
;
// 取消默认的4px下边距
}
}
*
{
*
{
...
...
src/ui/BuildDeck/DeckSelect.module.scss
View file @
1ebfdef4
...
@@ -45,20 +45,17 @@
...
@@ -45,20 +45,17 @@
}
}
}
}
.btn-add
-container
{
.btn-add
{
position
:
absolute
;
position
:
absolute
;
bottom
:
40px
;
bottom
:
40px
;
width
:
100%
;
left
:
0
;
display
:
flex
;
right
:
0
;
justify-content
:
center
;
margin
:
auto
;
.btn-add
{
background-color
:
rgba
(
0
,
168
,
202
,
0
.451
);
background-color
:
rgba
(
0
,
168
,
202
,
0
.451
);
box-shadow
:
0
0
20px
0
rgba
(
0
,
221
,
255
,
0
.5
);
&
:hover
{
box-shadow
:
0
0
20px
0
rgba
(
0
,
221
,
255
,
0
.5
);
background-color
:
rgba
(
0
,
168
,
202
,
0
.451
)
!
important
;
&
:hover
{
transform
:
scale
(
1
.1
);
background-color
:
rgba
(
0
,
168
,
202
,
0
.451
)
!
important
;
filter
:
brightness
(
1
.2
);
transform
:
scale
(
1
.1
);
filter
:
brightness
(
1
.2
);
}
}
}
}
}
src/ui/BuildDeck/DeckSelect.tsx
View file @
1ebfdef4
...
@@ -40,16 +40,14 @@ export const DeckSelect: React.FC<{
...
@@ -40,16 +40,14 @@ export const DeckSelect: React.FC<{
</
div
>
</
div
>
))
}
))
}
</
div
>
</
div
>
<
div
className=
{
styles
[
"
btn-add-container
"
]
}
>
<
Button
<
Button
className=
{
styles
[
"
btn-add
"
]
}
className=
{
styles
[
"
btn-add
"
]
}
icon=
{
<
PlusOutlined
/>
}
icon=
{
<
PlusOutlined
/>
}
shape=
"circle"
shape=
"circle"
type=
"text"
type=
"text"
onClick=
{
onAdd
}
onClick=
{
onAdd
}
size=
"large"
size=
"large"
/>
/>
</
div
>
</>
</>
);
);
};
};
...
...
src/ui/Layout/index.module.scss
View file @
1ebfdef4
...
@@ -7,15 +7,18 @@
...
@@ -7,15 +7,18 @@
padding
:
0
2rem
;
padding
:
0
2rem
;
gap
:
1
.5rem
;
gap
:
1
.5rem
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.logo
{
.logo-container
{
width
:
60px
;
align-items
:
center
;
filter
:
brightness
(
1
.5
);
height
:
min-content
;
transform
:
translateY
(
1px
);
.logo
{
width
:
60px
;
filter
:
brightness
(
1
.5
);
transform
:
translateY
(
1px
);
}
}
}
a
{
a
{
color
:
white
;
color
:
white
;
font-family
:
sans-serif
;
text-decoration
:
none
;
font-size
:
0
.825rem
;
font-size
:
0
.825rem
;
line-height
:
var
(
--
header-height
);
line-height
:
var
(
--
header-height
);
transition
:
0
.3s
;
transition
:
0
.3s
;
...
...
src/ui/Layout/index.tsx
View file @
1ebfdef4
...
@@ -20,12 +20,18 @@ export const Component = () => {
...
@@ -20,12 +20,18 @@ export const Component = () => {
return
(
return
(
<>
<>
<
nav
className=
{
styles
.
navbar
}
>
<
nav
className=
{
styles
.
navbar
}
>
<
img
<
div
className=
{
styles
[
"
logo-container
"
]
}
>
<
img
className=
{
styles
.
logo
}
src=
{
`${NeosConfig.assetsPath}/neos-logo.svg`
}
alt=
"NEOS"
/>
</
div
>
{
/* <img
className={styles.logo}
className={styles.logo}
src={`${NeosConfig.assetsPath}/neos-logo.svg`}
src={`${NeosConfig.assetsPath}/neos-logo.svg`}
alt="NEOS"
alt="NEOS"
/>
/> */
}
<
NavLink
to=
"/"
>
主页
</
NavLink
>
<
NavLink
to=
"/"
>
主页
</
NavLink
>
<
NavLink
to=
"/match"
>
匹配
</
NavLink
>
<
NavLink
to=
"/match"
>
匹配
</
NavLink
>
<
NavLink
to=
"/build"
>
组卡
</
NavLink
>
<
NavLink
to=
"/build"
>
组卡
</
NavLink
>
...
...
src/ui/NewWaitRoom/index.tsx
View file @
1ebfdef4
...
@@ -103,32 +103,27 @@ const MoraButton: React.FC<{
...
@@ -103,32 +103,27 @@ const MoraButton: React.FC<{
}
>
=
()
=>
{
}
>
=
()
=>
{
// TODO: 实现这个onclick
// TODO: 实现这个onclick
// 防抖
// 防抖
const
map
=
{
[
Mora
.
Rock
]:
"
石头
"
,
[
Mora
.
Scissors
]:
"
剪刀
"
,
[
Mora
.
Paper
]:
"
布
"
,
};
return
(
return
(
<
Popover
<
Popover
overlayStyle=
{
{
backdropFilter
:
"
blur(10px)
"
}
}
overlayStyle=
{
{
backdropFilter
:
"
blur(10px)
"
}
}
content=
{
content=
{
<
Space
>
<
Space
>
<
Button
{
[
Mora
.
Rock
,
Mora
.
Scissors
,
Mora
.
Paper
].
map
((
mora
)
=>
(
size=
"large"
<
Button
type=
"text"
size=
"large"
icon=
{
<
IconFont
type=
"icon-hand-rock"
size=
{
16
}
/>
}
type=
"text"
>
icon=
{
<
IconFont
type=
{
`icon-hand-${mora}`
}
size=
{
16
}
/>
}
石头
>
</
Button
>
{
map
[
mora
]
}
<
Button
</
Button
>
size=
"large"
))
}
type=
"text"
icon=
{
<
IconFont
type=
"icon-hand-scissors"
size=
{
16
}
/>
}
>
剪刀
</
Button
>
<
Button
size=
"large"
type=
"text"
icon=
{
<
IconFont
type=
"icon-hand-paper"
size=
{
16
}
/>
}
>
布
</
Button
>
</
Space
>
</
Space
>
}
}
trigger=
"focus"
trigger=
"focus"
...
...
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