harmonize header page
All checks were successful
Deploy / Deploy to Production (push) Successful in 10s

This commit is contained in:
Julie Blanc 2026-01-27 16:55:02 +01:00
parent 849b506c50
commit e6f62a62df
22 changed files with 302 additions and 229 deletions

View file

@ -1,12 +1,13 @@
<?php snippet('header') ?>
<main>
<header class="page__header">
<p class="tag-inline">Dossier</p>
<p class="page__type">Dossier</p>
<h2 class="page__title"><?= $page->title() ?></h2>
<?php if ($page->description()->isNotEmpty()): ?>
<div class="page__description">
<div class="description">
<p><?= $page->description() ?></p>
</div>
<?php endif ?>
@ -20,7 +21,7 @@ $investigations = site()->find('enquetes')->children()->listed()->filter(functio
?>
<?php if ($investigations->isNotEmpty()): ?>
<section id="container-cards">
<section class="container-cards">
<?php foreach ($investigations as $investigation): ?>
<article class="card--article">

View file

@ -2,19 +2,22 @@
<main>
<header class="page__header">
<h2 class="page__title"><?= $page->title() ?></h2>
<?php if ($page->chapo()->isNotEmpty()): ?>
<div class="page__description">
<div class="description-medium">
<p><?= $page->chapo() ?></p>
</div>
<?php endif ?>
</header>
<section id="container-cards">
<section class="container-cards">
<?php foreach ($page->children()->listed() as $folder): ?>
<article class="card--article">
<article class="card--folder">
<?php if ($cover = $folder->cover()->toFile()): ?>
<figure>
@ -22,11 +25,13 @@
</figure>
<?php endif ?>
<div class="content">
<h4 class="title"><a href="<?= $folder->url() ?>"><?= $folder->title()->esc() ?></a></h4>
<?php if ($folder->description()->isNotEmpty()): ?>
<p class="description"><?= $folder->description()->excerpt(200) ?></p>
<p class="short"><?= $folder->description()->excerpt(200) ?></p>
<?php endif ?>
<?php
@ -36,16 +41,15 @@
})->count();
?>
<?php if ($investigationsCount > 0): ?>
<dl class="dl">
<div class="dl__group">
<dt>Enquêtes</dt>
<dd><?= $investigationsCount ?> enquête<?= $investigationsCount > 1 ? 's' : '' ?></dd>
</div>
</dl>
<?php endif ?>
</div>
<ul>
<?php if ($investigationsCount > 0): ?>
<li><?= $investigationsCount ?> enquête<?= $investigationsCount > 1 ? 's' : '' ?></li>
<?php endif ?>
<li>8 impacts</li>
</ul>
</div>
<button class="btn--go-to"><a href="#" target="_blank"><?= svg('assets/icons/arrow-left.svg') ?></a></button>
<a class="link-block" href="<?= $folder->url() ?>"></a>
</article>
<?php endforeach ?>

View file

@ -59,11 +59,9 @@ $report = $page->children()->filterBy('intendedTemplate', 'report')->first();
<header>
<p class="tag-inline">Enquête</p>
<h2 class="page-title"><?= $page->title()->esc() ?></h2>
<p class="date-publish"></p>
<header class="page__header">
<p class="page__type">Enquête</p>
<h2 class="page__title"><?= $page->title()->esc() ?></h2>
<?php if ($page->chapo()->isNotEmpty()): ?>
<p class="description"><?= $page->chapo()->inline() ?></p>
<?php endif ?>

View file

@ -4,7 +4,7 @@
<header class="page__header">
<h2 class="page__title"><?= $page->title() ?></h2>
<div class="page__description">
<div class="description-medium">
<p>
<?= $page->chapo() ?>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Iusto dignissimos, sit dolorum minima vel illo aliquam veniam eos assumenda cum quaerat error consequuntur laborum ipsum.
@ -28,7 +28,7 @@
</div>
</div>
<section id="container-cards">
<section class="container-cards container-cards__investigations">
<?php foreach ($page->children()->listed() as $investigation): ?>
<article class="card--article">

View file

@ -79,7 +79,7 @@
<article id="report">
<header class="report__header">
<div class="report__title-group">
<p class="tag-inline">Rapport</p>
<p class="page__type">Rapport</p>
<h1 class="title">Rapport de contre-expertise</h1>
<h2 class="subtitle">sur les circonstances de la mort d'Adam B. et de Raihane S. le 19 août 2022 à Vénissieux</h2>
</div>