Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
d00ed8a2
Commit
d00ed8a2
authored
Jun 01, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
завел странички и сделал подобие лэйаута
parent
00573f67
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
65 additions
and
3 deletions
+65
-3
Nav.tsx
components/Nav/Nav.tsx
+19
-0
Page.tsx
components/Page/Page.tsx
+24
-0
index.tsx
pages/index.tsx
+6
-3
watchlist.tsx
pages/watchlist.tsx
+16
-0
No files found.
components/Nav/Nav.tsx
0 → 100644
View file @
d00ed8a2
import
React
from
'
react
'
;
import
{
Flex
,
Link
}
from
'
@chakra-ui/react
'
;
import
NextLink
from
'
next/link
'
;
const
Nav
=
()
=>
{
return
(
<
Flex
w=
"250px"
paddingRight=
"24px"
flexDirection=
"column"
color=
"blue.600"
>
<
NextLink
href=
"/"
><
Link
padding=
"8px 0px"
>
Home
</
Link
></
NextLink
>
<
NextLink
href=
"/watchlist"
><
Link
padding=
"8px 0px"
>
Watchlist
</
Link
></
NextLink
>
</
Flex
>
)
}
export
default
Nav
;
components/Page/Page.tsx
0 → 100644
View file @
d00ed8a2
import
React
from
'
react
'
;
import
{
Box
,
Flex
}
from
'
@chakra-ui/react
'
;
import
Nav
from
'
../Nav/Nav
'
;
interface
Props
{
children
:
React
.
ReactNode
;
}
const
Page
=
({
children
}:
Props
)
=>
{
return
(
<
Flex
w=
"100%"
minH=
"100vh"
padding=
"140px 48px 48px 48px"
bgColor=
"gray.200"
>
<
Nav
/>
<
Box
borderRadius=
"10px"
w=
"100%"
overflow=
"hidden"
>
{
children
}
</
Box
>
</
Flex
>
);
};
export
default
Page
pages/index.tsx
View file @
d00ed8a2
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
{
Center
}
from
'
@chakra-ui/react
'
;
import
{
Center
}
from
'
@chakra-ui/react
'
;
import
Page
from
'
../components/Page/Page
'
;
const
Home
:
NextPage
=
()
=>
{
const
Home
:
NextPage
=
()
=>
{
return
(
return
(
<
Center
w=
"100%"
h=
"100vh"
>
<
Page
>
<
Center
h=
"100%"
bgColor=
"white"
color=
"black"
>
Home Page
Home Page
</
Center
>
</
Center
>
</
Page
>
);
);
};
};
...
...
pages/watchlist.tsx
0 → 100644
View file @
d00ed8a2
import
React
from
'
react
'
;
import
type
{
NextPage
}
from
'
next
'
;
import
{
Center
}
from
'
@chakra-ui/react
'
;
import
Page
from
'
../components/Page/Page
'
;
const
WatchList
:
NextPage
=
()
=>
{
return
(
<
Page
>
<
Center
h=
"100%"
bgColor=
"white"
color=
"black"
>
Watch List Page
</
Center
>
</
Page
>
);
};
export
default
WatchList
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