Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(web): add PlanFeature component for pricing cards

Richie McIlroyd63386ec05e6
diff --git a/apps/web/components/pages/HomePage/Pricing/PlanFeature.tsx b/apps/web/components/pages/HomePage/Pricing/PlanFeature.tsx
new file mode 100644
index 000000000..b34d352b2
--- /dev/null
+++ b/apps/web/components/pages/HomePage/Pricing/PlanFeature.tsx
@@ -0,0 +1,30 @@
+"use client";
+
+import { classNames } from "@cap/utils";
+import { faCheck } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import type { ReactNode } from "react";
+
+interface PlanFeatureProps {
+ children: ReactNode;
+ strong?: boolean;
+}
+
+export const PlanFeature = ({ children, strong }: PlanFeatureProps) => {
+ return (
+ <li className="flex gap-3 items-start">
+ <FontAwesomeIcon
+ icon={faCheck}
+ className="mt-1 text-blue-500 shrink-0 size-3.5"
+ />
+ <span
+ className={classNames(
+ "text-sm leading-relaxed",
+ strong ? "font-medium text-gray-12" : "text-gray-11",
+ )}
+ >
+ {children}
+ </span>
+ </li>
+ );
+};