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
2b54a30a
Commit
2b54a30a
authored
Jul 28, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Home page
parent
2b77a894
Pipeline
#22817
passed with stages
in 11 minutes
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
1 deletion
+67
-1
neos-assets/border.webp
neos-assets/border.webp
+0
-0
neos-assets/home-background.png
neos-assets/home-background.png
+0
-0
src/styles/core.scss
src/styles/core.scss
+1
-1
src/ui/Home/index.module.scss
src/ui/Home/index.module.scss
+54
-0
src/ui/Home/index.tsx
src/ui/Home/index.tsx
+12
-0
No files found.
neos-assets/border.webp
0 → 100644
View file @
2b54a30a
File added
neos-assets/home-background.png
0 → 100644
View file @
2b54a30a
3.07 MB
src/styles/core.scss
View file @
2b54a30a
...
@@ -26,7 +26,7 @@ table {
...
@@ -26,7 +26,7 @@ table {
#root
{
#root
{
margin
:
0
auto
;
margin
:
0
auto
;
text-align
:
center
;
text-align
:
center
;
width
:
100%
width
:
100%
;
}
}
@import
url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css")
,
@import
url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css")
,
...
...
src/ui/Home/index.module.scss
View file @
2b54a30a
#root
{
height
:
100%
;
}
body
{
body
{
text-align
:
center
;
text-align
:
center
;
position
:
relative
;
position
:
relative
;
...
@@ -46,4 +50,54 @@ body {
...
@@ -46,4 +50,54 @@ body {
.container
{
.container
{
position
:
relative
;
position
:
relative
;
display
:
flex
;
width
:
100%
;
height
:
95vh
;
align-items
:
center
;
.bg
{
width
:
100%
;
height
:
100%
;
background
:
url(/neos-assets/home-background.png)
;
background-size
:
cover
;
opacity
:
.2
;
}
.box
{
position
:
absolute
;
display
:
flex
;
flex-direction
:
column
;
width
:
500px
;
height
:
500px
;
left
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
background
:
#333b51
;
opacity
:
.8
;
border-radius
:
1
.2em
;
box-shadow
:
0
2px
10px
-5px
rgba
(
9
,
2
,
4
,.
8
);
align-items
:
center
;
p
{
font-size
:
2em
;
}
button
{
font-size
:
1
.2em
;
width
:
350px
;
height
:
45px
;
margin
:
.5em
;
background-color
:
#2c2c2c
;
border-width
:
.3em
;
border-image
:
url(/neos-assets/border.webp)
10
;
}
button
:hover
{
background-color
:
#393983
;
}
button
:active
{
background-color
:
#9d3939
;
}
}
}
}
src/ui/Home/index.tsx
View file @
2b54a30a
...
@@ -45,6 +45,18 @@ const Home: React.FC = () => {
...
@@ -45,6 +45,18 @@ const Home: React.FC = () => {
</
a
>
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
{
styles
.
container
}
>
<
div
className=
{
styles
.
bg
}
></
div
>
<
div
className=
{
styles
.
box
}
>
<
p
>
欢迎来到NEOS
</
p
>
<
button
>
娱乐匹配
</
button
>
<
button
>
竞技匹配
</
button
>
<
button
>
自定义匹配
</
button
>
<
button
>
人机对战
</
button
>
<
button
>
录像回放
</
button
>
<
button
>
卡组编辑
</
button
>
</
div
>
</
div
>
</>
</>
);
);
};
};
...
...
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