Compare commits
1 Commits
feat/v1.5-
...
feat/v1.5-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb4842ac53 |
Binary file not shown.
|
Before Width: | Height: | Size: 62 KiB |
@@ -58,13 +58,14 @@ const categories = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
---
|
---
|
||||||
<div class="h-full flex flex-col p-4 pt-20 md:pt-6 gap-5">
|
<div class="h-full flex flex-col px-4 pb-4 pt-1 md:pt-6 gap-3 md:gap-5">
|
||||||
|
|
||||||
<!-- Hashtags accordeon -->
|
<!-- Catégories accordeon (V1.5-A.4 : "Hashtags" -> "Catégories")
|
||||||
<details id="hashtags-accordion" class="border-t border-neutral-200 pt-4">
|
V1.5-A.5 : ouvert par defaut sur mobile + desktop (collé sous tab actif). -->
|
||||||
|
<details id="hashtags-accordion" class="md:border-t md:border-neutral-200 md:pt-4" open>
|
||||||
<summary class="font-semibold cursor-pointer select-none flex items-center justify-between">
|
<summary class="font-semibold cursor-pointer select-none flex items-center justify-between">
|
||||||
<span>Hashtags</span>
|
<span>Catégories</span>
|
||||||
<span class="text-xs text-neutral-400 font-normal">4 categories</span>
|
<span class="text-xs text-neutral-400 font-normal">4 catégories</span>
|
||||||
</summary>
|
</summary>
|
||||||
|
|
||||||
<div class="mt-3 flex flex-wrap gap-2" id="category-badges">
|
<div class="mt-3 flex flex-wrap gap-2" id="category-badges">
|
||||||
@@ -121,10 +122,10 @@ const categories = [
|
|||||||
</a>
|
</a>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<!-- Journal chrono -->
|
<!-- Publication chrono (V1.5-A.2 : "Journal" -> "Publication") -->
|
||||||
<section class="border-t border-neutral-200 pt-4 flex-1 overflow-y-auto">
|
<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">
|
<h2 class="font-semibold mb-3 flex items-center justify-between">
|
||||||
<span>Journal</span>
|
<span>Publication</span>
|
||||||
<span class="text-xs text-neutral-400 font-normal">chrono</span>
|
<span class="text-xs text-neutral-400 font-normal">chrono</span>
|
||||||
</h2>
|
</h2>
|
||||||
<div id="journal-list" class="space-y-3 text-sm">
|
<div id="journal-list" class="space-y-3 text-sm">
|
||||||
@@ -134,13 +135,11 @@ const categories = [
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
// V1.5-A.5 : Catégories ouvert par défaut sur mobile ET desktop.
|
||||||
|
// (Auparavant : forcé ouvert desktop seulement, replié sur mobile.)
|
||||||
|
// L'attribut `open` SSR garantit l'état initial — script JS retiré pour ne pas
|
||||||
|
// refermer l'accordéon au resize cross-breakpoint.
|
||||||
const accordion = document.getElementById('hashtags-accordion') as HTMLDetailsElement | null;
|
const accordion = document.getElementById('hashtags-accordion') as HTMLDetailsElement | null;
|
||||||
if (accordion) {
|
|
||||||
const mql = window.matchMedia('(min-width: 768px)');
|
|
||||||
const apply = () => { accordion.open = mql.matches; };
|
|
||||||
apply();
|
|
||||||
mql.addEventListener('change', apply);
|
|
||||||
}
|
|
||||||
|
|
||||||
const closeBtn = document.getElementById('accordion-close');
|
const closeBtn = document.getElementById('accordion-close');
|
||||||
if (closeBtn && accordion) {
|
if (closeBtn && accordion) {
|
||||||
@@ -313,14 +312,25 @@ const categories = [
|
|||||||
dispatchPlatform(platformFilters['politique']);
|
dispatchPlatform(platformFilters['politique']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// V1.3-E : intercept clics liens Manifeste -> preview centrale (uniquement sur racine /)
|
// V1.3-E + V1.5-A.6 : intercept clics liens Manifeste -> preview centrale (uniquement sur racine /).
|
||||||
// Tagger les liens [data-manifeste-link] et router vers event 'preview-open' si on est sur /.
|
// Mobile : on dispatche aussi `mobile-tab-scroll` pos:1 pour swiper vers la col centre
|
||||||
// Sinon : laisser la navigation native vers /manifeste.
|
// (sinon la preview ouvre en background sur la col journal — invisible utilisateur).
|
||||||
|
// SwipeContainer écoute `mobile-tab-scroll` et fait scrollTo(1).
|
||||||
document.querySelectorAll<HTMLAnchorElement>('a[data-manifeste-link]').forEach((el) => {
|
document.querySelectorAll<HTMLAnchorElement>('a[data-manifeste-link]').forEach((el) => {
|
||||||
el.addEventListener('click', (e) => {
|
el.addEventListener('click', (e) => {
|
||||||
if (window.location.pathname === '/') {
|
if (window.location.pathname === '/') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
// Mobile : naviguer d'abord vers tab Carte (pos:1) puis ouvrir preview après le swipe.
|
||||||
|
const isMobile = window.matchMedia('(max-width: 767px)').matches;
|
||||||
|
if (isMobile) {
|
||||||
|
document.dispatchEvent(new CustomEvent('mobile-tab-scroll', { detail: { pos: 1 } }));
|
||||||
|
// Laisse le temps au swipe Embla de se positionner avant d'ouvrir la preview
|
||||||
|
setTimeout(() => {
|
||||||
window.dispatchEvent(new CustomEvent('preview-open', { detail: { type: 'manifeste' } }));
|
window.dispatchEvent(new CustomEvent('preview-open', { detail: { type: 'manifeste' } }));
|
||||||
|
}, 350);
|
||||||
|
} else {
|
||||||
|
window.dispatchEvent(new CustomEvent('preview-open', { detail: { type: 'manifeste' } }));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// sinon : navigation normale vers /manifeste (fallback SEO + no-JS)
|
// sinon : navigation normale vers /manifeste (fallback SEO + no-JS)
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,23 +1,28 @@
|
|||||||
---
|
---
|
||||||
// Footer.astro - V1.5-C.4 : footer 2 lignes au lieu de 3.
|
// Footer.astro - V1.4-F : 1 ligne 3 zones (nav / subscribe / logos RS).
|
||||||
// Ligne 1 (centree, plein cadre) : label Courier 12px #475569 + form subscribe (input + bouton)
|
// Alignement vertical centre + padding-y reduit (py-2) pour profil plus fin.
|
||||||
// Ligne 2 : gauche = nav (Manifeste / A propos / Mentions legales) ; droite = 5 logos RS monochrome #475569.
|
// Subscribe input/button compact (py-1) cale sur baseline des autres elements.
|
||||||
// Palette V1.3 figee : encre #0F172A, encre douce #475569, papier #FAFAF7
|
|
||||||
---
|
---
|
||||||
<footer class="border-t border-neutral-200 px-6 py-3 bg-[#FAFAF7] text-[#0F172A]">
|
<footer class="border-t border-neutral-200 px-6 py-2 bg-[#FAFAF7] text-[#0F172A]">
|
||||||
|
<div class="flex flex-col md:flex-row md:items-center md:justify-between gap-2 md:gap-6">
|
||||||
|
|
||||||
<!-- LIGNE 1 : label + subscribe form, centre plein cadre -->
|
<!-- ZONE GAUCHE : liens nav -->
|
||||||
<div class="flex flex-col items-center gap-1 mb-3">
|
<nav class="flex gap-4 text-xs items-center justify-center md:justify-start">
|
||||||
<p class="footer-label text-[12px] text-[#475569] leading-none">
|
<a href="/manifeste" data-manifeste-link class="opacity-60 hover:opacity-100 transition-opacity">Manifeste</a>
|
||||||
Reçois le journal AEP — un envoi par mois, sans bullshit
|
<a href="/a-propos" class="opacity-60 hover:opacity-100 transition-opacity">A propos</a>
|
||||||
</p>
|
<a href="/mentions-legales" class="opacity-60 hover:opacity-100 transition-opacity">Mentions legales</a>
|
||||||
<form id="subscribe-form" class="flex gap-2 items-center w-full max-w-[320px]">
|
</nav>
|
||||||
|
|
||||||
|
<!-- ZONE CENTRE : subscribe form compact (endpoint /api/subscribe V1.1-I).
|
||||||
|
V1.4-F : padding-y reduit (py-1) pour caler input sur la baseline des liens + logos. -->
|
||||||
|
<div class="flex flex-col items-center gap-0.5">
|
||||||
|
<form id="subscribe-form" class="flex gap-2 items-center">
|
||||||
<input
|
<input
|
||||||
type="email"
|
type="email"
|
||||||
name="email"
|
name="email"
|
||||||
required
|
required
|
||||||
placeholder="ton@email.fr"
|
placeholder="ton@email.fr"
|
||||||
class="flex-1 px-3 py-1 border border-neutral-300 rounded text-xs focus:outline-none focus:border-[#0F172A] bg-white leading-tight"
|
class="px-3 py-1 border border-neutral-300 rounded text-xs focus:outline-none focus:border-[#0F172A] bg-white leading-tight"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
@@ -29,66 +34,58 @@
|
|||||||
<p id="subscribe-msg" class="text-[10px] text-neutral-500 min-h-[0.75rem]"></p>
|
<p id="subscribe-msg" class="text-[10px] text-neutral-500 min-h-[0.75rem]"></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- LIGNE 2 : nav gauche + logos RS droite -->
|
<!-- ZONE DROITE : logos RS cliquables (SVG inline, fill #0F172A 60%) -->
|
||||||
<div class="flex flex-col md:flex-row md:items-center md:justify-between gap-2 md:gap-6">
|
<!-- V1.3-F : gap-4 mobile / gap-6 desktop pour espacer les logos. V1.4-F : items-center force baseline. -->
|
||||||
|
<div class="flex gap-4 md:gap-6 items-center justify-center md:justify-end text-[#0F172A]">
|
||||||
<!-- ZONE GAUCHE : liens nav -->
|
<!-- V1.4-bis FIX 6 : Instagram x2 (AEP politique + Jules perso) avec aria-labels distincts.
|
||||||
<nav class="flex gap-4 text-xs items-center justify-center md:justify-start text-[#475569]">
|
V1.4-bis FIX 7 : SVG simplifie (camera carree avec coins arrondis, lentille, point flash) — rendu propre net. -->
|
||||||
<a href="/manifeste" data-manifeste-link class="opacity-100 hover:text-[#0F172A] transition-colors">Manifeste</a>
|
|
||||||
<a href="/a-propos" class="opacity-100 hover:text-[#0F172A] transition-colors">A propos</a>
|
|
||||||
<a href="/mentions-legales" class="opacity-100 hover:text-[#0F172A] transition-colors">Mentions legales</a>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<!-- ZONE DROITE : 5 logos RS monochrome #475569 100% (V1.5-C.4 : pas les couleurs natives) -->
|
|
||||||
<div class="flex gap-4 md:gap-6 items-center justify-center md:justify-end text-[#475569]">
|
|
||||||
<!-- Instagram @aep.politique -->
|
|
||||||
<a
|
<a
|
||||||
href="https://www.instagram.com/aep.politique/"
|
href="https://www.instagram.com/aep.politique/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
aria-label="Instagram @aep.politique"
|
aria-label="Instagram @aep.politique"
|
||||||
title="@aep.politique"
|
title="@aep.politique"
|
||||||
class="hover:text-[#0F172A] transition-colors"
|
class="opacity-60 hover:opacity-100 transition-opacity"
|
||||||
>
|
>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-[18px] h-[18px] md:w-5 md:h-5" fill="currentColor" aria-hidden="true">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-[18px] h-[18px] md:w-5 md:h-5" fill="currentColor" aria-hidden="true">
|
||||||
<path d="M7.75 2C4.574 2 2 4.574 2 7.75v8.5C2 19.426 4.574 22 7.75 22h8.5C19.426 22 22 19.426 22 16.25v-8.5C22 4.574 19.426 2 16.25 2h-8.5zM4 7.75A3.75 3.75 0 017.75 4h8.5A3.75 3.75 0 0120 7.75v8.5A3.75 3.75 0 0116.25 20h-8.5A3.75 3.75 0 014 16.25v-8.5zM12 7a5 5 0 100 10 5 5 0 000-10zm0 2a3 3 0 110 6 3 3 0 010-6zm5.5-3.5a1 1 0 100 2 1 1 0 000-2z"/>
|
<path d="M7.75 2C4.574 2 2 4.574 2 7.75v8.5C2 19.426 4.574 22 7.75 22h8.5C19.426 22 22 19.426 22 16.25v-8.5C22 4.574 19.426 2 16.25 2h-8.5zM4 7.75A3.75 3.75 0 017.75 4h8.5A3.75 3.75 0 0120 7.75v8.5A3.75 3.75 0 0116.25 20h-8.5A3.75 3.75 0 014 16.25v-8.5zM12 7a5 5 0 100 10 5 5 0 000-10zm0 2a3 3 0 110 6 3 3 0 010-6zm5.5-3.5a1 1 0 100 2 1 1 0 000-2z"/>
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- Instagram @julesneny -->
|
<!-- Instagram @julesneny (compte perso/art) -->
|
||||||
<a
|
<a
|
||||||
href="https://www.instagram.com/julesneny/"
|
href="https://www.instagram.com/julesneny/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
aria-label="Instagram @julesneny"
|
aria-label="Instagram @julesneny"
|
||||||
title="@julesneny"
|
title="@julesneny"
|
||||||
class="hover:text-[#0F172A] transition-colors"
|
class="opacity-60 hover:opacity-100 transition-opacity"
|
||||||
>
|
>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-[18px] h-[18px] md:w-5 md:h-5" fill="currentColor" aria-hidden="true">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-[18px] h-[18px] md:w-5 md:h-5" fill="currentColor" aria-hidden="true">
|
||||||
<path d="M7.75 2C4.574 2 2 4.574 2 7.75v8.5C2 19.426 4.574 22 7.75 22h8.5C19.426 22 22 19.426 22 16.25v-8.5C22 4.574 19.426 2 16.25 2h-8.5zM4 7.75A3.75 3.75 0 017.75 4h8.5A3.75 3.75 0 0120 7.75v8.5A3.75 3.75 0 0116.25 20h-8.5A3.75 3.75 0 014 16.25v-8.5zM12 7a5 5 0 100 10 5 5 0 000-10zm0 2a3 3 0 110 6 3 3 0 010-6zm5.5-3.5a1 1 0 100 2 1 1 0 000-2z"/>
|
<path d="M7.75 2C4.574 2 2 4.574 2 7.75v8.5C2 19.426 4.574 22 7.75 22h8.5C19.426 22 22 19.426 22 16.25v-8.5C22 4.574 19.426 2 16.25 2h-8.5zM4 7.75A3.75 3.75 0 017.75 4h8.5A3.75 3.75 0 0120 7.75v8.5A3.75 3.75 0 0116.25 20h-8.5A3.75 3.75 0 014 16.25v-8.5zM12 7a5 5 0 100 10 5 5 0 000-10zm0 2a3 3 0 110 6 3 3 0 010-6zm5.5-3.5a1 1 0 100 2 1 1 0 000-2z"/>
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- GitHub / Gitea -->
|
<!-- GitHub (TODO: si 404 connu, fallback https://git.trans-former.fr/jules Gitea) -->
|
||||||
<a
|
<a
|
||||||
href="https://github.com/julesneny"
|
href="https://github.com/julesneny"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
aria-label="GitHub"
|
aria-label="GitHub"
|
||||||
class="hover:text-[#0F172A] transition-colors"
|
class="opacity-60 hover:opacity-100 transition-opacity"
|
||||||
>
|
>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-[18px] h-[18px] md:w-5 md:h-5" fill="currentColor" aria-hidden="true">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-[18px] h-[18px] md:w-5 md:h-5" fill="currentColor" aria-hidden="true">
|
||||||
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/>
|
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/>
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<!-- LinkedIn -->
|
<!-- LinkedIn TODO: confirmer URL LinkedIn Jules -->
|
||||||
<a
|
<a
|
||||||
href="https://www.linkedin.com/in/jules-neny/"
|
href="https://www.linkedin.com/in/jules-neny/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
aria-label="LinkedIn"
|
aria-label="LinkedIn"
|
||||||
class="hover:text-[#0F172A] transition-colors"
|
class="opacity-60 hover:opacity-100 transition-opacity"
|
||||||
>
|
>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-[18px] h-[18px] md:w-5 md:h-5" fill="currentColor" aria-hidden="true">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-[18px] h-[18px] md:w-5 md:h-5" fill="currentColor" aria-hidden="true">
|
||||||
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.063 2.063 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
|
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.063 2.063 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
|
||||||
@@ -101,24 +98,19 @@
|
|||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
aria-label="Substack"
|
aria-label="Substack"
|
||||||
class="hover:text-[#0F172A] transition-colors"
|
class="opacity-60 hover:opacity-100 transition-opacity"
|
||||||
>
|
>
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-[18px] h-[18px] md:w-5 md:h-5" fill="currentColor" aria-hidden="true">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="w-[18px] h-[18px] md:w-5 md:h-5" fill="currentColor" aria-hidden="true">
|
||||||
<path d="M22.539 8.242H1.46V5.406h21.08v2.836zM1.46 10.812V24L12 18.11 22.54 24V10.812H1.46zM22.54 0H1.46v2.836h21.08V0z"/>
|
<path d="M22.539 8.242H1.46V5.406h21.08v2.836zM1.46 10.812V24L12 18.11 22.54 24V10.812H1.46zM22.54 0H1.46v2.836h21.08V0z"/>
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<!-- TODO V1.3 : ajouter logo Pinterest quand compte créé -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<style>
|
|
||||||
/* V1.5-C.4 : label newsletter en Courier New 12px, encre douce */
|
|
||||||
.footer-label {
|
|
||||||
font-family: 'Courier New', Courier, monospace;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const form = document.getElementById('subscribe-form') as HTMLFormElement | null;
|
const form = document.getElementById('subscribe-form') as HTMLFormElement | null;
|
||||||
const msg = document.getElementById('subscribe-msg') as HTMLParagraphElement | null;
|
const msg = document.getElementById('subscribe-msg') as HTMLParagraphElement | null;
|
||||||
@@ -154,12 +146,14 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
// V1.3-E : intercept clics liens Manifeste depuis le footer -> preview centrale sur racine.
|
// V1.3-E : intercept clics liens Manifeste depuis le footer -> preview centrale sur racine.
|
||||||
|
// Sur /a-propos, /mentions-legales, /manifeste lui-meme : navigation normale.
|
||||||
document.querySelectorAll<HTMLAnchorElement>('a[data-manifeste-link]').forEach((el) => {
|
document.querySelectorAll<HTMLAnchorElement>('a[data-manifeste-link]').forEach((el) => {
|
||||||
el.addEventListener('click', (e) => {
|
el.addEventListener('click', (e) => {
|
||||||
if (window.location.pathname === '/') {
|
if (window.location.pathname === '/') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
window.dispatchEvent(new CustomEvent('preview-open', { detail: { type: 'manifeste' } }));
|
window.dispatchEvent(new CustomEvent('preview-open', { detail: { type: 'manifeste' } }));
|
||||||
}
|
}
|
||||||
|
// sinon : navigation normale vers /manifeste
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,103 +0,0 @@
|
|||||||
---
|
|
||||||
// HamburgerMenu - drawer slide-in left avec liens nav (PC2)
|
|
||||||
// Astro vanilla + script inline, pas besoin d'island Vue
|
|
||||||
---
|
|
||||||
<button
|
|
||||||
id="hamburger-trigger"
|
|
||||||
type="button"
|
|
||||||
class="fixed top-4 right-4 z-50 p-3 bg-white/95 border border-neutral-200 rounded-lg shadow-md hover:bg-white transition-colors md:hidden"
|
|
||||||
aria-label="Ouvrir le menu"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-controls="hamburger-drawer"
|
|
||||||
>
|
|
||||||
<span class="block w-5 h-0.5 bg-neutral-800 mb-1"></span>
|
|
||||||
<span class="block w-5 h-0.5 bg-neutral-800 mb-1"></span>
|
|
||||||
<span class="block w-5 h-0.5 bg-neutral-800"></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<div
|
|
||||||
id="hamburger-drawer"
|
|
||||||
class="fixed inset-0 z-40 hidden"
|
|
||||||
role="dialog"
|
|
||||||
aria-modal="true"
|
|
||||||
aria-label="Menu de navigation"
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="absolute inset-0 bg-black/30 transition-opacity"
|
|
||||||
data-drawer-close
|
|
||||||
aria-hidden="true"
|
|
||||||
></div>
|
|
||||||
<nav
|
|
||||||
id="hamburger-nav"
|
|
||||||
class="absolute left-0 top-0 h-full w-72 max-w-[80vw] bg-white shadow-xl p-6 transform -translate-x-full transition-transform duration-200 ease-out"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
data-drawer-close
|
|
||||||
class="absolute top-4 right-4 w-9 h-9 flex items-center justify-center text-neutral-500 hover:text-neutral-900 text-2xl leading-none rounded-md hover:bg-neutral-100"
|
|
||||||
aria-label="Fermer le menu"
|
|
||||||
>
|
|
||||||
×
|
|
||||||
</button>
|
|
||||||
<ul class="mt-12 space-y-1 text-base">
|
|
||||||
<li>
|
|
||||||
<a
|
|
||||||
href="/a-propos"
|
|
||||||
class="block px-3 py-2 rounded-md text-neutral-800 hover:bg-neutral-100 hover:text-neutral-900 transition-colors"
|
|
||||||
>
|
|
||||||
A propos
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a
|
|
||||||
href="/manifeste"
|
|
||||||
class="block px-3 py-2 rounded-md text-neutral-800 hover:bg-neutral-100 hover:text-neutral-900 transition-colors"
|
|
||||||
>
|
|
||||||
Manifeste
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a
|
|
||||||
href="/mentions-legales"
|
|
||||||
class="block px-3 py-2 rounded-md text-neutral-800 hover:bg-neutral-100 hover:text-neutral-900 transition-colors"
|
|
||||||
>
|
|
||||||
Mentions legales
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<!-- TODO V2 : ajouter liens ici (newsletter, soutien Liberapay, contact) -->
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
const trigger = document.getElementById('hamburger-trigger');
|
|
||||||
const drawer = document.getElementById('hamburger-drawer');
|
|
||||||
const nav = document.getElementById('hamburger-nav');
|
|
||||||
|
|
||||||
const open = () => {
|
|
||||||
if (!drawer || !nav) return;
|
|
||||||
drawer.classList.remove('hidden');
|
|
||||||
trigger?.setAttribute('aria-expanded', 'true');
|
|
||||||
requestAnimationFrame(() => nav.classList.remove('-translate-x-full'));
|
|
||||||
};
|
|
||||||
|
|
||||||
const close = () => {
|
|
||||||
if (!drawer || !nav) return;
|
|
||||||
nav.classList.add('-translate-x-full');
|
|
||||||
trigger?.setAttribute('aria-expanded', 'false');
|
|
||||||
setTimeout(() => drawer.classList.add('hidden'), 200);
|
|
||||||
};
|
|
||||||
|
|
||||||
trigger?.addEventListener('click', open);
|
|
||||||
|
|
||||||
drawer?.querySelectorAll('[data-drawer-close]').forEach((el) =>
|
|
||||||
el.addEventListener('click', close)
|
|
||||||
);
|
|
||||||
|
|
||||||
// ESC pour fermer
|
|
||||||
document.addEventListener('keydown', (e) => {
|
|
||||||
if (e.key === 'Escape' && drawer && !drawer.classList.contains('hidden')) {
|
|
||||||
close();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@@ -1,20 +1,22 @@
|
|||||||
---
|
---
|
||||||
// MobileTabBar - indicateur de colonne active sur mobile (V1.1-D.1)
|
// MobileTabBar - indicateur de colonne active sur mobile (V1.1-D.1)
|
||||||
|
// V1.5-A.3 : suppression border-b (ligne séparatrice sous header mobile supprimée).
|
||||||
|
// V1.5-A.2 : "Journal" -> "Publication" (vocabulaire visiteur).
|
||||||
// Ecoute l'event "swipe-position-change" emis par SwipeContainer.vue
|
// Ecoute l'event "swipe-position-change" emis par SwipeContainer.vue
|
||||||
// Affiche : Journal | Carte | Insta - colonne active surlignee
|
// Affiche : Publication | Carte | Insta - colonne active surlignee
|
||||||
---
|
---
|
||||||
<nav
|
<nav
|
||||||
id="mobile-tab-bar"
|
id="mobile-tab-bar"
|
||||||
aria-label="Navigation colonnes"
|
aria-label="Navigation colonnes"
|
||||||
class="fixed top-12 left-0 right-0 z-30 h-11 bg-white border-b border-neutral-200 flex items-stretch justify-around md:hidden"
|
class="fixed top-12 left-0 right-0 z-30 h-11 bg-white flex items-stretch justify-around md:hidden"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
data-tab-index="0"
|
data-tab-index="0"
|
||||||
class="mobile-tab flex-1 text-sm px-2 border-b-2 transition-colors"
|
class="mobile-tab flex-1 text-sm px-2 border-b-2 transition-colors"
|
||||||
aria-label="Aller au journal"
|
aria-label="Aller à la publication"
|
||||||
>
|
>
|
||||||
Journal
|
Publication
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
@@ -1,48 +1,51 @@
|
|||||||
---
|
---
|
||||||
// SiteHeader.astro - V1.5-C : header lowercase + mobile 1 ligne unique (truncate ellipsis)
|
// SiteHeader.astro - V1.3-C : header 1 ligne fine, liens cliquables, phrase intention Roboto Condensed
|
||||||
// Palette V1.3 figee : papier #FAFAF7, encre #0F172A, encre douce #475569, border #E5E7EB
|
// Palette V1.3 figee : papier #FAFAF7, encre #0F172A, encre douce #475569, border #E5E7EB
|
||||||
// Composition :
|
// Composition :
|
||||||
// Desktop (>= md) : 1 ligne ~44px - trans-former | Jules Neny | architecture d'ecologie politique [phrase intention right-aligned, Roboto Condensed]
|
// Desktop (>= md) : 1 ligne ~44px - Trans-Former | Jules Neny | architecture d'ecologie politique [phrase intention right-aligned, Roboto Condensed]
|
||||||
// Mobile (< md) : 1 SEULE ligne compacte (V1.5-C.2) - trans-former . Jules Neny . AEP, truncate ellipsis si overflow, phrase intention masquee
|
// Mobile (< md) : 2 lignes compactes - ligne 1 Trans-Former / ligne 2 Jules Neny . AEP (cliquables) - phrase intention masquee
|
||||||
// Liens (V1.5-C.3 confirmes) :
|
// Liens :
|
||||||
// trans-former -> /
|
// Trans-Former -> /
|
||||||
// Jules Neny -> /a-propos
|
// Jules Neny -> /a-propos
|
||||||
// architecture d'ecologie politique -> https://aep.trans-former.fr (same-tab, site frere coherent)
|
// architecture d'ecologie politique -> https://aep.trans-former.fr (same-tab, site frere coherent)
|
||||||
// Typo phrase intention : Roboto Condensed Variable @fontsource (weight 400, font-stretch 75%)
|
// Typo phrase intention : Roboto Condensed Variable @fontsource (weight 400, font-stretch 75%)
|
||||||
import '@fontsource-variable/roboto-condensed/wght.css';
|
import '@fontsource-variable/roboto-condensed/wght.css';
|
||||||
---
|
---
|
||||||
<header
|
<header
|
||||||
class="site-header w-full border-b border-[#E5E7EB] bg-[#FAFAF7] text-[#0F172A] px-4 md:px-6 flex items-center"
|
class="site-header w-full md:border-b md:border-[#E5E7EB] bg-[#FAFAF7] text-[#0F172A] px-4 md:px-6 flex items-center"
|
||||||
role="banner"
|
role="banner"
|
||||||
>
|
>
|
||||||
<!-- Bloc identite (gauche) - V1.5-C.2 : 1 ligne unique mobile + desktop, truncate ellipsis si overflow -->
|
<!-- Bloc identite (gauche) -->
|
||||||
<nav
|
<nav
|
||||||
class="identite flex flex-row items-baseline gap-x-1.5 md:gap-x-2 min-w-0 flex-shrink overflow-hidden whitespace-nowrap"
|
class="flex flex-col md:flex-row md:items-baseline gap-x-2 gap-y-0.5 flex-shrink-0"
|
||||||
aria-label="identite site"
|
aria-label="identite site"
|
||||||
>
|
>
|
||||||
<!-- V1.5-C.1 : lowercase "trans-former" (retire l'effet marque corporate) -->
|
<!-- Ligne 1 desktop = wordmark inline ; mobile = ligne dediee -->
|
||||||
<a
|
<a
|
||||||
href="/"
|
href="/"
|
||||||
class="font-semibold tracking-tight text-[#0F172A] hover:text-[#0F172A] text-[15px] md:text-[16px] leading-none no-underline hover:underline underline-offset-2 decoration-1 flex-shrink-0"
|
class="font-semibold tracking-tight text-[#0F172A] hover:text-[#0F172A] text-[15px] md:text-[16px] leading-none no-underline hover:underline underline-offset-2 decoration-1"
|
||||||
aria-label="trans-former.fr - accueil"
|
aria-label="trans-former.fr - accueil"
|
||||||
>
|
>
|
||||||
trans-former
|
Trans-Former
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<span class="text-[#94A3B8] leading-none flex-shrink-0" aria-hidden="true">·</span>
|
<!-- Bloc secondaire : Jules Neny . AEP (mobile : ligne 2 ; desktop : inline) -->
|
||||||
|
<span class="flex items-baseline gap-1.5 text-[#475569] leading-none">
|
||||||
|
<span class="text-[#94A3B8] hidden md:inline" aria-hidden="true">·</span>
|
||||||
<a
|
<a
|
||||||
href="/a-propos"
|
href="/a-propos"
|
||||||
class="text-[12px] md:text-[13px] text-[#475569] hover:text-[#0F172A] no-underline hover:underline underline-offset-2 decoration-1 leading-none flex-shrink-0"
|
class="text-[12px] md:text-[13px] text-[#475569] hover:text-[#0F172A] no-underline hover:underline underline-offset-2 decoration-1"
|
||||||
>
|
>
|
||||||
Jules Neny
|
Jules Neny
|
||||||
</a>
|
</a>
|
||||||
<span class="text-[#94A3B8] leading-none flex-shrink-0" aria-hidden="true">·</span>
|
<span class="text-[#94A3B8]" aria-hidden="true">·</span>
|
||||||
<a
|
<a
|
||||||
href="https://aep.trans-former.fr"
|
href="https://aep.trans-former.fr"
|
||||||
class="text-[12px] md:text-[13px] text-[#475569] hover:text-[#0F172A] no-underline hover:underline underline-offset-2 decoration-1 leading-none truncate min-w-0"
|
class="text-[12px] md:text-[13px] text-[#475569] hover:text-[#0F172A] no-underline hover:underline underline-offset-2 decoration-1"
|
||||||
>
|
>
|
||||||
architecture d'écologie politique
|
architecture d'écologie politique
|
||||||
</a>
|
</a>
|
||||||
|
</span>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- Phrase intention (droite, desktop only) - Roboto Condensed allongee -->
|
<!-- Phrase intention (droite, desktop only) - Roboto Condensed allongee -->
|
||||||
@@ -57,11 +60,12 @@ import '@fontsource-variable/roboto-condensed/wght.css';
|
|||||||
.site-header {
|
.site-header {
|
||||||
height: 44px;
|
height: 44px;
|
||||||
}
|
}
|
||||||
/* V1.5-C.2 : mobile 1 ligne unique, hauteur identique desktop (44px) */
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.site-header {
|
.site-header {
|
||||||
height: 44px;
|
height: auto;
|
||||||
min-height: 44px;
|
min-height: 48px;
|
||||||
|
padding-top: 6px;
|
||||||
|
padding-bottom: 6px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Phrase intention : Roboto Condensed Variable, font-stretch 75% (allongement vertical condense)
|
/* Phrase intention : Roboto Condensed Variable, font-stretch 75% (allongement vertical condense)
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
// V1.5-A.7 : fallback mobile retiré — la Carte O D3-force fonctionne sur viewport <768px
|
||||||
|
// (testé tel ≥6"). Auparavant : message "optimisée desktop" + miniature SVG statique.
|
||||||
|
// Pourquoi : décision τ.15 PILOTE trop agressive — la mindmap tourne, juste plus dense.
|
||||||
import { ref, onMounted, computed } from 'vue'
|
import { ref, onMounted, computed } from 'vue'
|
||||||
import CarteO from './CarteO.vue'
|
import CarteO from './CarteO.vue'
|
||||||
import CarteOContextMenu from './CarteOContextMenu.vue'
|
import CarteOContextMenu from './CarteOContextMenu.vue'
|
||||||
@@ -44,7 +47,6 @@ const error = ref<string | null>(null)
|
|||||||
const selectedNode = ref<CarteNode | null>(null)
|
const selectedNode = ref<CarteNode | null>(null)
|
||||||
const contextX = ref(0)
|
const contextX = ref(0)
|
||||||
const contextY = ref(0)
|
const contextY = ref(0)
|
||||||
const isMobileScreen = ref(false)
|
|
||||||
|
|
||||||
const familyColors = computed(() =>
|
const familyColors = computed(() =>
|
||||||
data.value?.meta?.familyColors || {
|
data.value?.meta?.familyColors || {
|
||||||
@@ -63,7 +65,6 @@ function onNodeClick(payload: { node: CarteNode; x: number; y: number }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
isMobileScreen.value = window.innerWidth < 768
|
|
||||||
try {
|
try {
|
||||||
const res = await fetch(props.src)
|
const res = await fetch(props.src)
|
||||||
if (!res.ok) throw new Error(`HTTP ${res.status}`)
|
if (!res.ok) throw new Error(`HTTP ${res.status}`)
|
||||||
@@ -72,37 +73,13 @@ onMounted(async () => {
|
|||||||
console.error('[CarteO] failed to load', e)
|
console.error('[CarteO] failed to load', e)
|
||||||
error.value = e?.message || 'Erreur de chargement'
|
error.value = e?.message || 'Erreur de chargement'
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('resize', () => {
|
|
||||||
isMobileScreen.value = window.innerWidth < 768
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<!-- Mobile fallback (V1) -->
|
|
||||||
<div v-if="isMobileScreen" class="mobile-fallback">
|
|
||||||
<div class="mini-map">
|
|
||||||
<svg viewBox="0 0 200 120" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
|
|
||||||
<circle cx="100" cy="60" r="8" fill="#3b82f6" />
|
|
||||||
<circle cx="50" cy="35" r="5" fill="#10b981" />
|
|
||||||
<circle cx="150" cy="35" r="5" fill="#f59e0b" />
|
|
||||||
<circle cx="55" cy="90" r="5" fill="#ef4444" />
|
|
||||||
<circle cx="145" cy="90" r="5" fill="#8b5cf6" />
|
|
||||||
<line x1="100" y1="60" x2="50" y2="35" stroke="#94a3b8" stroke-width="0.8" opacity="0.5" />
|
|
||||||
<line x1="100" y1="60" x2="150" y2="35" stroke="#94a3b8" stroke-width="0.8" opacity="0.5" />
|
|
||||||
<line x1="100" y1="60" x2="55" y2="90" stroke="#94a3b8" stroke-width="0.8" opacity="0.5" />
|
|
||||||
<line x1="100" y1="60" x2="145" y2="90" stroke="#94a3b8" stroke-width="0.8" opacity="0.5" />
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
<p class="msg">
|
|
||||||
Carte O optimisee desktop. Retournez sur grand ecran pour explorer la mindmap interactive.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Loading state -->
|
<!-- Loading state -->
|
||||||
<div v-else-if="!data && !error" class="state">
|
<div v-if="!data && !error" class="state">
|
||||||
<span>Chargement de la Carte O...</span>
|
<span>Chargement de la Carte O...</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -148,34 +125,4 @@ onMounted(async () => {
|
|||||||
.state.error {
|
.state.error {
|
||||||
color: #dc2626;
|
color: #dc2626;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobile-fallback {
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 1.5rem;
|
|
||||||
text-align: center;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mini-map {
|
|
||||||
width: 70%;
|
|
||||||
max-width: 240px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mini-map svg {
|
|
||||||
width: 100%;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.msg {
|
|
||||||
color: #6b7280;
|
|
||||||
font-size: 0.85rem;
|
|
||||||
line-height: 1.45;
|
|
||||||
font-style: italic;
|
|
||||||
max-width: 24rem;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,9 +1,16 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
// V1.5-A.9 : iframe AEP responsive sur mobile.
|
||||||
|
// AEP est confirmé responsive (viewport meta + media queries Tailwind md:).
|
||||||
|
// Mobile (<768px) : on retire le hack scale 0.42 + viewport simulé 1440px,
|
||||||
|
// l'iframe rend à width:100% / height:100% nativement.
|
||||||
|
// Desktop (≥768px) : on conserve le rendu desktop forcé (scale dynamique) pour garder
|
||||||
|
// la mise en page riche de la carte AEP dans la col centre étroite (~480px).
|
||||||
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
import { ref, computed, onMounted, onUnmounted } from 'vue'
|
||||||
|
|
||||||
const iframeRef = ref<HTMLIFrameElement | null>(null)
|
const iframeRef = ref<HTMLIFrameElement | null>(null)
|
||||||
const wrapperRef = ref<HTMLDivElement | null>(null)
|
const wrapperRef = ref<HTMLDivElement | null>(null)
|
||||||
const skeletonHidden = ref(false)
|
const skeletonHidden = ref(false)
|
||||||
|
const isMobile = ref(false)
|
||||||
|
|
||||||
// Force rendu desktop de l'iframe AEP : viewport simulee 1440px + scale dynamique
|
// Force rendu desktop de l'iframe AEP : viewport simulee 1440px + scale dynamique
|
||||||
const VIEWPORT_W = 1440
|
const VIEWPORT_W = 1440
|
||||||
@@ -16,12 +23,24 @@ const updateScale = () => {
|
|||||||
if (w > 0) iframeScale.value = w / VIEWPORT_W
|
if (w > 0) iframeScale.value = w / VIEWPORT_W
|
||||||
}
|
}
|
||||||
|
|
||||||
const iframeStyle = computed(() => ({
|
const iframeStyle = computed(() => {
|
||||||
|
if (isMobile.value) {
|
||||||
|
// Mobile : rendu natif responsive, pas de scale
|
||||||
|
return {
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
transform: 'none',
|
||||||
|
transformOrigin: '0 0',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Desktop : viewport simulé 1440px + scale dynamique (workaround col étroite)
|
||||||
|
return {
|
||||||
width: VIEWPORT_W + 'px',
|
width: VIEWPORT_W + 'px',
|
||||||
height: (100 / iframeScale.value) + '%',
|
height: (100 / iframeScale.value) + '%',
|
||||||
transform: `scale(${iframeScale.value})`,
|
transform: `scale(${iframeScale.value})`,
|
||||||
transformOrigin: '0 0',
|
transformOrigin: '0 0',
|
||||||
}))
|
}
|
||||||
|
})
|
||||||
|
|
||||||
let fallbackTimer: ReturnType<typeof setTimeout> | null = null
|
let fallbackTimer: ReturnType<typeof setTimeout> | null = null
|
||||||
|
|
||||||
@@ -33,7 +52,13 @@ const revealIframe = () => {
|
|||||||
skeletonHidden.value = true
|
skeletonHidden.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const detectMobile = () => {
|
||||||
|
isMobile.value = window.matchMedia('(max-width: 767px)').matches
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
detectMobile()
|
||||||
|
window.addEventListener('resize', detectMobile)
|
||||||
if (wrapperRef.value && typeof ResizeObserver !== 'undefined') {
|
if (wrapperRef.value && typeof ResizeObserver !== 'undefined') {
|
||||||
updateScale()
|
updateScale()
|
||||||
resizeObs = new ResizeObserver(updateScale)
|
resizeObs = new ResizeObserver(updateScale)
|
||||||
@@ -48,6 +73,7 @@ onMounted(() => {
|
|||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
resizeObs?.disconnect()
|
resizeObs?.disconnect()
|
||||||
resizeObs = null
|
resizeObs = null
|
||||||
|
window.removeEventListener('resize', detectMobile)
|
||||||
if (fallbackTimer) {
|
if (fallbackTimer) {
|
||||||
clearTimeout(fallbackTimer)
|
clearTimeout(fallbackTimer)
|
||||||
fallbackTimer = null
|
fallbackTimer = null
|
||||||
|
|||||||
@@ -2,20 +2,15 @@
|
|||||||
export const prerender = true;
|
export const prerender = true;
|
||||||
|
|
||||||
import BaseLayout from '../layouts/BaseLayout.astro';
|
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||||
import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
|
|
||||||
---
|
---
|
||||||
<BaseLayout
|
<BaseLayout
|
||||||
title="A propos - Jules Neny"
|
title="A propos - Jules Neny"
|
||||||
description="Architecte HMONP, ecrivain politique, facilitateur. Bagneres-de-Bigorre, Pyrenees."
|
description="Architecte HMONP, ecrivain politique, facilitateur. Bagneres-de-Bigorre, Pyrenees."
|
||||||
>
|
>
|
||||||
<HamburgerMenu />
|
|
||||||
|
|
||||||
<main class="h-full overflow-y-auto bg-white">
|
<main class="h-full overflow-y-auto bg-white">
|
||||||
<article class="max-w-2xl mx-auto px-6 py-16 md:py-24">
|
<article class="max-w-2xl mx-auto px-6 py-16 md:py-24">
|
||||||
|
|
||||||
<!-- V1.5-BIO : photo Jules a droite du titre desktop, dessous mobile. max-width 320px, radius 4px, eager (above the fold). -->
|
<header class="mb-10">
|
||||||
<header class="mb-10 flex flex-col md:flex-row md:items-start md:gap-8">
|
|
||||||
<div class="flex-1 min-w-0">
|
|
||||||
<p class="text-sm uppercase tracking-widest text-neutral-500 mb-3">
|
<p class="text-sm uppercase tracking-widest text-neutral-500 mb-3">
|
||||||
A propos
|
A propos
|
||||||
</p>
|
</p>
|
||||||
@@ -25,16 +20,6 @@ import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
|
|||||||
<p class="mt-3 text-neutral-600 text-base md:text-lg">
|
<p class="mt-3 text-neutral-600 text-base md:text-lg">
|
||||||
Architecte HMONP. Ecrivain politique. Facilitateur. Bagneres-de-Bigorre, Pyrenees.
|
Architecte HMONP. Ecrivain politique. Facilitateur. Bagneres-de-Bigorre, Pyrenees.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
|
||||||
<img
|
|
||||||
src="/images/jules-profil.jpg"
|
|
||||||
alt="Jules Neny, architecte d'écologie politique"
|
|
||||||
width="320"
|
|
||||||
height="323"
|
|
||||||
loading="eager"
|
|
||||||
decoding="async"
|
|
||||||
class="w-full md:w-[200px] md:max-w-[200px] mt-6 md:mt-0 rounded-[4px] flex-shrink-0"
|
|
||||||
/>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="text-neutral-800 text-[17px] leading-[1.75] space-y-6">
|
<div class="text-neutral-800 text-[17px] leading-[1.75] space-y-6">
|
||||||
|
|||||||
@@ -6,12 +6,10 @@ import ColJournal from '../components/astro/ColJournal.astro';
|
|||||||
import ColCentre from '../components/astro/ColCentre.astro';
|
import ColCentre from '../components/astro/ColCentre.astro';
|
||||||
import ColInsta from '../components/astro/ColInsta.astro';
|
import ColInsta from '../components/astro/ColInsta.astro';
|
||||||
import SwipeContainer from '../components/vue/SwipeContainer.vue';
|
import SwipeContainer from '../components/vue/SwipeContainer.vue';
|
||||||
import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
|
|
||||||
import MobileTabBar from '../components/astro/MobileTabBar.astro';
|
import MobileTabBar from '../components/astro/MobileTabBar.astro';
|
||||||
import PopupOnboarding from '../components/astro/PopupOnboarding.astro';
|
import PopupOnboarding from '../components/astro/PopupOnboarding.astro';
|
||||||
---
|
---
|
||||||
<BaseLayout title="trans-former.fr">
|
<BaseLayout title="trans-former.fr">
|
||||||
<HamburgerMenu />
|
|
||||||
<MobileTabBar />
|
<MobileTabBar />
|
||||||
<PopupOnboarding />
|
<PopupOnboarding />
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
export const prerender = true;
|
export const prerender = true;
|
||||||
|
|
||||||
import BaseLayout from '../layouts/BaseLayout.astro';
|
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||||
import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
|
|
||||||
---
|
---
|
||||||
<BaseLayout
|
<BaseLayout
|
||||||
title="Manifeste - Architecture d'Ecologie Politique"
|
title="Manifeste - Architecture d'Ecologie Politique"
|
||||||
@@ -11,8 +10,6 @@ import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
|
|||||||
articleDate="2026-05-01"
|
articleDate="2026-05-01"
|
||||||
articleDescription="Manifeste fondateur des Agences d'Ecologie Politique - un commun vivant pour bifurquer ensemble."
|
articleDescription="Manifeste fondateur des Agences d'Ecologie Politique - un commun vivant pour bifurquer ensemble."
|
||||||
>
|
>
|
||||||
<HamburgerMenu />
|
|
||||||
|
|
||||||
<main class="h-full overflow-y-auto bg-white">
|
<main class="h-full overflow-y-auto bg-white">
|
||||||
<article class="max-w-2xl mx-auto px-6 py-16 md:py-24">
|
<article class="max-w-2xl mx-auto px-6 py-16 md:py-24">
|
||||||
|
|
||||||
|
|||||||
@@ -2,14 +2,11 @@
|
|||||||
export const prerender = true;
|
export const prerender = true;
|
||||||
|
|
||||||
import BaseLayout from '../../layouts/BaseLayout.astro';
|
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||||
import HamburgerMenu from '../../components/astro/HamburgerMenu.astro';
|
|
||||||
---
|
---
|
||||||
<BaseLayout
|
<BaseLayout
|
||||||
title="Commander la version imprimee - Manifeste AEP"
|
title="Commander la version imprimee - Manifeste AEP"
|
||||||
description="Pre-inscription pour la version imprimee du manifeste Architecture d'Ecologie Politique."
|
description="Pre-inscription pour la version imprimee du manifeste Architecture d'Ecologie Politique."
|
||||||
>
|
>
|
||||||
<HamburgerMenu />
|
|
||||||
|
|
||||||
<main class="h-full overflow-y-auto bg-white">
|
<main class="h-full overflow-y-auto bg-white">
|
||||||
<article class="max-w-xl mx-auto px-6 py-16 md:py-24">
|
<article class="max-w-xl mx-auto px-6 py-16 md:py-24">
|
||||||
|
|
||||||
|
|||||||
@@ -2,14 +2,11 @@
|
|||||||
export const prerender = true;
|
export const prerender = true;
|
||||||
|
|
||||||
import BaseLayout from '../layouts/BaseLayout.astro';
|
import BaseLayout from '../layouts/BaseLayout.astro';
|
||||||
import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
|
|
||||||
---
|
---
|
||||||
<BaseLayout
|
<BaseLayout
|
||||||
title="Mentions legales - trans-former.fr"
|
title="Mentions legales - trans-former.fr"
|
||||||
description="Mentions legales du site trans-former.fr."
|
description="Mentions legales du site trans-former.fr."
|
||||||
>
|
>
|
||||||
<HamburgerMenu />
|
|
||||||
|
|
||||||
<main class="h-full overflow-y-auto bg-white">
|
<main class="h-full overflow-y-auto bg-white">
|
||||||
<article class="max-w-2xl mx-auto px-6 py-16 md:py-24">
|
<article class="max-w-2xl mx-auto px-6 py-16 md:py-24">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user