diff --git a/stories/ContentLockup.stories.js b/stories/ContentLockup.stories.js new file mode 100644 index 0000000..e37a74e --- /dev/null +++ b/stories/ContentLockup.stories.js @@ -0,0 +1,92 @@ +import ContentLockup from "../app/components/ContentLockup"; + +export default { + title: "Components/ContentLockup", + component: ContentLockup, + parameters: { + layout: "centered", + docs: { + description: { + component: + "A content lockup component that groups title, subtitle, description, and CTA button. Features responsive typography and spacing that adapts across breakpoints. Used within the HeroBanner component.", + }, + }, + }, + argTypes: { + title: { + control: { type: "text" }, + description: "The main title text", + }, + subtitle: { + control: { type: "text" }, + description: "The subtitle text", + }, + description: { + control: { type: "text" }, + description: "The description text", + }, + ctaText: { + control: { type: "text" }, + description: "The call-to-action button text", + }, + ctaHref: { + control: { type: "text" }, + description: "The call-to-action button link", + }, + }, + tags: ["autodocs"], +}; + +export const Default = { + args: { + title: "Collaborate", + subtitle: "with clarity", + description: + "Help your community make important decisions in a way that reflects its unique values.", + ctaText: "Learn how Community Rule works", + ctaHref: "#", + }, + parameters: { + docs: { + description: { + story: "Default content lockup with standard Community Rule messaging.", + }, + }, + }, +}; + +export const LongDescription = { + args: { + title: "Collaborate", + subtitle: "with clarity", + description: + "Help your community make important decisions in a way that reflects its unique values. Our platform provides the tools and frameworks needed to build successful, sustainable communities that can navigate complex challenges together.", + ctaText: "Learn how Community Rule works", + ctaHref: "#", + }, + parameters: { + docs: { + description: { + story: + "Content lockup with longer description text to test text wrapping.", + }, + }, + }, +}; + +export const ShortContent = { + args: { + title: "Simple", + subtitle: "solution", + description: "Easy community decision making.", + ctaText: "Try it", + ctaHref: "#", + }, + parameters: { + docs: { + description: { + story: "Content lockup with minimal content to test compact layouts.", + }, + }, + }, +}; diff --git a/stories/HeroBanner.stories.js b/stories/HeroBanner.stories.js new file mode 100644 index 0000000..c5926ea --- /dev/null +++ b/stories/HeroBanner.stories.js @@ -0,0 +1,57 @@ +import HeroBanner from "../app/components/HeroBanner"; + +export default { + title: "Components/HeroBanner", + component: HeroBanner, + parameters: { + layout: "fullscreen", + docs: { + description: { + component: + "A responsive hero banner component that showcases the Community Rule branding and messaging. Adapts across multiple breakpoints with proper spacing, typography, and interactive elements. Includes background decorations and product demo integration.", + }, + }, + }, + argTypes: { + title: { + control: { type: "text" }, + description: "The main title text", + }, + subtitle: { + control: { type: "text" }, + description: "The subtitle text", + }, + description: { + control: { type: "text" }, + description: "The description text", + }, + ctaText: { + control: { type: "text" }, + description: "The call-to-action button text", + }, + ctaHref: { + control: { type: "text" }, + description: "The call-to-action button link", + }, + }, + tags: ["autodocs"], +}; + +export const Default = { + args: { + title: "Collaborate", + subtitle: "with clarity", + description: + "Help your community make important decisions in a way that reflects its unique values.", + ctaText: "Learn how Community Rule works", + ctaHref: "#", + }, + parameters: { + docs: { + description: { + story: + "Default hero banner with standard Community Rule messaging and branding.", + }, + }, + }, +}; diff --git a/stories/HeroBannerSystem.stories.js b/stories/HeroBannerSystem.stories.js new file mode 100644 index 0000000..9c6356a --- /dev/null +++ b/stories/HeroBannerSystem.stories.js @@ -0,0 +1,248 @@ +import HeroBanner from "../app/components/HeroBanner"; +import ContentLockup from "../app/components/ContentLockup"; +import HeroDecor from "../app/components/HeroDecor"; + +export default { + title: "Systems/HeroBanner System", + parameters: { + layout: "fullscreen", + docs: { + description: { + component: + "Complete HeroBanner system showcasing all nested components working together. This demonstrates the full responsive behavior and component integration.", + }, + }, + }, + tags: ["autodocs"], +}; + +export const CompleteSystem = { + render: () => ( +
Decoration appears behind content
+This demonstrates how the decoration appears behind content.
+