Migration vers architecture Svelte + Kirby inspirée de design-to-pack
- Mise en place de Svelte 4 avec Vite pour le frontend (SPA) - Simplification des templates PHP (header/footer minimalistes) - Création de templates JSON pour API (home, about, expertise, portfolio, jouer, game, blog, article, project) - Ajout d'un controller de site pour définir genericData globalement - Structure des stores Svelte (page, navigation, locale, site) - Router avec navaid pour navigation SPA et interception des liens - Composants layout (Header, Footer, Cursor) et vues de base - Build Vite vers assets/dist/ (index.js/css) - Header PHP détecte assets/dist pour basculer dev/prod Architecture fonctionnelle de base établie, à améliorer et compléter. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c4456d587c
commit
cbe89acb21
53 changed files with 3348 additions and 772 deletions
|
|
@ -1,36 +1,2 @@
|
|||
<?php snippet('header') ?>
|
||||
|
||||
<main class="expertise">
|
||||
<!-- Intro Section -->
|
||||
<section class="expertise__intro">
|
||||
<h1 class="expertise__title"><?= $page->intro_title() ?></h1>
|
||||
|
||||
<?php if ($page->intro_text()->isNotEmpty()): ?>
|
||||
<p class="expertise__text"><?= $page->intro_text() ?></p>
|
||||
<?php endif ?>
|
||||
</section>
|
||||
|
||||
<!-- Expertise Sections -->
|
||||
<?php if ($page->expertise_sections()->isNotEmpty()): ?>
|
||||
<div class="expertise__sections">
|
||||
<?php foreach ($page->expertise_sections()->toStructure() as $section): ?>
|
||||
<section class="expertise-section expertise-section--<?= $section->icon() ?>">
|
||||
<h2 class="expertise-section__title"><?= $section->title() ?></h2>
|
||||
<div class="expertise-section__content">
|
||||
<?= $section->content()->toBlocks() ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<!-- Objective Section -->
|
||||
<?php if ($page->objective_text()->isNotEmpty()): ?>
|
||||
<section class="expertise__objective">
|
||||
<h2 class="expertise__objective-title"><?= $page->objective_title() ?></h2>
|
||||
<p class="expertise__objective-text"><?= $page->objective_text() ?></p>
|
||||
</section>
|
||||
<?php endif ?>
|
||||
</main>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue