Add ccheart_red icon

This commit is contained in:
2024-04-14 07:07:49 +04:00
parent ea70d6b0d0
commit dcd6e98b05
2 changed files with 27 additions and 0 deletions
+14
View File
@@ -1,6 +1,8 @@
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import Link from 'next/link' import Link from 'next/link'
import Image from 'next/image'
import ListItemButton from '@mui/material/ListItemButton' import ListItemButton from '@mui/material/ListItemButton'
import Box from '@mui/material/Box'
import ListItemText from '@mui/material/ListItemText' import ListItemText from '@mui/material/ListItemText'
import Typography from '@mui/material/Typography' import Typography from '@mui/material/Typography'
import ListItemAvatar from '@mui/material/ListItemAvatar' import ListItemAvatar from '@mui/material/ListItemAvatar'
@@ -34,6 +36,18 @@ export default function MizikLyen({niAwtis, anPawol, kuveti, slug, meteEsMobilOu
primary={<Typography sx={{fontWeight: 'bold'}} color='info.main'>{anPawol.attributes.titre}</Typography>} primary={<Typography sx={{fontWeight: 'bold'}} color='info.main'>{anPawol.attributes.titre}</Typography>}
secondary={niAwtis ? getAlias(anPawol.attributes.artistes, anPawol.attributes.prioriteArtistes) : null} /> secondary={niAwtis ? getAlias(anPawol.attributes.artistes, anPawol.attributes.prioriteArtistes) : null} />
{anPawol.attributes.creativeCommons && (
<Box marginInline={1}>
<Image
width={24}
height={24}
title='Creative Commons'
alt='ccheart_red'
src='/images/cc/icons/ccheart_red.svg'
/>
</Box>
)}
{esBrandNew(anPawol.attributes.publishedAt) && ( {esBrandNew(anPawol.attributes.publishedAt) && (
<FiberNewOutlinedIcon style={{fontSize: 30, marginRight: 5}} color='primary' /> <FiberNewOutlinedIcon style={{fontSize: 30, marginRight: 5}} color='primary' />
)} )}
+13
View File
@@ -2,6 +2,7 @@
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import {useRouter} from 'next/navigation' import {useRouter} from 'next/navigation'
import Image from 'next/image'
import {format} from 'date-fns' import {format} from 'date-fns'
import {fr} from 'date-fns/locale' import {fr} from 'date-fns/locale'
import Card from '@mui/material/Card' import Card from '@mui/material/Card'
@@ -65,6 +66,18 @@ export default function TeksKat({parole}) {
<Typography display='inline' style={{marginRight: 5}} variant='h6' component='h2'> <Typography display='inline' style={{marginRight: 5}} variant='h6' component='h2'>
{titre} {titre}
</Typography> </Typography>
{attributes.creativeCommons && (
<Box marginInline={1}>
<Image
width={24}
height={24}
title='Creative Commons'
alt='ccheart_red'
src='/images/cc/icons/ccheart_red.svg'
/>
</Box>
)}
{attributes.explicitLyrics && ( {attributes.explicitLyrics && (
<ExplicitIcon style={{marginRight: 5}} color='error' fontSize='small' /> <ExplicitIcon style={{marginRight: 5}} color='error' fontSize='small' />
)} )}