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