From ec9178be08bc3307742d261ea1f6e5723037edbe Mon Sep 17 00:00:00 2001 From: Jules Neny Date: Thu, 7 May 2026 01:26:46 +0200 Subject: [PATCH] =?UTF-8?q?feat(ux):=20markdown=20chatbots=20+=20header=20?= =?UTF-8?q?Jobs=20centr=C3=A9=20+=20cible=20archi=20ind=C3=A9pendants?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - composables/useMarkdown.ts : renderer MD léger (bold/italic/listes/titres) - ChatbotSheet.vue + trouver-du-taf.vue : v-html renderMd() sur messages bot - assets/css/main.css : styles .md-content globaux pour tous les chatbots - taff-header centré + phrase cible 'architectes indépendants, 70% de la profession' Co-Authored-By: Claude Sonnet 4.6 --- assets/css/main.css | 13 +++++++++++++ components/ChatbotSheet.vue | 4 +++- composables/useMarkdown.ts | 35 +++++++++++++++++++++++++++++++++++ pages/trouver-du-taf.vue | 24 ++++++++++++++++-------- 4 files changed, 67 insertions(+), 9 deletions(-) create mode 100644 composables/useMarkdown.ts diff --git a/assets/css/main.css b/assets/css/main.css index f72794e..9ce8eed 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -108,3 +108,16 @@ .dark .leaflet-popup-tip { background: var(--nav-surface); } + +/* ── Rendu Markdown chatbot (useMarkdown composable) ────────────────────── */ +.md-content { font-size: inherit; line-height: 1.6; } +.md-content p { margin: 0 0 0.5em; } +.md-content p:last-child { margin-bottom: 0; } +.md-content strong, .md-h1, .md-h2, .md-h3 { font-weight: 700; } +.md-h2 { font-size: 0.9375em; display: block; margin-bottom: 0.25em; } +.md-h3 { font-size: 0.875em; display: block; } +.md-content em { font-style: italic; } +.md-list { margin: 0.375em 0 0.375em 1em; padding: 0; list-style: disc; } +.md-list li { margin-bottom: 0.2em; } +.md-link { text-decoration: underline; opacity: 0.85; } +.md-link:hover { opacity: 1; } diff --git a/components/ChatbotSheet.vue b/components/ChatbotSheet.vue index b92dc3f..85daaa9 100644 --- a/components/ChatbotSheet.vue +++ b/components/ChatbotSheet.vue @@ -92,7 +92,7 @@ employeur, besoin conseil juridique droit du travail,
-

{{ msg.content }}

+
@@ -164,6 +164,8 @@ employeur, besoin conseil juridique droit du travail,