@@ -9,11 +9,9 @@ import {
99 Button ,
1010 Menu ,
1111 MenuItem ,
12+ Typography ,
1213} from '@mui/material' ;
13- import logoSvg from '@/asset/img/logo.svg' ;
14- import Image from 'next/image' ;
1514import PlayArrowRoundedIcon from '@mui/icons-material/PlayArrowRounded' ;
16- import Search from './search' ;
1715
1816const MENU = [
1917 {
@@ -49,8 +47,8 @@ const NAV_LINK = [
4947 href : '/wiki' ,
5048 } ,
5149 {
52- title : '技术博客 ' ,
53- href : '/blog ' ,
50+ title : '技术讨论 ' ,
51+ href : '/discussion ' ,
5452 } ,
5553 {
5654 title : '在线工具' ,
@@ -94,14 +92,28 @@ const Header = () => {
9492 justifyContent = 'space-between'
9593 >
9694 < Stack direction = 'row' alignItems = 'center' >
97- < Image
95+ { /* <Image
9896 src={logoSvg}
9997 alt=''
10098 onClick={() => {
10199 window.open('/', '_self');
102100 }}
103101 style={{ marginLeft: 40, marginRight: 80, cursor: 'pointer' }}
104- > </ Image >
102+ ></Image> */ }
103+ < Typography
104+ variant = 'h2'
105+ sx = { {
106+ ml : 5 ,
107+ mr : 10 ,
108+ cursor : 'pointer' ,
109+ fontSize : 14 ,
110+ fontWeight : 700 ,
111+ color : '#000' ,
112+ } }
113+ onClick = { ( ) => window . open ( '/' , '_self' ) }
114+ >
115+ 长亭百川云
116+ </ Typography >
105117
106118 < Stack direction = 'row' gap = { 5 } alignItems = 'center' >
107119 { NAV_LINK . map ( ( item ) => (
@@ -127,9 +139,9 @@ const Header = () => {
127139 sx = { {
128140 display : 'flex' ,
129141 alignItems : 'center' ,
130- fontSize : '16px ' ,
142+ fontSize : '14px ' ,
131143 gap : 0.5 ,
132- color : '#041B0F ' ,
144+ color : 'rgba(0,0,0,0.5) ' ,
133145 fontWeight : 700 ,
134146 '&:hover' : {
135147 color : 'primary.main' ,
@@ -141,9 +153,9 @@ const Header = () => {
141153 < PlayArrowRoundedIcon
142154 sx = { {
143155 transform : 'rotate(90deg)' ,
144- color : '#041B0F ' ,
145- mt : '-2px ' ,
146- fontSize : 18 ,
156+ color : 'rgba(0,0,0,0.5) ' ,
157+ mt : '-1px ' ,
158+ fontSize : 12 ,
147159 } }
148160 />
149161 ) }
@@ -189,50 +201,48 @@ const Header = () => {
189201
190202 < Stack
191203 direction = 'row'
192- sx = { { position : 'absolute' , top : 0 , bottom : 0 , right : 0 } }
204+ alignItems = { 'center' }
205+ gap = { 3 }
206+ sx = { { position : 'absolute' , top : 0 , bottom : 0 , right : 40 } }
193207 >
194- < Search
195- type = 'icon-button'
196- SearchRoundedIconProps = { {
197- sx : {
198- mt : '22px' ,
199- mr : 2 ,
200- color : '#000' ,
201- fontSize : 20 ,
202- cursor : 'pointer' ,
203- } ,
204- } }
205- />
206208 { user ? (
207- < Stack justifyContent = 'center' sx = { { pr : 3 } } >
208- < Button
209- variant = 'contained'
210- sx = { { width : 102 , boxShadow : 'none' , borderRadius : 1 } }
211- onClick = { ( ) => {
212- window . open ( '/console/workbench' , '_self' ) ;
213- } }
214- >
215- 工作台
216- </ Button >
217- </ Stack >
209+ < Button
210+ variant = 'contained'
211+ sx = { {
212+ borderRadius : 1 ,
213+ height : 44 ,
214+ width : 122 ,
215+ fontSize : 14 ,
216+ boxShadow : 'none !important' ,
217+ } }
218+ onClick = { ( ) => {
219+ window . open ( '/console/workbench' , '_self' ) ;
220+ } }
221+ >
222+ 工作台
223+ </ Button >
218224 ) : (
219225 < >
220226 < Button
221- sx = { { borderRadius : 0 , px : 3 } }
227+ variant = 'outlined'
228+ sx = { { borderRadius : 1 , height : 44 , width : 122 , fontSize : 14 } }
222229 onClick = { ( ) => {
223- window . open ( '/login ' , '_self' ) ;
230+ window . open ( '/register ' , '_self' ) ;
224231 } }
225232 >
226- 登录
233+ 立即注册
227234 </ Button >
228235 < Button
229236 variant = 'contained'
230- sx = { { borderRadius : 0 , px : 3 } }
231- onClick = { ( ) => {
232- window . open ( '/register' , '_self' ) ;
237+ sx = { {
238+ borderRadius : 1 ,
239+ height : 44 ,
240+ width : 122 ,
241+ fontSize : 14 ,
242+ boxShadow : 'none !important' ,
233243 } }
234244 >
235- 立即注册
245+ 登录
236246 </ Button >
237247 </ >
238248 ) }
0 commit comments