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
6faa4ab4
Commit
6faa4ab4
authored
Mar 04, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add layout.tsx
parent
89790ce6
Pipeline
#20421
passed with stages
in 5 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
0 deletions
+49
-0
src/ui/Duel/layout.tsx
src/ui/Duel/layout.tsx
+49
-0
No files found.
src/ui/Duel/layout.tsx
0 → 100644
View file @
6faa4ab4
import
React
from
"
react
"
;
import
{
Layout
}
from
"
antd
"
;
const
{
Header
,
Footer
,
Sider
,
Content
}
=
Layout
;
const
headerStyle
:
React
.
CSSProperties
=
{
textAlign
:
"
center
"
,
color
:
"
#fff
"
,
height
:
64
,
paddingInline
:
50
,
lineHeight
:
"
64px
"
,
};
const
contentStyle
:
React
.
CSSProperties
=
{
textAlign
:
"
center
"
,
minHeight
:
120
,
lineHeight
:
"
120px
"
,
};
const
siderStyle
:
React
.
CSSProperties
=
{
textAlign
:
"
center
"
,
lineHeight
:
"
120px
"
,
color
:
"
#fff
"
,
};
const
footerStyle
:
React
.
CSSProperties
=
{
textAlign
:
"
center
"
,
color
:
"
#fff
"
,
};
const
NeosLayout
=
(
props
:
{
sider
:
React
.
ReactNode
;
header
:
React
.
ReactNode
;
content
:
React
.
ReactNode
;
footer
:
React
.
ReactNode
;
})
=>
{
return
(
<
Layout
>
<
Sider
style=
{
siderStyle
}
>
{
props
.
sider
}
</
Sider
>
<
Layout
>
<
Header
style=
{
headerStyle
}
>
{
props
.
header
}
</
Header
>
<
Content
style=
{
contentStyle
}
>
{
props
.
content
}
</
Content
>
<
Footer
style=
{
footerStyle
}
>
{
props
.
footer
}
</
Footer
>
</
Layout
>
</
Layout
>
);
};
export
default
NeosLayout
;
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