Full cleanup pass
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Mini from "../../app/components/cards/Mini";
|
||||
import { getAssetPath, featurePanelPath } from "../../lib/assetUtils";
|
||||
|
||||
export default {
|
||||
title: "Components/Cards/Mini",
|
||||
@@ -30,7 +31,7 @@ export const Default = {
|
||||
backgroundColor: "bg-[var(--color-surface-default-brand-royal)]",
|
||||
labelLine1: "Decision-making",
|
||||
labelLine2: "support",
|
||||
panelContent: "assets/marketing/feature-support.png",
|
||||
panelContent: getAssetPath(featurePanelPath("support")),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -41,25 +42,25 @@ export const ColorVariants = {
|
||||
backgroundColor="bg-[var(--color-surface-default-brand-royal)]"
|
||||
labelLine1="Decision-making"
|
||||
labelLine2="support"
|
||||
panelContent="assets/marketing/feature-support.png"
|
||||
panelContent={getAssetPath(featurePanelPath("support"))}
|
||||
/>
|
||||
<Mini
|
||||
backgroundColor="bg-[#D1FFE2]"
|
||||
labelLine1="Values alignment"
|
||||
labelLine2="exercises"
|
||||
panelContent="assets/marketing/feature-exercises.png"
|
||||
panelContent={getAssetPath(featurePanelPath("exercises"))}
|
||||
/>
|
||||
<Mini
|
||||
backgroundColor="bg-[#F4CAFF]"
|
||||
labelLine1="Membership"
|
||||
labelLine2="guidance"
|
||||
panelContent="assets/marketing/feature-guidance.png"
|
||||
panelContent={getAssetPath(featurePanelPath("guidance"))}
|
||||
/>
|
||||
<Mini
|
||||
backgroundColor="bg-[#CBDDFF]"
|
||||
labelLine1="Conflict resolution"
|
||||
labelLine2="tools"
|
||||
panelContent="assets/marketing/feature-tools.png"
|
||||
panelContent={getAssetPath(featurePanelPath("tools"))}
|
||||
/>
|
||||
</div>
|
||||
),
|
||||
@@ -70,7 +71,7 @@ export const AsLink = {
|
||||
backgroundColor: "bg-[var(--color-surface-default-brand-royal)]",
|
||||
labelLine1: "Decision-making",
|
||||
labelLine2: "support",
|
||||
panelContent: "assets/marketing/feature-support.png",
|
||||
panelContent: getAssetPath(featurePanelPath("support")),
|
||||
href: "#decision-making",
|
||||
ariaLabel: "Navigate to decision-making support tools",
|
||||
},
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
import Stat from "../../app/components/cards/Stat";
|
||||
|
||||
export default {
|
||||
title: "Components/Cards/Stat",
|
||||
component: Stat,
|
||||
parameters: {
|
||||
layout: "centered",
|
||||
},
|
||||
argTypes: {
|
||||
value: { control: "text" },
|
||||
label: { control: "text" },
|
||||
asOf: { control: "text" },
|
||||
shapeVariant: {
|
||||
control: { type: "select" },
|
||||
options: [1, 2, 3, 4],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = {
|
||||
args: {
|
||||
value: "420M+",
|
||||
label: "open source projects",
|
||||
asOf: "as of June 30, 2024",
|
||||
shapeVariant: 1,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user