11import { useTranslation } from 'react-i18next'
22import { Link } from 'react-router-dom'
33import { useSurvey } from './hooks/useSurvey'
4- import AppBar from '@mui/material/AppBar'
5- import Toolbar from '@mui/material/Toolbar'
6- import Typography from '@mui/material/Typography'
7- import Container from '@mui/material/Container'
8- import Button from '@mui/material/Button'
9- import Avatar from '@mui/icons-material/Adb'
4+ import {
5+ Box ,
6+ AppBar ,
7+ Toolbar ,
8+ Typography ,
9+ Container ,
10+ Button ,
11+ Avatar
12+ } from '@mui/material'
1013import { LanguageSelector } from './LanguageSelector' ;
1114const LOGO = 'src/assets/images/logo.png'
1215
@@ -16,28 +19,30 @@ function NavBar({ selected = null }) {
1619
1720 return (
1821 < >
19- < AppBar position = "static " >
22+ < AppBar position = "sticky" color = "default ">
2023 < Container maxWidth = "xl" >
2124 < Toolbar disableGutters >
22- < Link to = "/" style = { { textDecoration : 'none' } } >
25+ < Link to = "/" style = { { textDecoration : 'none' , marginRight : '1rem' } } >
2326 < Avatar src = { LOGO } alt = "Logo WDT" sx = { { width : '100%' , height : '100%' , maxWidth : '50px' } } />
2427 </ Link >
25- < Link to = "/sponsorship" style = { { textDecoration : 'none' } } >
26- < Button sx = { { my : 2 , color : 'white' , display : 'block' } } >
28+ < Link to = "/sponsorship" style = { { textDecoration : 'none' , height : '100%' } } >
29+ < Button sx = { { height : '100%' } } >
2730 < Typography > { t ( "navbar.sponsorship" , "¿Te interesa patrocinar?" ) } </ Typography >
2831 </ Button >
2932 </ Link >
30- < Link to = "/about" style = { { textDecoration : 'none' } } >
31- < Button sx = { { my : 2 , color : 'white' , display : 'block' } } >
33+ < Link to = "/about" style = { { textDecoration : 'none' , height : '100%' } } >
34+ < Button sx = { { height : '100%' } } >
3235 < Typography > { t ( "navbar.aboutUs" , "Acerca de nosotros" ) } </ Typography >
3336 </ Button >
3437 </ Link >
35- < Link to = "/" onClick = { openSurvey } style = { { textDecoration : 'none' } } >
36- < Button sx = { { my : 2 , color : 'white' , display : 'block' } } >
38+ < Link to = "/" onClick = { openSurvey } style = { { textDecoration : 'none' , height : '100%' } } >
39+ < Button sx = { { height : '100%' } } >
3740 < Typography > { t ( "navbar.survey" , "Encuesta" ) } </ Typography >
3841 </ Button >
3942 </ Link >
40- < LanguageSelector />
43+ < Box sx = { { ml : 1 } } >
44+ < LanguageSelector />
45+ </ Box >
4146 </ Toolbar >
4247 </ Container >
4348 </ AppBar >
0 commit comments