22import {
33 Box ,
44 BoxProps ,
5+ Container ,
56 Drawer ,
67 LinkProps ,
78 Link ,
89 IconButton ,
9- Paper ,
1010 Stack ,
1111 useTheme ,
1212} from "@mui/material" ;
@@ -39,12 +39,11 @@ const NavLink = ({ children, ...props }: LinkProps) => {
3939 borderBottom : "solid 4px" ,
4040 } ,
4141 textDecoration : "none" ,
42- px : 2 ,
43- bgcolor : { md : "none" } ,
4442 alignItems : "center" ,
4543 display : "flex" ,
46- borderTop : "4px solid transparent " ,
44+ padding : "13px 3px 0 " ,
4745 borderBottom : "4px solid transparent" ,
46+ backgroundColor : { md : "none" } ,
4847 color : theme . palette . primary . contrastText ,
4948 } }
5049 { ...props }
@@ -67,6 +66,7 @@ const NavLinks = ({ children }: NavLinksProps) => {
6766 color : theme . palette . primary . contrastText ,
6867 display : { md : "none" } ,
6968 order : - 1 ,
69+ marginLeft : "0 !important" ,
7070 "&:hover" : { filter : "brightness(90%);" } ,
7171 } }
7272 size = { "small" }
@@ -80,6 +80,7 @@ const NavLinks = ({ children }: NavLinksProps) => {
8080 sx = { {
8181 height : "100%" ,
8282 display : { xs : "none" , md : "flex" } ,
83+ marginLeft : "0 !important" ,
8384 } }
8485 component = "nav"
8586 spacing = { 4 }
@@ -122,19 +123,21 @@ const Navbar = ({ children, logo, ...props }: NavbarProps) => {
122123 }
123124
124125 return (
125- < Box top = "0" zIndex = { 1 } width = "100%" { ...props } >
126- < Paper
127- sx = { {
128- display : "flex" ,
129- backgroundColor : theme . vars . palette . primary . main ,
130- px : { xs : "1rem" , md : "7.5vw" } ,
131- height : 50 ,
132- width : "100%" ,
133- alignItems : "center" ,
134- justifyContent : "space-between" ,
135- borderRadius : 0 ,
136- } }
137- >
126+ < Box
127+ top = "0"
128+ zIndex = { 1 }
129+ width = "100%"
130+ height = "50px"
131+ sx = { {
132+ display : "flex" ,
133+ alignItems : "center" ,
134+ justifyContent : "space-between" ,
135+ borderRadius : 0 ,
136+ backgroundColor : theme . vars . palette . primary . main ,
137+ } }
138+ { ...props }
139+ >
140+ < Container maxWidth = "lg" sx = { { height : "100%" } } >
138141 < Stack
139142 direction = "row"
140143 spacing = { 8 }
@@ -146,6 +149,7 @@ const Navbar = ({ children, logo, ...props }: NavbarProps) => {
146149 maxWidth = "5rem"
147150 sx = { {
148151 "&:hover" : { filter : "brightness(80%);" } ,
152+ marginRight : { xs : "0" , md : "50px" } ,
149153 } }
150154 >
151155 < ImageColorSchemeSwitch image = { logo } />
@@ -154,7 +158,7 @@ const Navbar = ({ children, logo, ...props }: NavbarProps) => {
154158 ) : null }
155159 { children }
156160 </ Stack >
157- </ Paper >
161+ </ Container >
158162 </ Box >
159163 ) ;
160164} ;
0 commit comments