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
b51054a9
Commit
b51054a9
authored
Jun 06, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
force light mode (for a while)
parent
95ef3b51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
14 deletions
+16
-14
Page.tsx
components/Page/Page.tsx
+14
-12
index.tsx
pages/index.tsx
+1
-1
watchlist.tsx
pages/watchlist.tsx
+1
-1
No files found.
components/Page/Page.tsx
View file @
b51054a9
import
React
from
'
react
'
;
import
{
Box
,
HStack
}
from
'
@chakra-ui/react
'
;
import
{
Box
,
HStack
,
LightMode
}
from
'
@chakra-ui/react
'
;
import
AccountNav
from
'
../AccountNav/AccountNav
'
;
...
...
@@ -9,17 +9,19 @@ interface Props {
const
Page
=
({
children
}:
Props
)
=>
{
return
(
<
HStack
w=
"100%"
minH=
"100vh"
padding=
"140px 48px 48px 48px"
bgColor=
"gray.200"
spacing=
"12"
alignItems=
"stretch"
>
<
AccountNav
/>
<
Box
borderRadius=
"10px"
w=
"100%"
overflow=
"hidden"
>
{
children
}
</
Box
>
</
HStack
>
<
LightMode
>
<
HStack
w=
"100%"
minH=
"100vh"
padding=
"140px 48px 48px 48px"
bgColor=
"gray.200"
spacing=
"12"
alignItems=
"stretch"
>
<
AccountNav
/>
<
Box
borderRadius=
"10px"
w=
"100%"
overflow=
"hidden"
bgColor=
"white"
>
{
children
}
</
Box
>
</
HStack
>
</
LightMode
>
);
};
...
...
pages/index.tsx
View file @
b51054a9
...
...
@@ -6,7 +6,7 @@ import Page from '../components/Page/Page';
const
Home
:
NextPage
=
()
=>
{
return
(
<
Page
>
<
Center
h=
"100%"
bgColor=
"white"
color=
"black"
>
<
Center
h=
"100%"
>
Home Page
</
Center
>
</
Page
>
...
...
pages/watchlist.tsx
View file @
b51054a9
...
...
@@ -6,7 +6,7 @@ import Page from '../components/Page/Page';
const
WatchList
:
NextPage
=
()
=>
{
return
(
<
Page
>
<
Center
h=
"100%"
bgColor=
"white"
color=
"black"
>
<
Center
h=
"100%"
>
Watch List Page
</
Center
>
</
Page
>
...
...
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