Skip to content

Commit b6d4a05

Browse files
authored
Merge pull request #139 from argos-ci/github-sso-price
feat: improve sso option style
2 parents 7ed4864 + 3ede5fd commit b6d4a05

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

app/pricing/page.tsx

+23-12
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
ArrowRightIcon,
44
CheckCircleIcon,
55
CircleDollarSignIcon,
6+
CircleIcon,
67
} from "lucide-react";
78
import { Metadata } from "next";
89
import * as React from "react";
@@ -64,13 +65,31 @@ const Features = ({ children }: { children: React.ReactNode }) => (
6465
<ul className="my-6 flex flex-col gap-4">{children}</ul>
6566
);
6667

67-
const Feature = ({ children }: { children: React.ReactNode }) => (
68+
const Feature = ({
69+
children,
70+
optional,
71+
}: {
72+
children: React.ReactNode;
73+
optional?: boolean;
74+
}) => (
6875
<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+
)}
7081
<div className="leading-tight">{children}</div>
7182
</li>
7283
);
7384

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+
7493
const PricingCard = ({
7594
children,
7695
emphasis,
@@ -131,14 +150,6 @@ export const metadata: Metadata = getMetadata({
131150
pathname: "/pricing",
132151
});
133152

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-
142153
export default function Page() {
143154
return (
144155
<div className="flex flex-col">
@@ -199,8 +210,8 @@ export default function Page() {
199210
<Feature>GitHub & GitLab integration</Feature>
200211
<Feature>Pro Support</Feature>
201212
<Feature>Collaborating visual review</Feature>
202-
<Feature>
203-
GitHub Single Sign-On (SSO){" "}
213+
<Feature optional>
214+
GitHub Single Sign-On (SSO)
204215
<Pricey>
205216
{dollarFormatter.format(GITHUB_SSO_PRICE)} per month
206217
</Pricey>

0 commit comments

Comments
 (0)