diff --git a/modules/blox/blox/hero/component.jsx b/modules/blox/blox/hero/component.jsx index bf8eecad..47103ba0 100644 --- a/modules/blox/blox/hero/component.jsx +++ b/modules/blox/blox/hero/component.jsx @@ -87,12 +87,13 @@ function StarStrip({stars}) { ); } -function TrustStrip({trust}) { +function TrustStrip({trust, alignKey = "center"}) { if (!trust) return null; const {stars, text} = trust; if (!stars && !text) return null; + const justify = alignKey === "left" ? "justify-start" : "justify-center"; return ( -
+
{stars != null && } {text && }
@@ -108,13 +109,14 @@ const BADGE_COLORS = { rose: "bg-rose-100 text-rose-700 dark:bg-rose-900/40 dark:text-rose-300", }; -function AnnouncementPill({announcement}) { +function AnnouncementPill({announcement, alignKey = "center"}) { if (!announcement?.text) return null; const badge = announcement.badge; const badgeCls = badge && BADGE_COLORS[badge.color] ? BADGE_COLORS[badge.color] : BADGE_COLORS.primary; + const justify = alignKey === "left" ? "sm:justify-start" : "sm:justify-center"; return ( -