@@ -17,7 +17,7 @@ import { Component } from 'react';
1717import { i18n , LanguageName , t } from '../../models/Translation' ;
1818import { SymbolIcon } from '../Icon' ;
1919import { ColorModeIconDropdown } from './ColorModeDropdown' ;
20- import { GithubIcon } from './Svg' ;
20+ import { BrandLogo , GithubIcon } from './Svg' ;
2121
2222export const mainNavLinks = ( ) => [
2323 { title : t ( 'latest_projects' ) , href : '/project' } ,
@@ -48,16 +48,14 @@ export class MainNavigator extends Component {
4848
4949 return (
5050 < >
51- < Button
51+ < IconButton
5252 color = "inherit"
53- aria-controls = "i18n-menu"
54- size = "small"
53+ aria-label = "language selector"
5554 id = "i18n-selector"
56- startIcon = { < SymbolIcon name = "translate" /> }
5755 onClick = { event => ( this . menuAnchor = event . currentTarget ) }
5856 >
59- { LanguageName [ currentLanguage ] }
60- </ Button >
57+ < SymbolIcon name = "language" />
58+ </ IconButton >
6159 < Menu
6260 anchorEl = { menuAnchor }
6361 id = "i18n-menu"
@@ -104,7 +102,7 @@ export class MainNavigator extends Component {
104102 open = { this . menuExpand }
105103 onClose = { ( ) => ( this . menuExpand = false ) }
106104 >
107- < Toolbar className = "bg-transparent bg-none shadow-none" disableGutters />
105+ < Toolbar disableGutters />
108106 < div className = "bg-background-paper py-3 elevation-16" >
109107 < nav className = "flex flex-col items-center gap-4" > { this . renderLinks ( ) } </ nav >
110108 </ div >
@@ -120,16 +118,21 @@ export class MainNavigator extends Component {
120118 < div className = "flex flex-row items-center gap-3" >
121119 { this . renderDrawer ( ) }
122120
123- < Image src = "/idea2app.svg" alt = "brand logo" width = { 32 } height = { 40 } />
124- < Link translate = "no" className = "font-bold uppercase" href = "/" >
121+ < BrandLogo />
122+ < Link translate = "no" className = "font-bold uppercase" href = "/" rel = "home" >
125123 idea2app
126124 </ Link >
127125 </ div >
128126
129127 < nav className = "item-center hidden flex-row gap-4 sm:flex" > { this . renderLinks ( ) } </ nav >
130128
131129 < div className = "flex flex-row items-center gap-3 sm:gap-6" >
132- < Link href = "https://github.com/idea2app" target = "_blank" rel = "noopener noreferrer" >
130+ < Link
131+ href = "https://github.com/idea2app"
132+ target = "_blank"
133+ rel = "noopener noreferrer"
134+ aria-label = "idea2app's GitHub account"
135+ >
133136 < GithubIcon />
134137 </ Link >
135138 < ColorModeIconDropdown />
0 commit comments