merge + ajout des boutons sur les tuiles page projet + css page narrative
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 25s
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 25s
This commit is contained in:
parent
ea277917f7
commit
153e75c0a9
30 changed files with 317 additions and 25 deletions
|
|
@ -40,6 +40,22 @@
|
|||
<p class="pj-header__subtitle"><?= html($page->subtitle()) ?></p>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
<div class="btn-connect">
|
||||
<a
|
||||
href="<?= $site->url() ?>/panel"
|
||||
class=""
|
||||
rel="noopener"
|
||||
title="Se connecter"
|
||||
target="_blank"
|
||||
>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||
<circle cx="9.5" cy="8" r="4"/>
|
||||
<path d="M16 21v-1a4 4 0 0 0-4-4H7a4 4 0 0 0-4 4v1"/>
|
||||
<!-- <path d="M19 8l3 3-3 3M22 11h-7"/> -->
|
||||
</svg>
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- ═══════════════════════════════════════════
|
||||
|
|
@ -114,18 +130,6 @@
|
|||
|
||||
<!-- Actions -->
|
||||
<footer class="pj-card__footer">
|
||||
<a
|
||||
href="<?= $narrative->url() ?>"
|
||||
class="pj-btn pj-btn--ghost"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
title="Ouvrir la version imprimée de « <?= html($narrative->title()) ?> »"
|
||||
>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
|
||||
<polyline points="6 9 6 2 18 2 18 9"/><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"/><rect x="6" y="14" width="12" height="8"/>
|
||||
</svg>
|
||||
Version imprimée
|
||||
</a>
|
||||
<a
|
||||
href="<?= $webUrl ?>"
|
||||
class="pj-btn pj-btn--solid"
|
||||
|
|
@ -136,6 +140,53 @@
|
|||
</svg>
|
||||
Version web
|
||||
</a>
|
||||
<?php if($pdf = $narrative->pdf()->toFile()):?>
|
||||
<a
|
||||
href="<?= $pdf->url() ?>"
|
||||
class="pj-btn pj-btn--ghost"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
title="Télécharger le PDF de « <?= html($narrative->title()) ?> »"
|
||||
>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="1.8"
|
||||
stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M12 3v13"/>
|
||||
<polyline points="7 11 12 16 17 11"/>
|
||||
<path d="M3 21h18"/>
|
||||
</svg>
|
||||
</a>
|
||||
|
||||
<?php endif;?>
|
||||
<?php if($kirby->user()):?>
|
||||
<a
|
||||
href="<?= $narrative->url() ?>"
|
||||
class="pj-btn pj-btn--ghost"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
title="Éditer « <?= html($narrative->title()) ?> »"
|
||||
>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="1.8"
|
||||
stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
|
||||
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
|
||||
</svg>
|
||||
</a>
|
||||
<?php else:?>
|
||||
<div
|
||||
class="pj-btn pj-btn-disable"
|
||||
title="Connectez-vous pour éditer « <?= html($narrative->title()) ?> »"
|
||||
data-tooltip="Connectez-vous pour éditer « <?= html($narrative->title()) ?> »"
|
||||
>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24"
|
||||
fill="none" stroke="currentColor" stroke-width="1.8"
|
||||
stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
|
||||
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
|
||||
</svg>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
</footer>
|
||||
|
||||
</article>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue