feat(racine): maquette embeds — articles du manifeste, AEP + rénovation en onglets, art en colonne droite
Gauche : section Articles (13 articles FR publiés sur manifeste.trans-former.fr, relevés sur le flux RSS du site vivant le 21/10 ; liens /<slug>/ car les liens /<slug>/fr/ du flux renvoient 404), au-dessus du Journal. Centre bas : EmbedOnglets remplace EmbedDynamique — aep.trans-former.fr puis renovation-energetique.trans-former.fr, onglets cliquables + défilement lent automatique (20 s, barre de progression), arrêt au survol/focus, arrêt définitif au premier clic, aucun défilement si prefers-reduced-motion ; téléphone : cartes-liens. Droite : art.trans-former.fr en iframe à la place du feed Instagram (InstaFeed gardé dans le repo), bouton Boutique toujours désactivé. Non déployable tel quel : renovation-energetique envoie X-Frame-Options SAMEORIGIN, l'onglet Rénovation reste vide tant que le geste CSP n'est pas posé côté Caddy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NesPD8Rbr37QVgqSBMMKmj
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ae365326a9
commit
fa88bd0a65
@@ -5,7 +5,8 @@
|
||||
// V1.3-D : ChatbotV2 retire du DOM (backlog V2). Pour reactivation -> reintroduire le tab + panel.
|
||||
// V1.4-C : cadre Carte O + bouton toggle desktop + drag fix (window listeners) + preview hydration (client:load) + transitions.
|
||||
import CarteOWrapper from '../vue/CarteOWrapper.vue';
|
||||
import EmbedDynamique from '../vue/EmbedDynamique.vue';
|
||||
// Maquette 2026-10 : EmbedDynamique (carte AEP seule) remplacé par EmbedOnglets (AEP + rénovation).
|
||||
import EmbedOnglets from '../vue/EmbedOnglets.vue';
|
||||
import PreviewArticle from '../vue/PreviewArticle.vue';
|
||||
---
|
||||
<!--
|
||||
@@ -121,7 +122,7 @@ import PreviewArticle from '../vue/PreviewArticle.vue';
|
||||
style="min-height: 0; flex: 1 1 67%; transition: flex-basis 0.3s ease;"
|
||||
>
|
||||
<div class="h-full min-h-[60vh] md:min-h-[400px]">
|
||||
<EmbedDynamique client:visible />
|
||||
<EmbedOnglets client:visible />
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@@ -1,18 +1,35 @@
|
||||
---
|
||||
import InstaFeed from '../vue/InstaFeed.vue';
|
||||
|
||||
const JULESNENY_FEED = Array.from(
|
||||
{ length: 13 },
|
||||
(_, i) => `/images/instagram/feed/feed-${String(i + 1).padStart(2, '0')}.jpg`
|
||||
);
|
||||
// Maquette 2026-10 : le feed Instagram (InstaFeed.vue, gardé dans le repo) est remplacé
|
||||
// par le site art.trans-former.fr en iframe. Le site est en staging noindex : l'embed n'attend
|
||||
// pas sa mise en ligne publique, mais le bouton Boutique reste désactivé jusqu'au go catalogue.
|
||||
const ART_URL = 'https://art.trans-former.fr/';
|
||||
---
|
||||
<div class="h-full overflow-hidden">
|
||||
<InstaFeed
|
||||
client:visible
|
||||
account="Jules Neny"
|
||||
accountUrl="https://www.instagram.com/julesneny/"
|
||||
secondAccount="AEP"
|
||||
secondAccountUrl="https://www.instagram.com/aep.politique/"
|
||||
feedImages={JULESNENY_FEED}
|
||||
/>
|
||||
<section class="h-full flex flex-col">
|
||||
<header class="shrink-0 px-4 py-2 flex items-center justify-between gap-3 border-b border-neutral-200">
|
||||
<a href={ART_URL} target="_blank" rel="noopener" class="font-medium text-sm hover:underline">
|
||||
Jules Neny, peintures
|
||||
</a>
|
||||
<div class="flex items-center gap-3 text-xs">
|
||||
<a href="https://www.instagram.com/julesneny/" target="_blank" rel="noopener" class="text-neutral-500 hover:underline hover:text-neutral-800">Instagram</a>
|
||||
<a href={ART_URL} target="_blank" rel="noopener" class="text-neutral-500 hover:underline hover:text-neutral-800">Ouvrir ↗</a>
|
||||
</div>
|
||||
</header>
|
||||
<div class="flex-1 min-h-0 relative bg-neutral-50">
|
||||
<iframe
|
||||
src={ART_URL}
|
||||
title="Jules Neny, peintures"
|
||||
class="absolute inset-0 w-full h-full border-0"
|
||||
loading="lazy"
|
||||
sandbox="allow-scripts allow-same-origin allow-popups allow-forms"
|
||||
></iframe>
|
||||
</div>
|
||||
<div class="shrink-0 px-2 py-1">
|
||||
<span
|
||||
class="block text-center px-3 py-1 bg-neutral-200 text-neutral-400 rounded text-xs cursor-not-allowed"
|
||||
aria-disabled="true"
|
||||
title="Boutique — bientôt disponible"
|
||||
>
|
||||
Boutique
|
||||
</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
---
|
||||
import JournalList from '../vue/JournalList.vue';
|
||||
import { articlesManifeste } from '../../data/articles-manifeste';
|
||||
|
||||
const formatDate = (iso: string) => {
|
||||
const [a, m, j] = iso.split('-');
|
||||
return `${j}/${m}/${a.slice(2)}`;
|
||||
};
|
||||
|
||||
// V1.4-bis FIX 5 : couleurs pills actives attenuees (60% color + 40% papier).
|
||||
// Active = fill couleur ATTENUEE (muted) + texte encre #0F172A (contraste WCAG ≥4.5:1).
|
||||
@@ -121,6 +127,31 @@ const categories = [
|
||||
</a>
|
||||
</details>
|
||||
|
||||
<!-- Articles du manifeste (maquette 2026-10) : liste statique, src/data/articles-manifeste.ts -->
|
||||
<section class="border-t border-neutral-200 pt-4" aria-labelledby="articles-titre">
|
||||
<h2 id="articles-titre" class="font-semibold mb-3 flex items-center justify-between">
|
||||
<span>Articles</span>
|
||||
<a
|
||||
href="https://manifeste.trans-former.fr/"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
class="text-xs text-neutral-400 font-normal hover:text-neutral-700 hover:underline"
|
||||
>
|
||||
manifeste ↗
|
||||
</a>
|
||||
</h2>
|
||||
<ul class="space-y-2 text-sm">
|
||||
{articlesManifeste.map((a) => (
|
||||
<li>
|
||||
<a href={a.url} target="_blank" rel="noopener" class="block group">
|
||||
<time datetime={a.date} class="block text-[11px] text-neutral-500">{formatDate(a.date)}</time>
|
||||
<span class="block text-neutral-900 group-hover:text-neutral-600 leading-snug">{a.titre}</span>
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<!-- Journal chrono -->
|
||||
<section class="border-t border-neutral-200 pt-4 flex-1 overflow-y-auto">
|
||||
<h2 class="font-semibold mb-3 flex items-center justify-between">
|
||||
|
||||
@@ -0,0 +1,207 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
||||
|
||||
// Centre BAS (maquette 2026-10) : deux sites embarqués en onglets.
|
||||
// Onglets cliquables + défilement lent automatique (barre de progression sous l'onglet actif),
|
||||
// arrêt au survol / au focus / onglet navigateur caché ; un clic de l'utilisateur arrête
|
||||
// définitivement le défilement. prefers-reduced-motion : pas de défilement automatique.
|
||||
// Téléphone (< 768 px) : une carte-lien par site, pas d'iframe (illisible à l'échelle 0,27).
|
||||
|
||||
interface Onglet {
|
||||
id: string
|
||||
label: string
|
||||
titre: string
|
||||
description: string
|
||||
url: string
|
||||
}
|
||||
|
||||
const onglets: Onglet[] = [
|
||||
{
|
||||
id: 'aep',
|
||||
label: 'AEP',
|
||||
titre: "Architecture d'écologie politique",
|
||||
description: "La carte et les outils d'AEP.",
|
||||
url: 'https://aep.trans-former.fr/',
|
||||
},
|
||||
{
|
||||
id: 'renovation',
|
||||
label: 'Rénovation',
|
||||
titre: 'Rénovation des maisons individuelles',
|
||||
description: 'Une maison des années 50-90 à transformer par étapes.',
|
||||
url: 'https://renovation-energetique.trans-former.fr/',
|
||||
},
|
||||
]
|
||||
|
||||
const DUREE_MS = 20000
|
||||
const VIEWPORT_W = 1440
|
||||
|
||||
const actif = ref(0)
|
||||
const montes = ref<boolean[]>(onglets.map((_, i) => i === 0))
|
||||
const charges = ref<boolean[]>(onglets.map(() => false))
|
||||
const enPause = ref(false)
|
||||
const arrete = ref(false)
|
||||
const progression = ref(0) // 0 → 1
|
||||
const mobile = ref(false)
|
||||
const scale = ref(0.42)
|
||||
const wrapperRef = ref<HTMLDivElement | null>(null)
|
||||
|
||||
let raf = 0
|
||||
let dernier = 0
|
||||
let resizeObs: ResizeObserver | null = null
|
||||
let mqlMobile: MediaQueryList | null = null
|
||||
|
||||
const iframeStyle = computed(() => ({
|
||||
width: VIEWPORT_W + 'px',
|
||||
height: 100 / scale.value + '%',
|
||||
transform: `scale(${scale.value})`,
|
||||
transformOrigin: '0 0',
|
||||
}))
|
||||
|
||||
const updateScale = () => {
|
||||
const w = wrapperRef.value?.clientWidth ?? 0
|
||||
if (w > 0) scale.value = w / VIEWPORT_W
|
||||
}
|
||||
|
||||
const activer = (i: number) => {
|
||||
actif.value = i
|
||||
montes.value[i] = true
|
||||
progression.value = 0
|
||||
}
|
||||
|
||||
const choisir = (i: number) => {
|
||||
arrete.value = true
|
||||
activer(i)
|
||||
}
|
||||
|
||||
const tick = (t: number) => {
|
||||
if (dernier && !enPause.value && !arrete.value && !document.hidden) {
|
||||
progression.value += (t - dernier) / DUREE_MS
|
||||
if (progression.value >= 1) activer((actif.value + 1) % onglets.length)
|
||||
}
|
||||
dernier = t
|
||||
raf = requestAnimationFrame(tick)
|
||||
}
|
||||
|
||||
const onMqlMobile = () => {
|
||||
mobile.value = !!mqlMobile?.matches
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
mqlMobile = window.matchMedia('(max-width: 767px)')
|
||||
onMqlMobile()
|
||||
mqlMobile.addEventListener('change', onMqlMobile)
|
||||
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) arrete.value = true
|
||||
if (wrapperRef.value && typeof ResizeObserver !== 'undefined') {
|
||||
updateScale()
|
||||
resizeObs = new ResizeObserver(updateScale)
|
||||
resizeObs.observe(wrapperRef.value)
|
||||
}
|
||||
// Le second site se charge en arrière-plan après quelques secondes, pour que le passage soit sans attente.
|
||||
setTimeout(() => montes.value.forEach((_, i) => (montes.value[i] = true)), 4000)
|
||||
raf = requestAnimationFrame(tick)
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
cancelAnimationFrame(raf)
|
||||
resizeObs?.disconnect()
|
||||
mqlMobile?.removeEventListener('change', onMqlMobile)
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="embed-onglets h-full flex flex-col"
|
||||
@mouseenter="enPause = true"
|
||||
@mouseleave="enPause = false"
|
||||
@focusin="enPause = true"
|
||||
@focusout="enPause = false"
|
||||
>
|
||||
<div
|
||||
v-if="!mobile"
|
||||
role="tablist"
|
||||
aria-label="Sites embarqués"
|
||||
class="shrink-0 flex items-stretch border-b border-neutral-200 bg-white"
|
||||
style="font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;"
|
||||
>
|
||||
<button
|
||||
v-for="(o, i) in onglets"
|
||||
:key="o.id"
|
||||
type="button"
|
||||
role="tab"
|
||||
:id="`onglet-${o.id}`"
|
||||
:aria-selected="actif === i"
|
||||
:aria-controls="`panneau-${o.id}`"
|
||||
class="relative px-4 py-2 text-xs cursor-pointer transition-colors"
|
||||
:class="actif === i ? 'text-neutral-900' : 'text-neutral-500 hover:text-neutral-800'"
|
||||
@click="choisir(i)"
|
||||
>
|
||||
{{ o.label }}
|
||||
<span
|
||||
aria-hidden="true"
|
||||
class="absolute left-0 bottom-0 h-0.5"
|
||||
:style="{
|
||||
width: actif === i ? (arrete ? '100%' : `${Math.min(progression, 1) * 100}%`) : '0%',
|
||||
background: '#0F172A',
|
||||
}"
|
||||
></span>
|
||||
</button>
|
||||
<a
|
||||
:href="onglets[actif].url"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
class="ml-auto self-center px-3 text-xs text-neutral-500 hover:text-neutral-900 hover:underline"
|
||||
>
|
||||
Ouvrir le site ↗
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Téléphone : cartes-liens -->
|
||||
<div v-if="mobile" class="flex-1 p-3 space-y-3 overflow-y-auto">
|
||||
<a
|
||||
v-for="o in onglets"
|
||||
:key="o.id"
|
||||
:href="o.url"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
class="block border border-neutral-200 rounded p-4 hover:bg-neutral-50"
|
||||
>
|
||||
<span class="block text-xs text-neutral-500 font-mono">{{ o.label }}</span>
|
||||
<span class="block text-base text-neutral-900 mt-1">{{ o.titre }}</span>
|
||||
<span class="block text-sm text-neutral-500 mt-1">{{ o.description }}</span>
|
||||
<span class="block text-xs text-neutral-700 mt-2 underline">Ouvrir le site ↗</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Bureau : iframes empilées, fondu entre les onglets -->
|
||||
<div v-else ref="wrapperRef" class="relative flex-1 min-h-0 bg-neutral-100 overflow-hidden">
|
||||
<div
|
||||
v-for="(o, i) in onglets"
|
||||
:key="o.id"
|
||||
:id="`panneau-${o.id}`"
|
||||
role="tabpanel"
|
||||
:aria-labelledby="`onglet-${o.id}`"
|
||||
:aria-hidden="actif !== i"
|
||||
class="absolute inset-0 transition-opacity duration-700"
|
||||
:style="{ opacity: actif === i ? 1 : 0, pointerEvents: actif === i ? 'auto' : 'none' }"
|
||||
>
|
||||
<div
|
||||
v-if="!charges[i]"
|
||||
class="absolute inset-0 flex items-center justify-center bg-neutral-50 animate-pulse"
|
||||
>
|
||||
<span class="text-neutral-400 text-sm">Chargement de {{ o.label }}...</span>
|
||||
</div>
|
||||
<iframe
|
||||
v-if="montes[i]"
|
||||
:src="o.url"
|
||||
:title="o.titre"
|
||||
class="absolute top-0 left-0 border-0"
|
||||
:style="iframeStyle"
|
||||
:tabindex="actif === i ? 0 : -1"
|
||||
loading="lazy"
|
||||
sandbox="allow-scripts allow-same-origin allow-popups allow-forms"
|
||||
@load="charges[i] = true"
|
||||
></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -0,0 +1,27 @@
|
||||
// Articles publiés sur manifeste.trans-former.fr, du plus récent au plus ancien.
|
||||
// Source : flux RSS du site vivant (relevé le 2026-10-21), version française seulement.
|
||||
// Les liens du flux pointent vers /<slug>/fr/ qui renvoie 404 : on lie /<slug>/ (200).
|
||||
// Le site vivant fait foi : 4 de ces articles ne sont pas sur astro-site master.
|
||||
export interface ArticleManifeste {
|
||||
titre: string
|
||||
date: string // ISO AAAA-MM-JJ
|
||||
url: string
|
||||
}
|
||||
|
||||
const BASE = 'https://manifeste.trans-former.fr'
|
||||
|
||||
export const articlesManifeste: ArticleManifeste[] = [
|
||||
{ date: '2026-07-26', titre: 'AEP, conclusion saison 1 : on sait tout et on ne bouge pas', url: `${BASE}/on-sait-tout-et-on-ne-bouge-pas/` },
|
||||
{ date: '2026-07-04', titre: 'Chantier ouvert au public - S2', url: `${BASE}/s2-de-la-peur-a-l-elan/` },
|
||||
{ date: '2026-06-20', titre: 'Échelle S — faire le saut vers ses projets', url: `${BASE}/echelle-s-faire-le-saut/` },
|
||||
{ date: '2026-05-22', titre: 'Bilan phase M - structuration communautaire', url: `${BASE}/bilan-phase-m/` },
|
||||
{ date: '2026-05-18', titre: 'IA : le vélo ou la fusée ?', url: `${BASE}/ia-velo-ou-fusee/` },
|
||||
{ date: '2026-05-10', titre: "40k€ pour démarrer la construction de notre réseau d'entraide", url: `${BASE}/40k-pour-monter-notre-commu/` },
|
||||
{ date: '2026-05-03', titre: "Sortir la tête de l'eau, ensemble", url: `${BASE}/aep-m7-codev-fete/` },
|
||||
{ date: '2026-04-27', titre: "Visibiliser le réseau d'entraide déjà existant", url: `${BASE}/aep-m7-carto-participative/` },
|
||||
{ date: '2026-04-27', titre: "AEP M7 - Structurer l'entraide collective", url: `${BASE}/aep-m7-entraide/` },
|
||||
{ date: '2026-04-12', titre: 'Résistance et régénération', url: `${BASE}/aep-m6-resistance/` },
|
||||
{ date: '2026-02-15', titre: "Anatomie d'une société en crise — échelle XL (3/8)", url: `${BASE}/aep-m3-echxl/` },
|
||||
{ date: '2026-01-25', titre: 'Architecture, anatomie d’individus sous l’eau 2/8', url: `${BASE}/aep-m2-echs/` },
|
||||
{ date: '2025-11-30', titre: "Architecture, anatomie d'une profession sous l'eau 1/8", url: `${BASE}/aep-m1-echm/` },
|
||||
]
|
||||
Reference in New Issue
Block a user