From 9752e4bcdd346f90359b23118abbde48f6253166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Fri, 26 Jun 2026 22:03:19 +0400 Subject: [PATCH] feat: redesign artist page layout and social icons --- components/awtis/awtis-detay.js | 170 +++++++++++++++-------------- components/awtis/social-buttons.js | 58 ++++++---- 2 files changed, 129 insertions(+), 99 deletions(-) diff --git a/components/awtis/awtis-detay.js b/components/awtis/awtis-detay.js index edb0e05..54994f9 100644 --- a/components/awtis/awtis-detay.js +++ b/components/awtis/awtis-detay.js @@ -12,6 +12,7 @@ import Button from '@mui/material/Button' import CardActionArea from '@mui/material/CardActionArea' import Chip from '@mui/material/Chip' import Container from '@mui/material/Container' +import Divider from '@mui/material/Divider' import Grid from '@mui/material/Grid' import Paper from '@mui/material/Paper' import Card from '@mui/material/Card' @@ -20,6 +21,7 @@ import Typography from '@mui/material/Typography' import {green} from '@mui/material/colors' import ExpandMoreIcon from '@mui/icons-material/ExpandMore' import KeyboardBackspaceIcon from '@mui/icons-material/KeyboardBackspace' +import MusicNoteIcon from '@mui/icons-material/MusicNote' import VerifiedIcon from '@mui/icons-material/Verified' import {formatKuveti} from '../../lib/kuveti' @@ -51,28 +53,32 @@ export default function AwtisDetay({anAwtis}) { : null return ( - - - - {alias} - + + + + + - + {/* Héro */} + {photoUrl ? ( {`Photo )} + + + {alias} + + + {rezoSosyal?.length > 0 && ( + + {rezoSosyal.map((rezo, i) => ( + + ))} + + )} + + {isExclusiveArtist && ( + + } + label={`Artiste ${EXCLUSIVE_LABEL}`} + size='small' + sx={{bgcolor: '#FFD700', color: '#000', fontWeight: 700, '& .MuiChip-icon': {color: '#000'}}} + /> + + Certains morceaux sont publiés en exclusivité sur PAWÒL-NU, avant toute sortie sur les plateformes de streaming. + + + )} - {isExclusiveArtist && ( - - } - label={`Artiste ${EXCLUSIVE_LABEL}`} - size='small' - sx={{bgcolor: '#FFD700', color: '#000', fontWeight: 700, '& .MuiChip-icon': {color: '#000'}}} - /> - - Certains morceaux sont publiés en exclusivité sur PAWÒL-NU, avant toute sortie sur les plateformes de streaming. - - - )} - - + {biyo && ( - - + + meteEsByografiOuve(true)}> - - Biographie + + Biographie - + {biyo} @@ -114,13 +132,21 @@ export default function AwtisDetay({anAwtis}) { )} + {hasStreaming && ( - + + + + + Titre phare + + + {coverUrl && ( - + {titrePhare.titre} {titrePhare.titre} - + Écouter sur @@ -152,56 +178,42 @@ export default function AwtisDetay({anAwtis}) { )} - {rezoSosyal?.length > 0 && ( - - - {rezoSosyal.map((rezo, i) => ( - - ))} + + + {paroles.length > 1 ? ( + + } aria-controls='panel-teks-content' id='panel-teks-header'> + Liste des paroles + + + + {sortedTeks.map(anPawol => { + const {couverture} = anPawol + const kuvetiFormat = couverture?.formats?.thumbnail || formatKuveti(couverture) + return ( + + + + ) + })} + + + ) : paroles.length === 0 ? ( + + Aucune parole pour le moment + + ) : ( + + Parole + + + - - )} - - - {paroles.length > 1 ? ( - - } - aria-controls='panel-teks-content' - id='panel-teks-header' - > - Liste des paroles - - - - {sortedTeks.map(anPawol => { - const {couverture} = anPawol - const kuvetiFormat = couverture?.formats?.thumbnail || formatKuveti(couverture) - return ( - - - - ) - })} - - - ) : ( - paroles.length === 0 ? ( - Aucune parole pour le moment - ) : ( - - Parole - - - - - ) - )} - + )} - + + + + ) }