diff --git a/modules/blox/blox/comparison-table/component.jsx b/modules/blox/blox/comparison-table/component.jsx index a7baf9cf..3d090329 100644 --- a/modules/blox/blox/comparison-table/component.jsx +++ b/modules/blox/blox/comparison-table/component.jsx @@ -95,10 +95,10 @@ function DesktopTable({competitors, rows, cta, icon_svgs, rowStriping = false}) {/* Card — overflow-visible so the highlight ring can extend above its top edge */}
- {{ . | markdownify | emojify }} -
- {{- end -}} -$1')
+ .replace(/\[([^\]]+)\]\(([^)]+)\)/g, '$1');
+}
+
+function renderRich(text) {
+ if (!text) return "";
+ const paras = String(text)
+ .split(/\n\s*\n/)
+ .map((p) => p.trim())
+ .filter(Boolean)
+ .map((p, i) => `0 ? ' class="mt-3"' : ""}>${renderInline(p)}
`); + return paras.join(""); +} + +function FaqItem({item, isOpen, onToggle}) { + const question = item.question ?? item.title ?? ""; + const answer = item.answer ?? item.text ?? ""; + + return ( ++ {subtitle} +
+ )} + {title && ( + + )} +$1");
+ .replace(/`(.*?)`/g, '$1');
}
-function FeatureItem({item, iconSvg}) {
+function FeatureCard({item, iconSvg, imgData, variant = "grid", large = false}) {
+ const isCard = variant === "bento";
+ const wrapperCls = isCard
+ ? `relative h-full rounded-2xl ring-1 ring-gray-200 dark:ring-gray-700 bg-white dark:bg-gray-800/50 ${large ? "p-8 lg:p-10" : "p-6"} hover:ring-primary-300 dark:hover:ring-primary-600 hover:shadow-lg transition-all duration-300 overflow-hidden`
+ : "";
+
+ const iconWrapper = large
+ ? "w-14 h-14 lg:w-16 lg:h-16"
+ : "w-11 h-11 lg:w-12 lg:h-12";
+ const iconSize = large
+ ? "height:1.75rem;width:auto"
+ : "height:1.4rem;width:auto";
+
+ const titleSize = large
+ ? "text-2xl lg:text-3xl"
+ : isCard ? "text-lg lg:text-xl" : "text-xl";
+ const descSize = large ? "text-base lg:text-lg" : "text-sm lg:text-base";
+
return (
- + {subtitle} +
+ )} {title && ( )} - {text && } + {text && ( + + )}