économique : fluidMarket, en développement, avec sa page et ses cartouches
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
Page /economique/fluidmarket : les bénéfices tirés de la présentation (9 séances, un écran par séance, dossier pré-rempli, argent versé à l'association, jour J sur papier, les humains décident), le module Plan, et les marchés pilotes à double économie euro et Ğ1 (lien vers le Ğ(marché) de /evenement). Lien vers fluidmarket.librodrome.org. Cartouches sur /economique et dans la boîte à outils de l'accueil ; sitemap et icône store au safelist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4da08cbca0
commit
529f896c55
6 files changed
+477
-1
No files matched your search
@@ -0,0 +1,309 @@
|
||||
<template>
|
||||
<div class="axis-scope axis-scope--eco oiseaux-scene relative section-padding">
|
||||
<div class="container-content">
|
||||
|
||||
<!-- Header -->
|
||||
<div class="mx-auto max-w-2xl text-center mb-8">
|
||||
<div class="section-icon mx-auto mb-6">
|
||||
<div class="i-lucide-store h-12 w-12" />
|
||||
</div>
|
||||
<p class="relative mb-2 font-mono text-sm tracking-widest text-primary uppercase text-center">
|
||||
<!-- Phone: a flat bird at the end of the kicker line (rule f: 93 px under the sticky header) -->
|
||||
{{ content?.kicker }}<UiOiseauPose nom="maraichere" pose="perche" bout :w="72" retourne mobile-seul />
|
||||
</p>
|
||||
<h1 class="font-display text-3xl font-bold mb-4" style="color: hsl(var(--color-text))">
|
||||
{{ content?.title }}
|
||||
</h1>
|
||||
<p class="text-lg leading-relaxed" style="color: hsl(var(--color-text-muted))">
|
||||
{{ content?.description }}
|
||||
</p>
|
||||
<div class="mt-5">
|
||||
<UiStatusBadge :status="content?.status" :gestation="content?.gestation" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Navigation prev / index / next -->
|
||||
<nav class="ctx-nav mx-auto max-w-2xl mb-10">
|
||||
<NuxtLink v-if="prevItem?.to" :to="prevItem.to" class="ctx-nav-btn ctx-nav-prev">
|
||||
<div class="i-lucide-arrow-left h-4 w-4 shrink-0" />
|
||||
<span>{{ prevItem.label }}</span>
|
||||
</NuxtLink>
|
||||
<div v-else class="ctx-nav-spacer" />
|
||||
|
||||
<NuxtLink to="/economique" class="ctx-nav-btn ctx-nav-index">
|
||||
<div class="i-lucide-layout-grid h-4 w-4" />
|
||||
<span>Économique</span>
|
||||
</NuxtLink>
|
||||
|
||||
<NuxtLink v-if="nextItem?.to" :to="nextItem.to" class="ctx-nav-btn ctx-nav-next">
|
||||
<span>{{ nextItem.label }}</span>
|
||||
<div class="i-lucide-arrow-right h-4 w-4 shrink-0" />
|
||||
</NuxtLink>
|
||||
<div v-else class="ctx-nav-spacer" />
|
||||
</nav>
|
||||
|
||||
<!-- Benefits -->
|
||||
<div v-if="content?.features" class="relative grid gap-4 sm:grid-cols-2 mb-12 max-w-2xl mx-auto">
|
||||
<!-- The peddler, from fair to fair: right margin, feet on the bottom of the last row -->
|
||||
<UiOiseauPose nom="colporteur" pose="marge-d" ecart="40px" :w="124" retourne />
|
||||
<div v-for="feature in content.features" :key="feature.title" class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<div :class="featureIcon(feature.icon)" class="h-5 w-5" />
|
||||
</div>
|
||||
<h2 class="font-display font-semibold mb-1" style="color: hsl(var(--color-text))">{{ feature.title }}</h2>
|
||||
<p class="text-sm leading-relaxed" style="color: hsl(var(--color-text-muted))">{{ feature.text }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Plan module -->
|
||||
<section v-if="content?.plan" class="plan-card relative mb-12 max-w-2xl mx-auto">
|
||||
<!-- The cartographer, large and pale behind the plan card: only its left side shows -->
|
||||
<UiOiseauPose nom="cartographe" pose="derriere" left="-170px" bottom="28px" :w="230" />
|
||||
<div class="flex items-center gap-3 mb-3">
|
||||
<div class="feature-icon mb-0!">
|
||||
<div class="i-lucide-map h-5 w-5" />
|
||||
</div>
|
||||
<p class="font-mono text-xs tracking-widest text-primary uppercase">{{ content.plan.kicker }}</p>
|
||||
</div>
|
||||
<h2 class="font-display text-2xl font-bold mb-3" style="color: hsl(var(--color-text))">
|
||||
{{ content.plan.title }}
|
||||
</h2>
|
||||
<p class="leading-relaxed mb-4" style="color: hsl(var(--color-text-muted))">{{ content.plan.text }}</p>
|
||||
<ul class="plan-points">
|
||||
<li v-for="point in content.plan.points" :key="point">
|
||||
<div class="i-lucide-check h-4 w-4 shrink-0 text-primary mt-1" />
|
||||
<span>{{ point }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<p v-if="content.plan.without" class="plan-without">{{ content.plan.without }}</p>
|
||||
</section>
|
||||
|
||||
<!-- Euro and free currency, side by side -->
|
||||
<section v-if="content?.economie" class="g1-card relative mb-12 max-w-2xl mx-auto">
|
||||
<span class="g1-watermark" aria-hidden="true">Ğ1</span>
|
||||
<!-- The Ğ1 pumper in the left margin, feet on the bottom of the card -->
|
||||
<UiOiseauPose nom="pompeur-de-g1" pose="marge-g" ecart="44px" :w="88" />
|
||||
<p class="relative font-mono text-xs tracking-widest text-primary uppercase mb-2">{{ content.economie.kicker }}</p>
|
||||
<h2 class="relative font-display text-2xl font-bold mb-3" style="color: hsl(var(--color-text))">
|
||||
{{ content.economie.title }}
|
||||
</h2>
|
||||
<p class="relative leading-relaxed mb-3" style="color: hsl(var(--color-text-muted))">{{ content.economie.text }}</p>
|
||||
<p class="relative text-sm leading-relaxed mb-4" style="color: hsl(var(--color-text-muted))">{{ content.economie.note }}</p>
|
||||
<NuxtLink v-if="content.economie.link" :to="content.economie.link.to" class="relative inline-flex items-center gap-1 text-sm text-primary hover:text-primary/80 transition-colors">
|
||||
{{ content.economie.link.label }}
|
||||
<div class="i-lucide-arrow-right h-3.5 w-3.5" />
|
||||
</NuxtLink>
|
||||
</section>
|
||||
|
||||
<!-- Extended content -->
|
||||
<div v-if="content?.content" class="prose-block mb-10 max-w-2xl mx-auto">
|
||||
<p class="leading-relaxed whitespace-pre-line" style="color: hsl(var(--color-text-muted))">
|
||||
{{ content.content }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- The app -->
|
||||
<div v-if="content?.app" class="text-center flex flex-col items-center gap-2 mb-4">
|
||||
<UiBaseButton :href="content.app.url" target="_blank" @click="trackCta(content.app.label, content.app.url)">
|
||||
<div class="i-lucide-external-link mr-2 h-4 w-4" />
|
||||
{{ content.app.label }}
|
||||
</UiBaseButton>
|
||||
<p v-if="content.app.note" class="text-xs" style="color: hsl(var(--color-text-muted))">{{ content.app.note }}</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const [{ data: content }, { data: homeData }] = await Promise.all([
|
||||
usePageContent('economique/fluidmarket'),
|
||||
usePageContent('home'),
|
||||
])
|
||||
|
||||
const { trackCta } = useTracking()
|
||||
|
||||
// Static class names, so that UnoCSS generates the icons named in the YAML
|
||||
const FEATURE_ICONS: Record<string, string> = {
|
||||
'timer': 'i-lucide-timer',
|
||||
'layout-dashboard': 'i-lucide-layout-dashboard',
|
||||
'file-check': 'i-lucide-file-check',
|
||||
'hand-coins': 'i-lucide-hand-coins',
|
||||
'clipboard-list': 'i-lucide-clipboard-list',
|
||||
'users': 'i-lucide-users',
|
||||
}
|
||||
const featureIcon = (icon: string) => FEATURE_ICONS[icon] ?? 'i-lucide-check'
|
||||
|
||||
// Prev / next in the economic axis (home.yml > axes.economie.items)
|
||||
interface AxisItem { label: string, to?: string }
|
||||
const ecoItems = computed<AxisItem[]>(
|
||||
() => ((homeData.value as any)?.axes?.economie?.items ?? []) as AxisItem[],
|
||||
)
|
||||
const currentIdx = computed(() => ecoItems.value.findIndex(i => i.to === '/economique/fluidmarket'))
|
||||
const prevItem = computed(() => currentIdx.value > 0 ? ecoItems.value[currentIdx.value - 1] : null)
|
||||
const nextItem = computed(() => currentIdx.value >= 0 && currentIdx.value < ecoItems.value.length - 1 ? ecoItems.value[currentIdx.value + 1] : null)
|
||||
|
||||
const seo = (content.value as any)?.seo ?? {}
|
||||
useSeoPage({
|
||||
title: seo.title ?? content.value?.meta?.title ?? 'fluidMarket',
|
||||
description: seo.description ?? (content.value?.description as string | undefined),
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.section-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 5rem;
|
||||
height: 5rem;
|
||||
border-radius: 1rem;
|
||||
background: hsl(var(--color-primary) / 0.1);
|
||||
border: 1px solid hsl(var(--color-primary) / 0.2);
|
||||
color: hsl(var(--color-primary));
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
padding: 1.25rem;
|
||||
border-radius: 0.75rem;
|
||||
border: 1px solid hsl(var(--color-text) / 0.08);
|
||||
background: hsl(var(--color-surface));
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
border-radius: 0.5rem;
|
||||
background: hsl(var(--color-primary) / 0.1);
|
||||
color: hsl(var(--color-primary));
|
||||
margin-bottom: 0.75rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.plan-card {
|
||||
padding: 1.5rem;
|
||||
border-radius: 0.75rem;
|
||||
border: 1px solid hsl(var(--color-primary) / 0.15);
|
||||
background: hsl(var(--color-surface));
|
||||
}
|
||||
|
||||
.plan-points {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0 0 1rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.plan-points li {
|
||||
display: flex;
|
||||
gap: 0.6rem;
|
||||
line-height: 1.6;
|
||||
color: hsl(var(--color-text));
|
||||
}
|
||||
|
||||
.plan-without {
|
||||
padding-top: 0.9rem;
|
||||
border-top: 1px solid hsl(var(--color-text) / 0.08);
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.6;
|
||||
color: hsl(var(--color-text-muted));
|
||||
}
|
||||
|
||||
.g1-card {
|
||||
position: relative;
|
||||
padding: 1.5rem;
|
||||
border-radius: 0.75rem;
|
||||
border: 1px solid hsl(var(--color-primary) / 0.14);
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
hsl(var(--color-surface)) 60%,
|
||||
hsl(var(--color-primary) / 0.06) 100%
|
||||
);
|
||||
}
|
||||
|
||||
.g1-watermark {
|
||||
position: absolute;
|
||||
right: 0.5rem;
|
||||
top: 1rem;
|
||||
font-family: var(--font-display);
|
||||
font-weight: 900;
|
||||
font-size: 5.5rem;
|
||||
line-height: 1;
|
||||
color: hsl(var(--color-primary) / 0.07);
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.prose-block {
|
||||
padding: 1.5rem;
|
||||
border-radius: 0.75rem;
|
||||
background: hsl(var(--color-surface));
|
||||
}
|
||||
|
||||
/* ── Navigation prev/next ── */
|
||||
.ctx-nav {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.ctx-nav-spacer { min-width: 0; }
|
||||
|
||||
.ctx-nav-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.45rem;
|
||||
padding: 0.5rem 0.875rem;
|
||||
border-radius: 20px;
|
||||
text-decoration: none;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 500;
|
||||
color: hsl(var(--color-text-muted));
|
||||
background: hsl(var(--color-surface));
|
||||
border: 1px solid hsl(var(--color-text) / 0.08);
|
||||
transition: all 0.15s;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ctx-nav-btn:hover {
|
||||
color: hsl(var(--color-primary));
|
||||
border-color: hsl(var(--color-primary) / 0.25);
|
||||
background: hsl(var(--color-primary) / 0.05);
|
||||
}
|
||||
|
||||
.ctx-nav-prev { justify-content: flex-start; }
|
||||
.ctx-nav-next { justify-content: flex-end; }
|
||||
|
||||
.ctx-nav-prev span,
|
||||
.ctx-nav-next span {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.ctx-nav-index {
|
||||
justify-content: center;
|
||||
background: hsl(var(--color-primary) / 0.08);
|
||||
border-color: hsl(var(--color-primary) / 0.15);
|
||||
color: hsl(var(--color-primary));
|
||||
font-size: 0.75rem;
|
||||
padding: 0.45rem 0.75rem;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ctx-nav-index:hover { background: hsl(var(--color-primary) / 0.15); }
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.ctx-nav { grid-template-columns: auto 1fr auto; }
|
||||
.ctx-nav-prev span, .ctx-nav-next span { display: none; }
|
||||
.ctx-nav-prev, .ctx-nav-next { padding: 0.5rem; }
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user