import React from "react"; import ContentBanner from "../../app/components/sections/ContentBanner"; const mockBlogPost = { slug: "sample-article", frontmatter: { title: "Sample Article Title", description: "This is a sample article description that explains what the article covers.", author: "Sample Author", date: "2025-01-15", thumbnail: { horizontal: "resolving-active-conflicts-horizontal.svg", vertical: "resolving-active-conflicts-vertical.svg", }, banner: { horizontal: "resolving-active-conflicts-banner.svg", }, }, htmlContent: "
This is the main content of the sample article.
It has multiple paragraphs.
", }; const guidePost = { slug: "__how-it-works__", frontmatter: { title: "A Guide to CommunityRule", description: "CommunityRule is a modular governance toolkit designed to help democratic groups build, customize, and publish their own Operating Manual.", author: "CommunityRule", date: "2026-01-15", }, content: "", htmlContent: "", filePath: "messages/en/pages/howItWorks.json", lastModified: new Date("2026-01-15"), }; export default { title: "Components/Sections/ContentBanner", component: ContentBanner, parameters: { docs: { description: { component: "Section / ContentBanner — `article` variant for blog posts (thumbnail/banner imagery, icon, author, date); `guide` variant for static content pages (left: title + description, right: logo mark — Figma 22078:791901 + 22078:806960).", }, }, layout: "fullscreen", }, argTypes: { post: { control: "object", description: "Blog post object with frontmatter and content", }, variant: { control: "select", options: ["article", "guide", "useCase"], }, rulePreview: { control: "object", description: "useCase variant only", }, }, }; export const Article = { args: { post: mockBlogPost, variant: "article", }, }; const useCaseRulePreview = { title: "Mutual Aid Colorado Operating Manual", description: "Shared values, resource distribution, volunteer shifts, and consensus-minus-one decisions.", backgroundColor: "bg-[var(--color-surface-invert-brand-lavender)]", iconPath: "assets/case-study/case-study-mutual-aid.svg", }; export const UseCase = { args: { post: guidePost, variant: "useCase", rulePreview: useCaseRulePreview, leadingImageAlt: "Mutual Aid Colorado logo", contentTone: "onLight", }, decorators: [ (Story) => (