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
c559bdad
Commit
c559bdad
authored
Aug 03, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: card detail in card build
parent
33a662d1
Pipeline
#22881
failed with stages
in 12 minutes and 11 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
0 deletions
+53
-0
src/ui/BuildDeck/CardDetail.module.scss
src/ui/BuildDeck/CardDetail.module.scss
+28
-0
src/ui/BuildDeck/CardDetail.tsx
src/ui/BuildDeck/CardDetail.tsx
+23
-0
src/ui/BuildDeck/index.tsx
src/ui/BuildDeck/index.tsx
+2
-0
src/ui/Shared/CardInfo/index.tsx
src/ui/Shared/CardInfo/index.tsx
+0
-0
No files found.
src/ui/BuildDeck/CardDetail.module.scss
0 → 100644
View file @
c559bdad
.detail
{
z-index
:
10
;
position
:
absolute
;
left
:
-100%
;
top
:
0
;
width
:
100%
;
height
:
100%
;
padding
:
0
10px
20px
10px
;
transition
:
0
.2s
;
}
.detail.open
{
left
:
0
;
}
.container
{
height
:
100%
;
background-color
:
rgba
(
141
,
133
,
166
,
0
.245
);
border
:
1px
solid
rgba
(
255
,
255
,
255
,
0
.2
);
backdrop-filter
:
blur
(
20px
);
border-radius
:
4px
;
}
.btn-close
{
position
:
absolute
;
right
:
5px
;
top
:
5px
;
}
src/ui/BuildDeck/CardDetail.tsx
0 → 100644
View file @
c559bdad
import
{
Button
}
from
"
antd
"
;
import
styles
from
"
./CardDetail.module.scss
"
;
import
{
LineOutlined
}
from
"
@ant-design/icons
"
;
import
classNames
from
"
classnames
"
;
export
const
CardDetail
:
React
.
FC
<
{
code
:
number
;
open
:
boolean
;
onClose
:
()
=>
void
;
}
>
=
({
code
,
open
,
onClose
})
=>
{
return
(
<
div
className=
{
classNames
(
styles
.
detail
,
{
[
styles
.
open
]:
open
})
}
>
<
div
className=
{
styles
.
container
}
>
<
Button
className=
{
styles
[
"
btn-close
"
]
}
icon=
{
<
LineOutlined
/>
}
type=
"text"
onClick=
{
onClose
}
/>
</
div
>
</
div
>
);
};
src/ui/BuildDeck/index.tsx
View file @
c559bdad
...
...
@@ -20,6 +20,7 @@ import { Background } from "../Shared";
import
styles
from
"
./index.module.scss
"
;
import
{
DeckSelect
}
from
"
./DeckSelect
"
;
import
{
CardDetail
}
from
"
./CardDetail
"
;
const
{
Content
,
Sider
}
=
Layout
;
...
...
@@ -48,6 +49,7 @@ export const Component: React.FC = () => {
onDownload=
{
(
id
)
=>
console
.
log
(
id
)
}
onAdd=
{
()
=>
console
.
log
(
"
add
"
)
}
/>
<
CardDetail
code=
{
123
}
open=
{
false
}
onClose=
{
()
=>
{}
}
/>
</
Sider
>
<
Content
className=
{
styles
.
content
}
>
<
Deck
/>
...
...
src/ui/Shared/CardInfo/index.tsx
0 → 100644
View file @
c559bdad
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