@@ -31,7 +31,7 @@ export function NavBar() {
3131
3232 return (
3333 < AppBar position = "static" >
34- < Container maxWidth = "xl" >
34+ < Container maxWidth = { false } >
3535 < Toolbar disableGutters >
3636 < AdbIcon sx = { { display : { xs : "none" , md : "flex" } , mr : 1 } } />
3737 < Typography
@@ -40,7 +40,6 @@ export function NavBar() {
4040 component = { RouterLink }
4141 to = { process . env . PUBLIC_URL }
4242 sx = { {
43- m : 1 ,
4443 mr : 7 ,
4544 display : { xs : "none" , md : "flex" } ,
4645 fontFamily : "monospace" ,
@@ -86,17 +85,22 @@ export function NavBar() {
8685 { pages . map ( ( page ) => (
8786 < Link
8887 component = { RouterLink }
89- to = { `${ process . env . PUBLIC_URL } /${
90- Object . keys ( Pages ) [ Object . values ( Pages ) . indexOf ( page ) ]
91- } `}
88+ to = { `${ process . env . PUBLIC_URL } /${ page } ` }
9289 underline = "none"
9390 key = { page }
9491 >
95- < MenuItem key = { page } onClick = { handleCloseNavMenu } >
96- < Typography textAlign = "center" variant = "h6" >
97- { page }
98- </ Typography >
99- </ MenuItem >
92+ < Button
93+ key = { page }
94+ onClick = { handleCloseNavMenu }
95+ sx = { {
96+ paddingRight : 5 ,
97+ display : "block" ,
98+ textTransform : "capitalize" ,
99+ fontSize : "1rem" ,
100+ } }
101+ >
102+ { page }
103+ </ Button >
100104 </ Link >
101105 ) ) }
102106 </ Menu >
@@ -109,7 +113,6 @@ export function NavBar() {
109113 component = { RouterLink }
110114 to = { process . env . PUBLIC_URL }
111115 sx = { {
112- m : 1 ,
113116 mr : 7 ,
114117 display : { xs : "flex" , md : "none" } ,
115118 flexGrow : 1 ,
@@ -128,15 +131,19 @@ export function NavBar() {
128131 { pages . map ( ( page ) => (
129132 < Link
130133 component = { RouterLink }
131- to = { `${ process . env . PUBLIC_URL } /${
132- Object . keys ( Pages ) [ Object . values ( Pages ) . indexOf ( page ) ]
133- } `}
134+ to = { `${ process . env . PUBLIC_URL } /${ page } ` }
134135 key = { page }
135136 >
136137 < Button
137138 key = { page }
138139 onClick = { handleCloseNavMenu }
139- sx = { { my : 2 , color : "white" , display : "block" } }
140+ sx = { {
141+ my : 2 ,
142+ color : "white" ,
143+ display : "block" ,
144+ textTransform : "capitalize" ,
145+ fontSize : "1rem" ,
146+ } }
140147 >
141148 { page }
142149 </ Button >
0 commit comments