site vitrine
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 26s

This commit is contained in:
sarahgarcin1 2026-07-02 17:31:57 +02:00
parent 9cbb44c2ca
commit 1c4463d0c1
13 changed files with 36 additions and 105 deletions

2
.gitignore vendored
View file

@ -27,6 +27,8 @@ node_modules
api/.env
# Claude — ignore local/personal settings, but version the shared hook config for the team
.claude/*
.claude
/.claude/*
!/.claude/settings.json
!/.claude/hooks/

View file

@ -8,10 +8,12 @@ columns:
type: fields
fields:
text:
lable: Texte
type: writer
sidebar:
width: 1/3
sections:
files:
label: Fichiers
type: files

View file

@ -11,10 +11,11 @@ tabs:
label: Contenu
columns:
main:
width: 1/1
width: 2/3
sections:
fields:
type: fields
width: 1/3
fields:
cover:
label: Image de couverture
@ -29,6 +30,12 @@ tabs:
- image
- list
- quote
sidebar:
width: 1/3
sections:
files:
label: Fichiers
type: files
position:
label: Position

View file

@ -24,7 +24,7 @@ columns:
accept: all
icon: tag
width: 1/2
help: "Ex : PHP, Kirby, CSS, JavaScript, Design…"
help: "Ex : Création, Édition, Impression…"
chapo:
label: Chapô
type: writer

View file

@ -0,0 +1,14 @@
<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"/>
</svg>
</a>
</div>

View file

@ -6,12 +6,7 @@
<?php if ($site->copyright()->isNotEmpty()): ?>
<span class="hp-footer__copy"><?= html($site->copyright()) ?></span>
<?php endif ?>
<a href="<?= $site->url() ?>/panel" class="hp-footer__panel" title="Panel">
<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">
<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"/>
</svg>
</a>
<?php snippet('btn-connect')?>
</div>
</div>
</div>

View file

@ -16,12 +16,7 @@
<?php endforeach ?>
<?php if ($kirby->user()): ?>
<a href="<?= $site->url() ?>/panel" class="hp-nav__panel" title="Ouvrir le panel">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" 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"/>
</svg>
</a>
<?php snippet('btn-connect')?>
<?php endif ?>
</nav>
</header>

View file

@ -12,33 +12,7 @@
<!-- ═══════════════════════════════════════════
HEADER / NAVIGATION
════════════════════════════════════════════ -->
<header class="hp-header" id="hp-header">
<a href="<?= $site->url() ?>" class="hp-header__brand">
<?= html($site->title()) ?>
</a>
<nav class="hp-header__nav" aria-label="Navigation principale">
<?php
$navPages = $site->children()->listed()
->filterBy('intendedTemplate', 'in', ['actus', 'tutos', 'projects', 'about']);
?>
<?php foreach ($navPages as $navPage): ?>
<a
href="<?= $navPage->url() ?>"
class="hp-nav__link<?= $navPage->isOpen() ? ' is-active' : '' ?>"
><?= html($navPage->title()) ?></a>
<?php endforeach ?>
<?php if ($kirby->user()): ?>
<a href="<?= $site->url() ?>/panel" class="hp-nav__panel" title="Ouvrir le panel">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" 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"/>
</svg>
</a>
<?php endif ?>
</nav>
</header>
<?php snippet('nav-web')?>
<section class="hp-section">
@ -50,24 +24,7 @@
<!-- ═══════════════════════════════════════════
FOOTER
════════════════════════════════════════════ -->
<footer class="hp-footer">
<div class="hp-container">
<div class="hp-footer__inner">
<p class="hp-footer__brand"><?= html($site->title()) ?></p>
<div class="hp-footer__right">
<?php if ($site->copyright()->isNotEmpty()): ?>
<span class="hp-footer__copy"><?= html($site->copyright()) ?></span>
<?php endif ?>
<a href="<?= $site->url() ?>/panel" class="hp-footer__panel" title="Panel">
<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">
<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"/>
</svg>
</a>
</div>
</div>
</div>
</footer>
<?php snippet('footer-web') ?>
</div>

View file

@ -14,17 +14,6 @@
<section class="hp-section">
<div class="hp-container">
<?php if ($page->intro()->isNotEmpty()): ?>
<div class="hp-section__header">
<h2 class="hp-section-title"><?= html($page->title()) ?></h2>
<div class="hp-section__intro"><?= $page->intro()->kt() ?></div>
</div>
<?php else: ?>
<div class="hp-section__header">
<h2 class="hp-section-title"><?= html($page->title()) ?></h2>
</div>
<?php endif ?>
<?php if ($items->isEmpty()): ?>
<p class="hp-empty">Aucune actualité pour l'instant.</p>
<?php else: ?>

View file

@ -167,8 +167,8 @@
</div>
<?php if ($newsPages->isNotEmpty()): ?>
<div class="hp-grid hp-grid--3">
<?php foreach ($newsPages->limit(3) as $i => $newsItem): ?>
<div class="hp-grid hp-grid--4">
<?php foreach ($newsPages->limit(4) as $i => $newsItem): ?>
<?php $newsCover = $newsItem->cover()->toFile(); ?>
<article class="hp-card" style="--card-index: <?= $i ?>">

View file

@ -102,6 +102,7 @@ foreach ($subpages as $subpage) {
</div>
<?php endif ?>
</div>
<?php snippet('btn-connect');?>
</header>

View file

@ -24,21 +24,7 @@
<?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>
<?php snippet('btn-connect');?>
</header>
<!-- ═══════════════════════════════════════════

View file

@ -86,24 +86,7 @@
<!-- ═══════════════════════════════════════════
FOOTER
════════════════════════════════════════════ -->
<footer class="hp-footer">
<div class="hp-container">
<div class="hp-footer__inner">
<p class="hp-footer__brand"><?= html($site->title()) ?></p>
<div class="hp-footer__right">
<?php if ($site->copyright()->isNotEmpty()): ?>
<span class="hp-footer__copy"><?= html($site->copyright()) ?></span>
<?php endif ?>
<a href="<?= $site->url() ?>/panel" class="hp-footer__panel" title="Panel">
<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">
<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"/>
</svg>
</a>
</div>
</div>
</div>
</footer>
<?php snippet('footer-web') ?>
</div>