application de la nouvelle identité sur toutes les pages

This commit is contained in:
2026-06-01 22:10:03 +02:00
parent a4cc0ef538
commit b52190eff6
44 changed files with 1369 additions and 907 deletions

View File

@@ -32,7 +32,7 @@
<div class="home_introduction">
<div class="intro_main">
<div class="intro_logo">
<img src="{{ directory }}/assets/logo_erable.png" alt="Logo Érable" />
<img src="{{ directory }}/assets/logo_erable_ardoise.svg" alt="Logo Érable" />
</div>
<div class="intro_separator" aria-hidden="true"></div>
<div class="intro_body">

View File

@@ -0,0 +1,14 @@
{#
Override du bloc logo EPAU (header).
Contenu BDD ignoré : on rend en dur le PNG du thème pour le versionner
avec le code (cf. block--erabletheme-logoerable.html.twig pour le même
pattern). Pour changer le logo, remplacer assets/logo_epau.png.
#}
<div{{ attributes }}>
{{ title_prefix }}
{% if label %}<h2{{ title_attributes }}>{{ label }}</h2>{% endif %}
{{ title_suffix }}
<a href="https://epau.archi.fr" target="_blank" rel="noopener">
<img src="/{{ directory }}/assets/logo_epau.png" alt="EPAU">
</a>
</div>

View File

@@ -0,0 +1,12 @@
{#
Override du bloc logo EPAU (footer).
Cf. block--erabletheme-logoepau-2.html.twig.
#}
<div{{ attributes }}>
{{ title_prefix }}
{% if label %}<h2{{ title_attributes }}>{{ label }}</h2>{% endif %}
{{ title_suffix }}
<a href="https://epau.archi.fr" target="_blank" rel="noopener">
<img src="/{{ directory }}/assets/logo_epau.png" alt="EPAU">
</a>
</div>

View File

@@ -0,0 +1,15 @@
{#
Override du bloc logo érable (header).
Le contenu BDD (champ image du block_content) est volontairement ignoré :
on rend en dur le SVG du thème pour que le logo fasse partie du design
system et soit versionné avec le code. Pour changer le logo, remplacer
le fichier assets/logo_erable_ardoise.svg.
#}
<div{{ attributes }}>
{{ title_prefix }}
{% if label %}<h2{{ title_attributes }}>{{ label }}</h2>{% endif %}
{{ title_suffix }}
<a href="{{ path('<front>') }}">
<img src="/{{ directory }}/assets/logo_erable_ardoise.svg" alt="Logo Érable">
</a>
</div>

View File

@@ -15,13 +15,15 @@
*/
#}
{% if content %}
<div{{ attributes }} class="fullpage meetup-offre">
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
<div class="page-header-outside">
<div class="retour-meetup">
<a href="/meetup">← Retour à la liste des annonces</a>
</div>
<h2>{{ elements.erabletheme_contenudelapageprincipale.content['#title'] }}</h2>
</div>
<div{{ attributes }} class="fullpage meetup-offre">
<div class="offre-content">
{{ content }}
</div>

View File

@@ -68,23 +68,23 @@
* @ingroup themeable
*/
#}
<article{{ attributes }} class="actu_full fullpage">
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
<div class="page-header-outside">
<div class="retour_actus">
<a href="/actualites">← Retour aux actualités</a>
</div>
<h2{{ title_attributes }}>{{ label }}</h2>
{{ content.field_sous_titre }}
</div>
<article{{ attributes }} class="actu_full fullpage">
<div class="article_meta">
{{ content.field_date }}
{{ content.field_type_d_actualite }}
</div>
<h2{{ title_attributes }}>
<a href="{{ url }}" rel="bookmark">{{ label }}</a>
</h2>
<div{{ content_attributes }}>
{{ content|without('field_date', 'field_type_d_actualite') }}
{{ content|without('field_date', 'field_type_d_actualite', 'field_sous_titre') }}
</div>
</article>

View File

@@ -69,13 +69,16 @@
*/
#}
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
<div class="page-header-outside">
<h2>{{ label }}</h2>
{{ content.field_sous_titre }}
</div>
<article class="fullpage">
<div class="fullpage_content">
<h2>{{ label }}</h2>
<div{{ content_attributes }}>
{{ content }}
{{ content|without('field_sous_titre') }}
</div>
</div>

View File

@@ -69,16 +69,20 @@
*/
#}
<article class="fullpage projet_full">
<div class="fullpage_content">
{# En-tête hors de la colonne blanche : retour + titre + sous-titre
apparaissent sur le fond gris de la page. #}
<div class="page-header-outside">
<div class="retour_projets">
<a href="/projets">← Retour aux projets</a>
</div>
<h2>{{ label }}</h2>
{{ content.field_sous_titre }}
</div>
<h2>{{ label }}</h2>
<article class="fullpage projet_full">
<div class="fullpage_content">
<div{{ content_attributes }}>
{{ content }}
{{ content|without('field_sous_titre') }}
</div>
</div>

View File

@@ -69,16 +69,19 @@
*/
#}
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
<div class="page-header-outside">
<div class="retour_ressources">
<a href="/ressources">← Retour aux ressources</a>
</div>
<h2>{{ label }}</h2>
{{ content.field_sous_titre }}
</div>
<article class="fullpage">
<div class="fullpage_content ressource">
<div class="retour_ressources">
<a href="/ressources">← Retour aux ressources</a>
</div>
<div{{ content_attributes }}>
<h2>{{ label }}</h2>
{{ content }}
{{ content|without('field_sous_titre') }}
</div>
</div>

View File

@@ -68,8 +68,14 @@
* @ingroup themeable
*/
#}
<article{{ attributes.addClass('fullpage ressources') }}>
{# En-tête hors colonne blanche : titre "Ressources" rendu sur chaque node
mais affiché uniquement sur la 1re ressource via CSS
(.views-row:first-of-type > .ressources .page-header-outside). #}
<div class="page-header-outside">
<h2 class="main-title">Ressources</h2>
</div>
<article{{ attributes.addClass('fullpage ressources') }}>
{% if display_submitted %}
<footer>
@@ -81,7 +87,6 @@
</footer>
{% endif %}
<div class="main-title">Ressources</div>
<div{{ content_attributes }}>
{{ title_prefix }}
{% if label and not page %}

View File

@@ -0,0 +1,21 @@
{#
Override pour le paragraphe "membre-equipe" :
on regroupe prénom + nom dans un même wrapper .nom-prenom pour qu'ils
s'enchaînent comme un seul bloc (typo, retour à la ligne, etc.).
#}
{%
set classes = [
'paragraph',
'paragraph--type--' ~ paragraph.bundle|clean_class,
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
not paragraph.isPublished() ? 'paragraph--unpublished'
]
%}
<div{{ attributes.addClass(classes) }}>
{{ content.field_portrait }}
<div class="nom-prenom">
{{ content.field_prenom }}
{{ content.field_nom }}
</div>
{{ content|without('field_portrait', 'field_prenom', 'field_nom') }}
</div>

View File

@@ -69,17 +69,23 @@
*/
#}
<article class="fullpage projet_full taxonomy_page">
<div class="fullpage_content">
{# Page d'archive taxonomy (filtres par tag). On rend chaque projet associé
en mode "card" (titre + diapo en plus petit, cf. _projets.scss).
Le titre du tag est sorti dans .page-header-outside ; via le CSS, on n'en
affiche qu'une seule (1re .views-row), cf. _projets.scss. La variable
taxonomy_term_label est injectée par erabletheme_preprocess_node__view__taxonomy_term. #}
<div class="page-header-outside taxonomy_header">
<div class="retour_projets">
<a href="/projets">← Retour aux projets</a>
</div>
<h2>{{ taxonomy_term_label }}</h2>
</div>
<h2>{{ label }}</h2>
<article class="fullpage projet_full taxonomy_page">
<div class="fullpage_content">
<h2 class="projet_label"><a href="{{ url }}">{{ label }}</a></h2>
<div{{ content_attributes }}>
{{ content }}
</div>
</div>
</article>

View File

@@ -54,7 +54,6 @@
<header role="banner">
{{ page.header }}
{{ page.primary_menu }}
{{ page.secondary_menu }}
</header>

View File

@@ -37,11 +37,12 @@
dom_id ? 'js-view-dom-id-' ~ dom_id,
]
%}
<div{{ attributes.addClass(classes).addClass('fullpage', 'meetup', 'large-container') }}>
<h2>
{{ view_array['#title']['#markup'] }}
</h2>
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
<div class="page-header-outside">
<h2>{{ view_array['#title']['#markup'] }}</h2>
</div>
<div{{ attributes.addClass(classes).addClass('fullpage', 'meetup', 'large-container') }}>
{% if header %}
<header>
{{ header }}

View File

@@ -38,11 +38,12 @@
]
%}
<div{{ attributes.addClass(classes) }}>
<div class="content_partenaires fullpage">
<h2>
{{ view_array['#title']['#markup'] }}
</h2>
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
<div class="page-header-outside">
<h2>{{ view_array['#title']['#markup'] }}</h2>
</div>
<div class="content_partenaires fullpage">
{{ title_prefix }}
{{ title }}
{{ title_suffix }}

View File

@@ -37,14 +37,16 @@
dom_id ? 'js-view-dom-id-' ~ dom_id,
]
%}
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
<div class="page-header-outside">
<h2>{{ view_array['#title']['#markup'] }}</h2>
</div>
<div{{ attributes.addClass(classes).addClass('fullpage', 'projets', 'large-container') }}>
<div class="intro_map">
{% if header %}
<header>
<h2>
{{ view_array['#title']['#markup'] }}
</h2>
{{ header }}
</header>
{% endif %}

View File

@@ -37,11 +37,12 @@
dom_id ? 'js-view-dom-id-' ~ dom_id,
]
%}
<div{{ attributes.addClass(classes).addClass('fullpage', 'actus', 'large-container') }}>
<h2>
{{ view_array['#title']['#markup'] }}
</h2>
{# En-tête hors colonne blanche (cf. node--projet pour le pattern). #}
<div class="page-header-outside">
<h2>{{ view_array['#title']['#markup'] }}</h2>
</div>
<div{{ attributes.addClass(classes).addClass('fullpage', 'actus', 'large-container') }}>
{% if header %}
<header>
{{ header }}