Compare commits
1 Commits
8703d056d9
...
feat/v13-f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e012d11bee |
@@ -1,11 +1,14 @@
|
||||
---
|
||||
import JournalList from '../vue/JournalList.vue';
|
||||
|
||||
// V1.3-F : palette desopacifiee — chaque categorie a une pastel pour le fill pill inactive.
|
||||
// Regle bicouche : pastel = FILL pill inactive uniquement. Border + texte = encre couleur 100%.
|
||||
const categories = [
|
||||
{
|
||||
id: 'politique',
|
||||
label: 'Politique',
|
||||
color: '#B5443A',
|
||||
pastel: '#E5C3BE',
|
||||
hashtags: ['#politique', '#aep-politique'],
|
||||
plateformes: [
|
||||
{ id: 'instagram', label: 'Court', url: 'https://www.instagram.com/aep.politique/' },
|
||||
@@ -18,6 +21,7 @@ const categories = [
|
||||
id: 'art',
|
||||
label: 'Art',
|
||||
color: '#5B6B3A',
|
||||
pastel: '#CACFBE',
|
||||
hashtags: ['#peinture', '#art'],
|
||||
plateformes: [
|
||||
{ id: 'instagram', label: '@julesneny', url: 'https://www.instagram.com/julesneny/' },
|
||||
@@ -28,6 +32,7 @@ const categories = [
|
||||
id: 'outils',
|
||||
label: 'Outils',
|
||||
color: '#475569',
|
||||
pastel: '#C4C8CC',
|
||||
hashtags: ['#stack', '#building-public'],
|
||||
plateformes: [
|
||||
{ id: 'gitea', label: 'Gitea', url: 'https://git.trans-former.fr/jules' },
|
||||
@@ -38,6 +43,7 @@ const categories = [
|
||||
id: 'pro',
|
||||
label: 'Pro',
|
||||
color: '#0F172A',
|
||||
pastel: '#C4C8CC',
|
||||
hashtags: ['#building-public', '#pro'],
|
||||
plateformes: [
|
||||
{ id: 'linkedin', label: 'LinkedIn', url: 'https://www.linkedin.com/in/jules-neny/' },
|
||||
@@ -62,6 +68,7 @@ const categories = [
|
||||
data-category-id={cat.id}
|
||||
data-hashtags={cat.hashtags.join(',')}
|
||||
data-color={cat.color}
|
||||
data-pastel={cat.pastel}
|
||||
data-has-selector={cat.hasSelector ? 'true' : 'false'}
|
||||
class="category-badge"
|
||||
style={`background:${cat.color};color:#fff;font-family:'Courier New',Courier,monospace;font-size:13px;padding:3px 10px;border-radius:4px;cursor:pointer;border:1px solid ${cat.color};`}
|
||||
@@ -71,14 +78,14 @@ const categories = [
|
||||
))}
|
||||
</div>
|
||||
|
||||
<!-- Selecteur plateforme Politique -->
|
||||
<!-- Selecteur plateforme Politique (V1.3-F : pastel #E5C3BE en fill inactive) -->
|
||||
<div id="politique-selector" class="mt-2 hidden flex gap-2">
|
||||
{categories[0].plateformes.map((p) => (
|
||||
<button
|
||||
type="button"
|
||||
data-platform-id={p.id}
|
||||
class="platform-pill"
|
||||
style="font-family:'Courier New',Courier,monospace;font-size:12px;padding:2px 8px;border-radius:12px;cursor:pointer;border:1px solid #B5443A;background:transparent;color:#B5443A;"
|
||||
style="font-family:'Courier New',Courier,monospace;font-size:12px;padding:2px 8px;border-radius:12px;cursor:pointer;border:1px solid #B5443A;background:#E5C3BE;color:#B5443A;"
|
||||
>
|
||||
{p.label}
|
||||
</button>
|
||||
@@ -203,14 +210,18 @@ const categories = [
|
||||
window.dispatchEvent(new CustomEvent('platform-filter-change', { detail: { platform } }));
|
||||
};
|
||||
|
||||
// V1.3-F : palette desopacifiee.
|
||||
// Active = fill couleur 100% + texte blanc.
|
||||
// Inactive = fill pastel + texte couleur 100% + border couleur 100% (regle bicouche).
|
||||
const updateBadgeStyle = (btn: HTMLElement, active: boolean) => {
|
||||
const color = btn.dataset.color || '#000';
|
||||
const pastel = btn.dataset.pastel || '#E5C3BE';
|
||||
if (active) {
|
||||
btn.style.background = color;
|
||||
btn.style.color = '#fff';
|
||||
btn.style.border = `1px solid ${color}`;
|
||||
} else {
|
||||
btn.style.background = 'transparent';
|
||||
btn.style.background = pastel;
|
||||
btn.style.color = color;
|
||||
btn.style.border = `1px solid ${color}`;
|
||||
}
|
||||
@@ -228,6 +239,9 @@ const categories = [
|
||||
}
|
||||
};
|
||||
|
||||
// V1.3-F : sub-pills Politique, regle bicouche identique.
|
||||
// Active (ou aucun filtre) = fill brique #B5443A + texte blanc.
|
||||
// Inactive = fill pastel #E5C3BE + texte brique + border brique 100%.
|
||||
const updatePillStyles = () => {
|
||||
const pills = document.querySelectorAll<HTMLElement>('.platform-pill');
|
||||
const active = platformFilters['politique'];
|
||||
@@ -237,7 +251,7 @@ const categories = [
|
||||
pill.style.background = '#B5443A';
|
||||
pill.style.color = '#fff';
|
||||
} else {
|
||||
pill.style.background = 'transparent';
|
||||
pill.style.background = '#E5C3BE';
|
||||
pill.style.color = '#B5443A';
|
||||
}
|
||||
});
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
</div>
|
||||
|
||||
<!-- ZONE DROITE : logos RS cliquables (SVG inline, fill #0F172A 60%) -->
|
||||
<div class="flex gap-3 items-center justify-center md:justify-end text-[#0F172A]">
|
||||
<!-- V1.3-F : gap-4 mobile / gap-6 desktop pour espacer les logos -->
|
||||
<div class="flex gap-4 md:gap-6 items-center justify-center md:justify-end text-[#0F172A]">
|
||||
<!-- Instagram -->
|
||||
<a
|
||||
href="https://www.instagram.com/aep.politique/"
|
||||
|
||||
@@ -20,13 +20,8 @@
|
||||
<p class="mt-3 text-neutral-600 text-sm md:text-base leading-relaxed">
|
||||
Un commun vivant pour bifurquer ; ensemble, lentement, par accumulation de petits gestes situés.
|
||||
</p>
|
||||
<!-- V1.3-F : CTA "commander" deplace tout en bas (apres lecture). Le seul lien d'entete = page complete. -->
|
||||
<div class="mt-5 flex flex-wrap gap-2">
|
||||
<a
|
||||
href="/manifeste/commander"
|
||||
class="inline-block px-4 py-2 border border-neutral-900 text-neutral-900 rounded-lg font-medium text-sm hover:bg-neutral-900 hover:text-white transition-colors"
|
||||
>
|
||||
Commander la version imprimée
|
||||
</a>
|
||||
<a
|
||||
href="/manifeste"
|
||||
class="inline-block px-4 py-2 border border-neutral-300 text-neutral-700 rounded-lg text-sm hover:border-neutral-900 hover:text-neutral-900 transition-colors"
|
||||
@@ -134,8 +129,22 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- V1.3-F : CTA commander version papier — bord rouge brique #B5443A, signal politique fort.
|
||||
Place en bas, apres lecture : j'achete, tranquille. -->
|
||||
<section class="mt-10 pt-6 border-t border-neutral-200 text-center">
|
||||
<p class="text-xs italic text-neutral-500 mb-3">
|
||||
Manifeste lu. J'achete la version papier, tranquille.
|
||||
</p>
|
||||
<a
|
||||
href="/manifeste/commander"
|
||||
class="inline-block px-5 py-2.5 border-2 border-[#B5443A] text-[#0F172A] bg-[#FAFAF7] font-medium text-sm hover:bg-[#E5C3BE] transition-colors"
|
||||
>
|
||||
Commander la version papier
|
||||
</a>
|
||||
</section>
|
||||
|
||||
<!-- Footer simple : lien vers page complete pour les detail (mouvements, etc.) -->
|
||||
<footer class="mt-10 pt-6 border-t border-neutral-200 text-center">
|
||||
<footer class="mt-6 pt-4 border-t border-neutral-200 text-center">
|
||||
<a
|
||||
href="/manifeste"
|
||||
target="_blank"
|
||||
|
||||
@@ -15,12 +15,39 @@ import PopupOnboarding from '../components/astro/PopupOnboarding.astro';
|
||||
<MobileTabBar />
|
||||
<PopupOnboarding />
|
||||
|
||||
<!-- Desktop : grid 3 colonnes V1.3-BG : prend toute la place du wrapper flex-1 du BaseLayout.
|
||||
Header et footer sont fixes (flex-shrink-0), pas besoin de calc(100vh - X). -->
|
||||
<div class="hidden md:grid md:grid-cols-[320px_1fr_320px] h-full overflow-hidden">
|
||||
<aside class="border-r border-neutral-200 overflow-y-auto h-full"><ColJournal /></aside>
|
||||
<main class="overflow-hidden h-full"><ColCentre /></main>
|
||||
<aside class="border-l border-neutral-200 overflow-y-auto h-full"><ColInsta /></aside>
|
||||
<!-- Desktop : grid 3 colonnes V1.3-F avec toggle replier latéraux.
|
||||
Layout dynamique pilote par CSS vars --col-left / --col-right (320px par defaut, 0 quand replie).
|
||||
Header et footer fixes (flex-shrink-0), pas de calc(100vh - X). -->
|
||||
<div
|
||||
id="desktop-grid"
|
||||
class="hidden md:grid h-full overflow-hidden relative"
|
||||
style="grid-template-columns: var(--col-left, 320px) 1fr var(--col-right, 320px);"
|
||||
>
|
||||
<aside id="col-left-aside" class="border-r border-neutral-200 overflow-y-auto h-full"><ColJournal /></aside>
|
||||
<main class="overflow-hidden h-full relative">
|
||||
<ColCentre />
|
||||
<!-- Toggle gauche : pose sur le bord gauche de la colonne centrale -->
|
||||
<button
|
||||
type="button"
|
||||
id="toggle-col-left"
|
||||
aria-label="Replier/deplier colonne gauche"
|
||||
class="hidden md:flex absolute left-0 top-1/2 -translate-y-1/2 z-20 w-5 h-12 items-center justify-center bg-white border border-neutral-200 border-l-0 rounded-r text-neutral-500 hover:bg-neutral-50 hover:text-neutral-900 transition-colors cursor-pointer"
|
||||
style="font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1;"
|
||||
>
|
||||
<span id="toggle-col-left-icon">‹</span>
|
||||
</button>
|
||||
<!-- Toggle droite : pose sur le bord droit de la colonne centrale -->
|
||||
<button
|
||||
type="button"
|
||||
id="toggle-col-right"
|
||||
aria-label="Replier/deplier colonne droite"
|
||||
class="hidden md:flex absolute right-0 top-1/2 -translate-y-1/2 z-20 w-5 h-12 items-center justify-center bg-white border border-neutral-200 border-r-0 rounded-l text-neutral-500 hover:bg-neutral-50 hover:text-neutral-900 transition-colors cursor-pointer"
|
||||
style="font-family:'Courier New',Courier,monospace;font-size:14px;line-height:1;"
|
||||
>
|
||||
<span id="toggle-col-right-icon">›</span>
|
||||
</button>
|
||||
</main>
|
||||
<aside id="col-right-aside" class="border-l border-neutral-200 overflow-y-auto h-full"><ColInsta /></aside>
|
||||
</div>
|
||||
|
||||
<!-- Mobile : SwipeContainer Vue island - tabbar 44px reserve dans la zone flex-1 -->
|
||||
@@ -31,4 +58,52 @@ import PopupOnboarding from '../components/astro/PopupOnboarding.astro';
|
||||
<ColInsta slot="right" />
|
||||
</SwipeContainer>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// V1.3-F : toggle replier/deplier colonnes laterales desktop.
|
||||
// Etat persiste en sessionStorage. Quand replie : col = 0px, aside cache, ColCentre s'etend.
|
||||
const KEY_LEFT = 'tf-col-left-collapsed';
|
||||
const KEY_RIGHT = 'tf-col-right-collapsed';
|
||||
|
||||
const grid = document.getElementById('desktop-grid') as HTMLElement | null;
|
||||
const asideLeft = document.getElementById('col-left-aside') as HTMLElement | null;
|
||||
const asideRight = document.getElementById('col-right-aside') as HTMLElement | null;
|
||||
const btnLeft = document.getElementById('toggle-col-left') as HTMLButtonElement | null;
|
||||
const btnRight = document.getElementById('toggle-col-right') as HTMLButtonElement | null;
|
||||
const iconLeft = document.getElementById('toggle-col-left-icon');
|
||||
const iconRight = document.getElementById('toggle-col-right-icon');
|
||||
|
||||
let collapsedLeft = false;
|
||||
let collapsedRight = false;
|
||||
|
||||
try {
|
||||
collapsedLeft = sessionStorage.getItem(KEY_LEFT) === '1';
|
||||
collapsedRight = sessionStorage.getItem(KEY_RIGHT) === '1';
|
||||
} catch { /* mode prive */ }
|
||||
|
||||
const apply = () => {
|
||||
if (!grid) return;
|
||||
grid.style.setProperty('--col-left', collapsedLeft ? '0px' : '320px');
|
||||
grid.style.setProperty('--col-right', collapsedRight ? '0px' : '320px');
|
||||
if (asideLeft) asideLeft.style.display = collapsedLeft ? 'none' : '';
|
||||
if (asideRight) asideRight.style.display = collapsedRight ? 'none' : '';
|
||||
// Icones : pointe vers la direction d'ouverture (sens depliage).
|
||||
if (iconLeft) iconLeft.innerHTML = collapsedLeft ? '›' : '‹';
|
||||
if (iconRight) iconRight.innerHTML = collapsedRight ? '‹' : '›';
|
||||
};
|
||||
|
||||
apply();
|
||||
|
||||
btnLeft?.addEventListener('click', () => {
|
||||
collapsedLeft = !collapsedLeft;
|
||||
try { sessionStorage.setItem(KEY_LEFT, collapsedLeft ? '1' : '0'); } catch { /* mode prive */ }
|
||||
apply();
|
||||
});
|
||||
|
||||
btnRight?.addEventListener('click', () => {
|
||||
collapsedRight = !collapsedRight;
|
||||
try { sessionStorage.setItem(KEY_RIGHT, collapsedRight ? '1' : '0'); } catch { /* mode prive */ }
|
||||
apply();
|
||||
});
|
||||
</script>
|
||||
</BaseLayout>
|
||||
|
||||
@@ -24,14 +24,7 @@ import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
|
||||
<p class="mt-4 text-neutral-600 text-base md:text-lg leading-relaxed">
|
||||
Un commun vivant pour bifurquer ; ensemble, lentement, par accumulation de petits gestes situes.
|
||||
</p>
|
||||
<div class="mt-8">
|
||||
<a
|
||||
href="/manifeste/commander"
|
||||
class="inline-block px-5 py-2.5 border border-neutral-900 text-neutral-900 rounded-lg font-medium hover:bg-neutral-900 hover:text-white transition-colors"
|
||||
>
|
||||
Commander la version imprimee
|
||||
</a>
|
||||
</div>
|
||||
<!-- V1.3-F : CTA "commander" deplace tout en bas de page (apres avoir lu). -->
|
||||
</header>
|
||||
|
||||
<!-- Corps du manifeste -->
|
||||
@@ -203,6 +196,20 @@ import HamburgerMenu from '../components/astro/HamburgerMenu.astro';
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- V1.3-F : CTA commander version papier — bord rouge brique #B5443A, signal politique fort.
|
||||
Place en bas : le lecteur a lu, il sait ce qu'il achete. Tranquille. -->
|
||||
<section class="mt-16 pt-10 border-t border-neutral-200 text-center">
|
||||
<p class="text-sm italic text-neutral-500 mb-4">
|
||||
Manifeste lu. J'achete la version papier, tranquille.
|
||||
</p>
|
||||
<a
|
||||
href="/manifeste/commander"
|
||||
class="inline-block px-6 py-3 border-2 border-[#B5443A] text-[#0F172A] bg-[#FAFAF7] font-medium text-base hover:bg-[#E5C3BE] transition-colors"
|
||||
>
|
||||
Commander la version papier
|
||||
</a>
|
||||
</section>
|
||||
|
||||
<!-- En lire plus -->
|
||||
<footer class="mt-16 pt-10 border-t border-neutral-200 text-center">
|
||||
<p class="text-neutral-600 mb-4">En lire plus</p>
|
||||
|
||||
Reference in New Issue
Block a user