Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Saddlemountain Page
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
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
Verónica Silva
Saddlemountain Page
Commits
73496a31
Commit
73496a31
authored
Nov 23, 2021
by
VeroSilva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding the project palette
parent
6e0c6c4b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
21 deletions
+46
-21
src/components/Drawer.jsx
src/components/Drawer.jsx
+20
-17
src/components/palette.js
src/components/palette.js
+22
-0
src/views/Home.jsx
src/views/Home.jsx
+4
-4
No files found.
src/components/Drawer.jsx
View file @
73496a31
import
React
,
{
useState
}
from
"
react
"
;
import
React
,
{
useState
}
from
"
react
"
import
{
Drawer
,
IconButton
,
List
,
ListItem
,
ListItemText
,
}
from
"
@material-ui/core
"
;
import
ListItemIcon
from
'
@mui/material/ListItemIcon
'
;
import
Divider
from
'
@mui/material/Divider
'
;
import
MenuRoundedIcon
from
'
@mui/icons-material/MenuRounded
'
;
import
InventoryRoundedIcon
from
'
@mui/icons-material/InventoryRounded
'
;
import
PeopleOutlineRoundedIcon
from
'
@mui/icons-material/PeopleOutlineRounded
'
;
import
LocalMallRoundedIcon
from
'
@mui/icons-material/LocalMallRounded
'
;
import
ArticleRoundedIcon
from
'
@mui/icons-material/ArticleRounded
'
;
}
from
"
@material-ui/core
"
import
ListItemIcon
from
"
@mui/material/ListItemIcon
"
import
Divider
from
"
@mui/material/Divider
"
import
MenuRoundedIcon
from
"
@mui/icons-material/MenuRounded
"
import
InventoryRoundedIcon
from
"
@mui/icons-material/InventoryRounded
"
import
PeopleOutlineRoundedIcon
from
"
@mui/icons-material/PeopleOutlineRounded
"
import
LocalMallRoundedIcon
from
"
@mui/icons-material/LocalMallRounded
"
import
ArticleRoundedIcon
from
"
@mui/icons-material/ArticleRounded
"
import
{
NavLink
}
from
"
./styled
"
;
import
{
NavLink
}
from
"
./styled
"
import
theme
from
"
./palette
"
const
myPalette
=
theme
.
palette
function
DrawerComponent
()
{
const
[
openDrawer
,
setOpenDrawer
]
=
useState
(
false
)
;
const
[
selectedIndex
,
setSelectedIndex
]
=
useState
(
1
)
;
const
[
openDrawer
,
setOpenDrawer
]
=
useState
(
false
)
const
[
selectedIndex
,
setSelectedIndex
]
=
useState
(
1
)
const
handleListItemClick
=
(
event
,
index
)
=>
{
setSelectedIndex
(
index
)
;
}
;
setSelectedIndex
(
index
)
}
return
(
<>
...
...
@@ -92,10 +95,10 @@ function DrawerComponent() {
</
Drawer
>
<
IconButton
onClick=
{
()
=>
setOpenDrawer
(
!
openDrawer
)
}
>
<
MenuRoundedIcon
sx=
{
{
color
:
"
#ffffff
"
}
}
fontSize=
"large"
/>
<
MenuRoundedIcon
sx=
{
{
color
:
myPalette
.
primary
.
contrastText
}
}
fontSize=
"large"
/>
</
IconButton
>
</>
)
;
)
};
export
default
DrawerComponent
;
export
default
DrawerComponent
src/components/palette.js
0 → 100644
View file @
73496a31
import
{
createTheme
}
from
"
@mui/material/styles
"
import
{
lightBlue
,
cyan
}
from
"
@mui/material/colors
"
const
theme
=
createTheme
({
palette
:
{
primary
:
{
main
:
"
#074B6B
"
,
light
:
lightBlue
[
900
],
dark
:
"
#07415C
"
,
contrastText
:
"
#fff
"
,
text
:
"
#404040
"
,
},
secondary
:
{
main
:
cyan
[
400
],
light
:
cyan
[
300
],
dark
:
cyan
[
700
],
contrastText
:
"
#fff
"
,
},
},
})
export
default
theme
src/views/Home.jsx
View file @
73496a31
import
React
from
"
react
"
;
import
React
from
"
react
"
const
Home
=
()
=>
{
return
(
<
div
>
Listo
</
div
>
)
;
}
;
)
}
export
default
Home
;
export
default
Home
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