Change navigasyon menu order and remplace text by icons
This commit is contained in:
@@ -10,6 +10,12 @@ import Typography from '@mui/material/Typography'
|
|||||||
import Box from '@mui/material/Box'
|
import Box from '@mui/material/Box'
|
||||||
import {useMediaQuery} from '@mui/material'
|
import {useMediaQuery} from '@mui/material'
|
||||||
|
|
||||||
|
import MusicNoteIcon from '@mui/icons-material/MusicNote'
|
||||||
|
import RecordVoiceOverIcon from '@mui/icons-material/RecordVoiceOver'
|
||||||
|
import HomeIcon from '@mui/icons-material/Home'
|
||||||
|
import EditNoteIcon from '@mui/icons-material/EditNote'
|
||||||
|
import VolunteerActivismIcon from '@mui/icons-material/VolunteerActivism'
|
||||||
|
|
||||||
const PREFIX = 'navigasyon'
|
const PREFIX = 'navigasyon'
|
||||||
|
|
||||||
const classes = {
|
const classes = {
|
||||||
@@ -30,18 +36,18 @@ const Appdiv = styled('div')((
|
|||||||
|
|
||||||
const tabRouteHref = [
|
const tabRouteHref = [
|
||||||
'/',
|
'/',
|
||||||
|
'/soutyen',
|
||||||
'/paroles',
|
'/paroles',
|
||||||
'/awtis?paj&paj=1',
|
'/awtis?paj&paj=1',
|
||||||
'/soumet',
|
'/soumet'
|
||||||
'/soutyen'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
const tabRouteAs = [
|
const tabRouteAs = [
|
||||||
'/',
|
'/',
|
||||||
|
'/soutyen',
|
||||||
'/paroles',
|
'/paroles',
|
||||||
'/awtis/paj/1',
|
'/awtis/paj/1',
|
||||||
'/soumet',
|
'/soumet',
|
||||||
'/soutyen'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
function TabPanel(props) {
|
function TabPanel(props) {
|
||||||
@@ -110,11 +116,11 @@ export default function Navigasyon({selectedTab}) {
|
|||||||
}}
|
}}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
>
|
>
|
||||||
<Tab label='Accueil' {...a11yProps(0)} />
|
<Tab icon={<HomeIcon />} aria-label='Accueil' {...a11yProps(0)} />
|
||||||
<Tab label='Paroles' {...a11yProps(1)} />
|
<Tab icon={<VolunteerActivismIcon />} aria-label='Nous soutenir' {...a11yProps(1)} />
|
||||||
<Tab label='Artistes' {...a11yProps(2)} />
|
<Tab icon={<MusicNoteIcon />} aria-label='Paroles' {...a11yProps(2)} />
|
||||||
<Tab label='Soumettre' {...a11yProps(3)} />
|
<Tab icon={<RecordVoiceOverIcon />} aria-label='Artistes' {...a11yProps(3)} />
|
||||||
<Tab label='Nous soutenir' {...a11yProps(4)} />
|
<Tab icon={<EditNoteIcon />} aria-label='Soumettre' {...a11yProps(4)} />
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</AppBar>
|
</AppBar>
|
||||||
<TabPanel value={value} index={0} />
|
<TabPanel value={value} index={0} />
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default function SlugAwtis({errorCode, error404, errorMessage, anAwtis})
|
|||||||
imageWidth={formatKouveti() ? formatKouveti().width : null}
|
imageWidth={formatKouveti() ? formatKouveti().width : null}
|
||||||
imageHeight={formatKouveti() ? formatKouveti().height : null}
|
imageHeight={formatKouveti() ? formatKouveti().height : null}
|
||||||
imageMime={formatKouveti() ? formatKouveti().mime : null}
|
imageMime={formatKouveti() ? formatKouveti().mime : null}
|
||||||
title={`${anAwtis.attributes.alias} - Paroles et Traductions`} tab={2} slug={`awtis/${anAwtis.attributes.slug}`}
|
title={`${anAwtis.attributes.alias} - Paroles et Traductions`} tab={3} slug={`awtis/${anAwtis.attributes.slug}`}
|
||||||
>
|
>
|
||||||
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
|
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
|
||||||
<AwtisDetay anAwtis={anAwtis.attributes} />
|
<AwtisDetay anAwtis={anAwtis.attributes} />
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export default function Awtis({errorCode, error404, errorMessage, pajTotal, awti
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HeadLayout title='Awtis - Liste des artistes' summary='Liste des artistes ayant une ou plusieurs œuvres présentes sur le site.' tab={2} slug='awtis'>
|
<HeadLayout title='Awtis - Liste des artistes' summary='Liste des artistes ayant une ou plusieurs œuvres présentes sur le site.' tab={3} slug='awtis'>
|
||||||
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
|
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
|
||||||
<Pajinasyon pajTotal={pajTotal} paj={paj} />
|
<Pajinasyon pajTotal={pajTotal} paj={paj} />
|
||||||
<ChecheAwtis />
|
<ChecheAwtis />
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export default function SlugTeks({hasError, errorMessage, parole, slug}) {
|
|||||||
imageWidth={formatKouveti() ? formatKouveti().width : null}
|
imageWidth={formatKouveti() ? formatKouveti().width : null}
|
||||||
imageHeight={formatKouveti() ? formatKouveti().height : null}
|
imageHeight={formatKouveti() ? formatKouveti().height : null}
|
||||||
imageMime={formatKouveti() ? formatKouveti().mime : null}
|
imageMime={formatKouveti() ? formatKouveti().mime : null}
|
||||||
title={`${artistes} - ${parole.attributes.titre} | Paroles et Traductions`} tab={1} slug={`paroles/${slug}`}
|
title={`${artistes} - ${parole.attributes.titre} | Paroles et Traductions`} tab={2} slug={`paroles/${slug}`}
|
||||||
summary={summary}
|
summary={summary}
|
||||||
>
|
>
|
||||||
<TeksDrawer parole={parole.attributes} paroleId={parole.id} slug={slug} />
|
<TeksDrawer parole={parole.attributes} paroleId={parole.id} slug={slug} />
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export default function Teks({errorCode, errorMessage, denyeTeks}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HeadLayout title='Paroles et Traductions' summary='Retrouvez les paroles et traductions de vos chansons préférées.' tab={1} slug='paroles'>
|
<HeadLayout title='Paroles et Traductions' summary='Retrouvez les paroles et traductions de vos chansons préférées.' tab={2} slug='paroles'>
|
||||||
<TeksDrawer denyeTeks={denyeTeks} />
|
<TeksDrawer denyeTeks={denyeTeks} />
|
||||||
</HeadLayout>
|
</HeadLayout>
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -71,7 +71,7 @@ export default function Soumet({code}) {
|
|||||||
}, [username])
|
}, [username])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HeadLayout title='Soumèt - Soumettre un texte' summary='Proposez la transcription d’un texte, accompagnée d’une ou plusieurs traductions.' tab={3} slug='soumet'>
|
<HeadLayout title='Soumèt - Soumettre un texte' summary='Proposez la transcription d’un texte, accompagnée d’une ou plusieurs traductions.' tab={4} slug='soumet'>
|
||||||
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
|
<Box sx={{display: 'flex', flexDirection: 'column', minHeight: '100vh'}}>
|
||||||
<Box sx={{flexGrow: 1, marginTop: 1, marginBottom: 10}}>
|
<Box sx={{flexGrow: 1, marginTop: 1, marginBottom: 10}}>
|
||||||
{!session && !code && (
|
{!session && !code && (
|
||||||
|
|||||||
+2
-2
@@ -117,7 +117,7 @@ export default function Soutyen({paymentStatus}) {
|
|||||||
<HeadLayout
|
<HeadLayout
|
||||||
title='Soutenir Organisation KA Internationale !'
|
title='Soutenir Organisation KA Internationale !'
|
||||||
summary='Vous pouvez nous soutenir via Liberapay, PayPal ou directement par CB sur le site.'
|
summary='Vous pouvez nous soutenir via Liberapay, PayPal ou directement par CB sur le site.'
|
||||||
tab={4}
|
tab={1}
|
||||||
slug='soutyen'
|
slug='soutyen'
|
||||||
imageUrl='/uploads/soutyen_8246fb700e.png'
|
imageUrl='/uploads/soutyen_8246fb700e.png'
|
||||||
imageWidth={500}
|
imageWidth={500}
|
||||||
@@ -129,7 +129,6 @@ export default function Soutyen({paymentStatus}) {
|
|||||||
<Typography gutterBottom sx={{fontWeight: 'bold'}} textAlign='center' variant='h4' component='h1'>
|
<Typography gutterBottom sx={{fontWeight: 'bold'}} textAlign='center' variant='h4' component='h1'>
|
||||||
Soutenir Organisation KA Internationale !
|
Soutenir Organisation KA Internationale !
|
||||||
</Typography>
|
</Typography>
|
||||||
<Presantasyon />
|
|
||||||
<Paper sx={{padding: 2, marginTop: 3}}>
|
<Paper sx={{padding: 2, marginTop: 3}}>
|
||||||
<Box sx={{textAlign: 'center'}}>
|
<Box sx={{textAlign: 'center'}}>
|
||||||
<PaymentMethod
|
<PaymentMethod
|
||||||
@@ -152,6 +151,7 @@ export default function Soutyen({paymentStatus}) {
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
</Paper>
|
</Paper>
|
||||||
|
<Presantasyon />
|
||||||
</Container>
|
</Container>
|
||||||
</Box>
|
</Box>
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|||||||
Reference in New Issue
Block a user