|
3 | 3 | ArrowRightIcon,
|
4 | 4 | CheckCircleIcon,
|
5 | 5 | CircleDollarSignIcon,
|
| 6 | + CircleIcon, |
6 | 7 | } from "lucide-react";
|
7 | 8 | import { Metadata } from "next";
|
8 | 9 | import * as React from "react";
|
@@ -64,13 +65,31 @@ const Features = ({ children }: { children: React.ReactNode }) => (
|
64 | 65 | <ul className="my-6 flex flex-col gap-4">{children}</ul>
|
65 | 66 | );
|
66 | 67 |
|
67 |
| -const Feature = ({ children }: { children: React.ReactNode }) => ( |
| 68 | +const Feature = ({ |
| 69 | + children, |
| 70 | + optional, |
| 71 | +}: { |
| 72 | + children: React.ReactNode; |
| 73 | + optional?: boolean; |
| 74 | +}) => ( |
68 | 75 | <li className="flex gap-2">
|
69 |
| - <CheckCircleIcon className="h-5 w-5 shrink-0 text-violet-11" /> |
| 76 | + {optional ? ( |
| 77 | + <CircleIcon className="h-5 w-5 shrink-0 text-violet-11" /> |
| 78 | + ) : ( |
| 79 | + <CheckCircleIcon className="h-5 w-5 shrink-0 text-violet-11" /> |
| 80 | + )} |
70 | 81 | <div className="leading-tight">{children}</div>
|
71 | 82 | </li>
|
72 | 83 | );
|
73 | 84 |
|
| 85 | +function Pricey(props: { children: React.ReactNode }) { |
| 86 | + return ( |
| 87 | + <Tooltip content={props.children}> |
| 88 | + <CircleDollarSignIcon className="-mt-[2px] ml-1 inline-block h-5 w-5 text" /> |
| 89 | + </Tooltip> |
| 90 | + ); |
| 91 | +} |
| 92 | + |
74 | 93 | const PricingCard = ({
|
75 | 94 | children,
|
76 | 95 | emphasis,
|
@@ -131,14 +150,6 @@ export const metadata: Metadata = getMetadata({
|
131 | 150 | pathname: "/pricing",
|
132 | 151 | });
|
133 | 152 |
|
134 |
| -function Pricey(props: { children: React.ReactNode }) { |
135 |
| - return ( |
136 |
| - <Tooltip content={props.children}> |
137 |
| - <CircleDollarSignIcon className="ml-1 inline-block h-5 w-5 text" /> |
138 |
| - </Tooltip> |
139 |
| - ); |
140 |
| -} |
141 |
| - |
142 | 153 | export default function Page() {
|
143 | 154 | return (
|
144 | 155 | <div className="flex flex-col">
|
@@ -199,8 +210,8 @@ export default function Page() {
|
199 | 210 | <Feature>GitHub & GitLab integration</Feature>
|
200 | 211 | <Feature>Pro Support</Feature>
|
201 | 212 | <Feature>Collaborating visual review</Feature>
|
202 |
| - <Feature> |
203 |
| - GitHub Single Sign-On (SSO){" "} |
| 213 | + <Feature optional> |
| 214 | + GitHub Single Sign-On (SSO) |
204 | 215 | <Pricey>
|
205 | 216 | {dollarFormatter.format(GITHUB_SSO_PRICE)} per month
|
206 | 217 | </Pricey>
|
|
0 commit comments