Skip to content

refonte visuelle des pages talks - #2362

Merged
Mopolo merged 1 commit into
afup:masterfrom
vgreb:front/talks
Aug 25, 2026
Merged

refonte visuelle des pages talks#2362
Mopolo merged 1 commit into
afup:masterfrom
vgreb:front/talks

Conversation

@vgreb

@vgreb vgreb commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Page de liste

Avant Après
image image

Page d'un talk

Avant Après
image image

Quelques infos

La pagination n'est pas visible sur la nouelle version a cause du nombre de talks disponibles en local, c'est la même que la page des meetups.
Je n'ai pas pu reproduire tous les cas possibles d'affichage, je ferai une passe en prod dans un second temps pour corriger d'éventuels problèmes.

P.S. j'ai prévu de revoir de JS des pages avec instantsearch, et il faudrait passer sur une version plus récente. La version que nous utilisons date de mai 2018

Comment thread templates/site/talks/show.html.twig Outdated
<a class="talk-info-link" href="{{ talk.getJoindinUrl }}"><i class="fa fa-comments"></i> Fiche joind.in</a>
</li>
{% endif %}
{% macro sectionTitle(label) %}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I y a le composant SectionTitle maintenant pour ça.

Comment thread templates/site/talks/show.html.twig Outdated
<div class="container speaker-title-container">
<div class="col-md-12">
<h2>{% if speakers|length > 1 %}Les speakers{% else %}Le speaker{% endif %}</h2>
<div class="w-full max-w-5xl mx-auto aspect-video rounded-2xl overflow-hidden bg-black">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div class="w-full max-w-5xl mx-auto aspect-video rounded-2xl overflow-hidden bg-black">
<div class="w-full aspect-video rounded-2xl overflow-hidden bg-black">

Pas besoin de limiter vu que c'est déjà contenu dans un container.

<div class="flex flex-wrap items-center gap-3 border-t border-neutre-300 pt-3">
<div class="flex items-center gap-0.5" aria-label="Note : {{ comment.rating }} sur 5">
{% for i in 1..5 %}
<twig:ux:icon name="mingcute:star-fill"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il faut récupérer l'icône dans le repo avec bin/console ux:icon:import mingcute:star-fill et commit le fichier.

Comment thread templates/site/talks/show.html.twig Outdated
</div>
{% endif %}

{% if talk.getTweetsHasArray|length > 0 %}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Les tweets et posts bluesky sont trop serrés dans ce bloc :

Image

Je pense qu'il faudrait tester de les mettre en dessous du bloc qui contient la description et la sidebar, pour que ça fasse la largeur des deux.

Comment on lines +189 to +194
{ shown: talk.hasSlidesUrl, url: talk.getSlidesurl, icon: 'mingcute:presentation-1-fill', label: 'Slides' },
{ shown: talk.hasBlogPostUrl, url: talk.getBlogPostUrl, icon: 'mingcute:rss-fill', label: 'Article de blog' },
{ shown: talk.hasInterviewUrl, url: talk.getInterviewUrl, icon: 'mingcute:news-2-fill', label: 'Interview' },
{ shown: talk.hasJoindinId, url: talk.getJoindinUrl, icon: 'mingcute:message-3-fill', label: 'Fiche joind.in' },
{ shown: talk.hasOpenfeedbackPath, url: talk.getOpenfeedbackUrl, icon: 'mingcute:message-3-fill', label: 'Fiche openfeedback.io' },
]|filter(link => link.shown) %}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pareil ces icones il faut les importer en local dans le repo.

Sans ça, ils sont récupérés à la volée via un appel http pour chaque (avec du cache, mais qui saute à chaque deploy), et on pourrait se retrouver avec des icones qui changent.

https://symfony.com/bundles/ux-icons/current/index.html#imported-icons

Comment thread htdocs/js/talk/list.js
* sur `templates/site/news/list.html.twig` dont elle s'inspire.
*/

/* Icônes mingcute inlinées : on ne peut pas appeler <twig:ux:icon> depuis le JS. */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Peut-être qu'avec les icones en local et en déplaçant ce js dans /assets y'aurait moyen d'éviter ce doublement.

Pas besoin dans cette PR mais à tester un jour.

@vgreb
vgreb force-pushed the front/talks branch 2 times, most recently from bd3e828 to 5feca19 Compare August 25, 2026 11:09
Comment thread assets/icons/fa/linkedin.svg Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a déjà celle-là : https://github.com/afup/web/blob/master/assets/icons/mdi/linkedin.svg

Elle est différente mais peut-être pas besoin de faire de doublon ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est les icone que j'avais oublié que télécharger dans un précédente PR, et j'avais complètement zappé les icones déjà utilisées dans le footer.
C'est corrigé

Comment thread assets/icons/fa/rss.svg Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread assets/icons/mingcute/twitter-fill.svg Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ça fait doublon avec fa:twitter qui est dans cette PR déjà non ?

@Mopolo
Mopolo merged commit c342ba7 into afup:master Aug 25, 2026
7 checks passed
@vgreb
vgreb deleted the front/talks branch August 25, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants