Files
community-rule/stories/sections/CardSteps.stories.js
T
adilalloandCursor 33cdaf135c Match Home, top nav, hero, and logo wall to the current marketing frames.
Puts Workshops in the header, pairs the hero with a static rule card and breakpoint CTAs, and shows the three pilot marks with no wall label.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-02 18:50:32 -07:00

94 lines
2.4 KiB
JavaScript

import CardSteps from "../../app/components/sections/CardSteps";
export default {
title: "Components/Sections/CardSteps",
component: CardSteps,
parameters: {
layout: "fullscreen",
docs: {
description: {
component:
"Marketing section (Figma SectionCardSteps) that composes **cards/Step** tiles with a section header and CTA. Use for sequential explainers on the home page and similar surfaces.",
},
},
},
argTypes: {
title: {
control: { type: "text" },
description: "The main title for the section (mobile single line)",
},
subtitle: {
control: { type: "text" },
description: "Supporting text beside / below the title on large screens",
},
steps: {
control: { type: "object" },
description:
"Items rendered as **Step** cards (text, optional iconShape, iconColor)",
},
},
tags: ["autodocs"],
};
export const Default = {
args: {
title: "How CommunityRule helps",
subtitle: "Here's a quick overview of the process, from start to finish.",
headingDesktopLines: ["How", "CommunityRule", "helps"],
steps: [
{
text: "See what has worked for other communities",
iconShape: "blob",
iconColor: "green",
},
{
text: "Decide how you will decide, while things are calm",
iconShape: "gear",
iconColor: "purple",
},
{
text: "Invite your members and change it together as you grow",
iconShape: "star",
iconColor: "orange",
},
],
},
};
export const CustomContent = {
args: {
title: "Our Process",
subtitle: "Follow these simple steps to get started with your project.",
steps: [
{
text: "Define your project requirements and goals",
iconShape: "blob",
iconColor: "green",
},
{
text: "Build structure with our team to create the perfect solution",
iconShape: "gear",
iconColor: "purple",
},
{
text: "Launch and iterate based on user feedback",
iconShape: "star",
iconColor: "orange",
},
{
text: "Scale and optimize for continued success",
iconShape: "blob",
iconColor: "blue",
},
],
},
parameters: {
docs: {
description: {
story:
"Example with custom content and four **Step** tiles to show flexibility.",
},
},
},
};