+
{title}
{subtitle}
diff --git a/stories/AskOrganizer.stories.js b/stories/AskOrganizer.stories.js
index 1cb5bc5..7dc0e03 100644
--- a/stories/AskOrganizer.stories.js
+++ b/stories/AskOrganizer.stories.js
@@ -32,16 +32,47 @@ export default {
control: "text",
description: "URL for the button link",
},
+ variant: {
+ control: { type: "select" },
+ options: ["centered", "left-aligned", "compact"],
+ description: "Layout variant for the component",
+ },
+ onContactClick: {
+ action: "contact clicked",
+ description: "Analytics callback for contact button clicks",
+ },
},
};
export const Default = {
args: {
- title: "Need help getting started?",
- subtitle: "Our organizers are here to support you",
- description:
- "Whether you're forming a new community or improving an existing one, our experienced organizers can provide guidance tailored to your specific needs.",
+ title: "Still have questions?",
+ subtitle: "Get answers from an experienced organizer",
buttonText: "Ask an organizer",
buttonHref: "#contact",
+ variant: "centered",
+ onContactClick: (data) => console.log("Contact clicked:", data),
+ },
+};
+
+export const LeftAligned = {
+ args: {
+ title: "Still have questions?",
+ subtitle: "Get answers from an experienced organizer",
+ buttonText: "Ask an organizer",
+ buttonHref: "#contact",
+ variant: "left-aligned",
+ onContactClick: (data) => console.log("Contact clicked:", data),
+ },
+};
+
+export const Compact = {
+ args: {
+ title: "Still have questions?",
+ subtitle: "Get answers from an experienced organizer",
+ buttonText: "Ask an organizer",
+ buttonHref: "#contact",
+ variant: "compact",
+ onContactClick: (data) => console.log("Contact clicked:", data),
},
};
diff --git a/stories/ContentLockup.stories.js b/stories/ContentLockup.stories.js
index 2c89d30..387d4ad 100644
--- a/stories/ContentLockup.stories.js
+++ b/stories/ContentLockup.stories.js
@@ -15,7 +15,7 @@ export default {
buttonClassName: { control: { type: "text" } },
variant: {
control: { type: "select" },
- options: ["hero", "feature"],
+ options: ["hero", "feature", "ask"],
},
linkText: { control: { type: "text" } },
linkHref: { control: { type: "text" } },
@@ -56,3 +56,11 @@ export const FeatureWithLink = {
linkHref: "#",
},
};
+
+export const Ask = {
+ args: {
+ title: "Still have questions?",
+ subtitle: "Get answers from an experienced organizer",
+ variant: "ask",
+ },
+};
From 4d8e735398aa9debc693536a234a333e63cc71b8 Mon Sep 17 00:00:00 2001
From: adilallo <39313955+adilallo@users.noreply.github.com>
Date: Thu, 28 Aug 2025 14:29:04 -0600
Subject: [PATCH 5/5] Storybook Image fixes
---
app/components/FeatureGrid.js | 1 +
app/components/MiniCard.js | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/app/components/FeatureGrid.js b/app/components/FeatureGrid.js
index fe91bb3..ecda70e 100644
--- a/app/components/FeatureGrid.js
+++ b/app/components/FeatureGrid.js
@@ -3,6 +3,7 @@
import React from "react";
import ContentLockup from "./ContentLockup";
import MiniCard from "./MiniCard";
+import Image from "next/image";
const FeatureGrid = ({ title, subtitle, className = "" }) => {
return (
diff --git a/app/components/MiniCard.js b/app/components/MiniCard.js
index 9b5abf5..a1e2b3a 100644
--- a/app/components/MiniCard.js
+++ b/app/components/MiniCard.js
@@ -1,6 +1,7 @@
"use client";
import React from "react";
+import Image from "next/image";
const MiniCard = ({
children,
@@ -23,7 +24,7 @@ const MiniCard = ({
{/* Content for the inner panel */}
{panelContent && (
-
)}