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>
2026-02-06 16:30:15 +01:00
|
|
|
<script>
|
2026-03-10 16:47:49 +01:00
|
|
|
import Footer from '@components/layout/Footer.svelte'
|
|
|
|
|
|
2026-02-07 08:26:28 +01:00
|
|
|
let { data } = $props()
|
2026-03-10 16:47:49 +01:00
|
|
|
|
|
|
|
|
const featured = $derived(data?.featured ?? null)
|
|
|
|
|
const articles = $derived(data?.articles ?? [])
|
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>
2026-02-06 16:30:15 +01:00
|
|
|
</script>
|
|
|
|
|
|
2026-03-10 16:47:49 +01:00
|
|
|
<section class="blog page-scrollable">
|
|
|
|
|
<div class="page-container">
|
|
|
|
|
|
|
|
|
|
<!-- Intro -->
|
|
|
|
|
{#if data?.intro}
|
|
|
|
|
<header class="blog-header">
|
|
|
|
|
{@html data.intro}
|
|
|
|
|
</header>
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<!-- Featured article -->
|
|
|
|
|
{#if featured}
|
|
|
|
|
<article class="blog-card blog-card--featured">
|
|
|
|
|
<div class="blog-card-text">
|
|
|
|
|
<time class="blog-card-date">{featured.date}</time>
|
|
|
|
|
<h2 class="blog-card-title">
|
|
|
|
|
<a href="/blog/{featured.slug}">{featured.title}</a>
|
|
|
|
|
</h2>
|
|
|
|
|
{#if featured.intro}
|
|
|
|
|
<p class="blog-card-excerpt">{featured.intro}</p>
|
|
|
|
|
{/if}
|
|
|
|
|
<a href="/blog/{featured.slug}" class="blog-card-readmore">
|
|
|
|
|
Lire l'article <span class="arrow">→</span>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{#if featured.cover}
|
|
|
|
|
<div class="blog-card-image blog-card-image--featured">
|
|
|
|
|
<a href="/blog/{featured.slug}">
|
|
|
|
|
<img src={featured.cover} alt={featured.title} />
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
</article>
|
|
|
|
|
<hr class="blog-divider" />
|
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
<!-- Articles list -->
|
|
|
|
|
{#each articles as article, i}
|
|
|
|
|
<article class="blog-card">
|
|
|
|
|
<div class="blog-card-text">
|
|
|
|
|
<time class="blog-card-date">{article.date}</time>
|
|
|
|
|
<h2 class="blog-card-title">
|
|
|
|
|
<a href="/blog/{article.slug}">{article.title}</a>
|
|
|
|
|
</h2>
|
|
|
|
|
<a href="/blog/{article.slug}" class="blog-card-readmore">
|
|
|
|
|
Lire l'article <span class="arrow">→</span>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{#if article.cover}
|
|
|
|
|
<div class="blog-card-image">
|
|
|
|
|
<a href="/blog/{article.slug}">
|
|
|
|
|
<img src={article.cover} alt={article.title} />
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
</article>
|
|
|
|
|
{#if i < articles.length - 1}
|
|
|
|
|
<hr class="blog-divider" />
|
|
|
|
|
{/if}
|
|
|
|
|
{/each}
|
|
|
|
|
|
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>
2026-02-06 16:30:15 +01:00
|
|
|
</div>
|
2026-03-10 16:47:49 +01:00
|
|
|
|
|
|
|
|
<Footer />
|
|
|
|
|
</section>
|
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>
2026-02-06 16:30:15 +01:00
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.blog {
|
2026-03-10 16:47:49 +01:00
|
|
|
background: #0d0e22;
|
|
|
|
|
color: var(--color-text);
|
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>
2026-02-06 16:30:15 +01:00
|
|
|
}
|
|
|
|
|
|
2026-03-10 16:47:49 +01:00
|
|
|
/* --- Header / Intro --- */
|
|
|
|
|
.blog-header {
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 6rem 0 3rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-header :global(h1) {
|
|
|
|
|
font-family: "Terminal", sans-serif;
|
|
|
|
|
font-size: var(--font-size-title-main);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-header :global(p) {
|
|
|
|
|
font-size: var(--font-size-subtitle);
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
max-width: 640px;
|
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>
2026-02-06 16:30:15 +01:00
|
|
|
margin: 0 auto;
|
2026-03-10 16:47:49 +01:00
|
|
|
opacity: 0.9;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Card (article item) --- */
|
|
|
|
|
.blog-card {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
gap: 2rem;
|
|
|
|
|
padding: 1.5rem 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-text {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
max-width: 640px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-date {
|
|
|
|
|
color: #d9d9d9;
|
|
|
|
|
font-size: var(--font-size-paragraph);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-title {
|
|
|
|
|
font-family: "Danzza Bold", sans-serif;
|
|
|
|
|
font-size: var(--font-size-title-section);
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-title a {
|
|
|
|
|
transition: color 0.2s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-title a:hover {
|
|
|
|
|
color: var(--color-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-excerpt {
|
|
|
|
|
color: #d9d9d9;
|
|
|
|
|
font-size: var(--font-size-paragraph);
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-readmore {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
color: var(--color-primary);
|
|
|
|
|
font-family: "Danzza Medium", sans-serif;
|
|
|
|
|
font-size: var(--font-size-paragraph);
|
|
|
|
|
transition: gap 0.2s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-readmore:hover {
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Image --- */
|
|
|
|
|
.blog-card-image img {
|
|
|
|
|
width: 300px;
|
|
|
|
|
height: 169px;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
transition: transform 0.3s;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-image img:hover {
|
|
|
|
|
transform: scale(1.05);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-image--featured img {
|
|
|
|
|
width: auto;
|
|
|
|
|
height: 300px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Divider --- */
|
|
|
|
|
.blog-divider {
|
|
|
|
|
border: none;
|
|
|
|
|
border-top: 1px solid rgba(255, 255, 255, 0.15);
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Featured --- */
|
|
|
|
|
.blog-card--featured .blog-card-title {
|
|
|
|
|
font-size: 36px;
|
|
|
|
|
line-height: 1.3;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Mobile --- */
|
|
|
|
|
@media (--mobile) {
|
|
|
|
|
.blog-header {
|
|
|
|
|
padding: 4rem 0 2rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-header :global(h1) {
|
|
|
|
|
font-size: var(--font-size-title-main-mobile);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-header :global(p) {
|
|
|
|
|
font-size: var(--font-size-subtitle-mobile);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-image img,
|
|
|
|
|
.blog-card-image--featured img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
aspect-ratio: 16/9;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card--featured .blog-card-title {
|
|
|
|
|
font-size: var(--font-size-title-section-mobile);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-title {
|
|
|
|
|
font-size: var(--font-size-title-section-mobile);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* --- Tablet --- */
|
|
|
|
|
@media (--tablet-only) {
|
|
|
|
|
.blog-header :global(h1) {
|
|
|
|
|
font-size: var(--font-size-title-main-tablet);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.blog-card-image img,
|
|
|
|
|
.blog-card-image--featured img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
aspect-ratio: 16/9;
|
|
|
|
|
}
|
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>
2026-02-06 16:30:15 +01:00
|
|
|
}
|
|
|
|
|
</style>
|