News-specific card variation#831
Open
mbi wants to merge 12 commits into
Open
Conversation
Contributor
Author
|
@xentenza @williambelle J'ai ajouté un card-slider avec des variantes de news-card simplifiées dans le Content-Type News. Faites-moi signe si vous souhaitez que je réorganise ou on affiche ces variants. 🙏 |
xentenza
approved these changes
Jun 10, 2026
| title: Inside Links | ||
| - name: news | ||
| title: News card | ||
| wrapper: bg-gray-100 col-md-6 |
Member
There was a problem hiding this comment.
Can we remove the wrapper ? I thinks that's unnecessary here.
| <figcaption class="bg-white"> | ||
| {{ media_type|default('Podcast') }} | ||
| <svg class="icon" aria-hidden="true"> | ||
| <use xlink:href="{{ media_icon|default('#mic') }}"></use> |
| <div class="card-deck"> | ||
| {% include '@molecules/card/card-news.twig' with { 'image_uri': "news-card-2.jpg", "media_type": "Infographie", "media_icon": "#pie-chart", "title": "Une IA repousse la limite temporelle des vidéos génératives", "body": "Afin de générer des vidéos d’une durée illimitée, des scientifiques de l’EPFL résolvent le problème du « drift » qui empêchait jusqu’à présent de produire..." } %} | ||
| {% include '@molecules/card/card-news.twig' with { "media_icon": "#mic", "media_type": "Podcast", "media_duration": "60min", "body": "Une équipe de l’EPFL a montré théoriquement que, dans des matériaux très ordonnés..." } %} | ||
| {% include '@molecules/card/card-news.twig' with { 'image_uri': "news-card-3.jpg", "media_type": "Vidéo", "media_icon": "#play-circle", "media_duration": "1:30", "title": "L'IA permet de dresser un « Who's Who » des ours bruns en Alaska", "body": "Des scientifiques de l’EPFL et de l’Alaska Pacific University ont développé une IA capable d’identifier des ours sauvages un par un...", "pubdate": "05.06.2026" } %} |
| {% include '@molecules/card/card-news-simple.twig' %} | ||
| </div> | ||
| <div class="card-slider-cell"> | ||
| {% include '@molecules/card/card-news-simple.twig' with { 'image_uri': "news-card-3.jpg", "title": "L'IA permet de dresser un « Who's Who » des ours bruns en Alaska", "pubdate": "05.06.2026" } %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.