Skip to content

Commit 68d4ba8

Browse files
committed
feat: add GitHub SSO pricing
1 parent 265eafa commit 68d4ba8

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

app/pricing/page.tsx

+28-7
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ import { Simulator } from "./Simulator";
2525
const HOBBY_PLAN_SCREENSHOT_COUNT = 5000;
2626
const PRO_PLAN_SCREENSHOT_COUNT = 15000;
2727
const ADDITIONAL_SCREENSHOT_PRICE = 0.0025;
28+
const GITHUB_SSO_PRICE = 50;
29+
30+
const dollarFormatter = new Intl.NumberFormat(undefined, {
31+
style: "currency",
32+
currency: "USD",
33+
maximumSignificantDigits: 10,
34+
});
2835

2936
const Price = ({
3037
amount,
@@ -41,7 +48,7 @@ const Price = ({
4148
</div>
4249
<div className="flex items-baseline">
4350
<span className="text-3xl font-semibold text">
44-
$<span className="tracking-tight">{amount}</span>
51+
<span className="tracking-tight">{dollarFormatter.format(amount)}</span>
4552
</span>
4653
{recurring && <span className="ml-1 text-lg text-low">/mo</span>}
4754
</div>
@@ -122,6 +129,14 @@ export const metadata: Metadata = getMetadata({
122129
pathname: "/pricing",
123130
});
124131

132+
function Pricey(props: { children: React.ReactNode }) {
133+
return (
134+
<Tooltip content={props.children}>
135+
<CircleDollarSignIcon className="ml-1 inline-block h-5 w-5 text" />
136+
</Tooltip>
137+
);
138+
}
139+
125140
export default function Page() {
126141
return (
127142
<div className="flex flex-col">
@@ -171,18 +186,23 @@ export default function Page() {
171186
{PRO_PLAN_SCREENSHOT_COUNT.toLocaleString()} screenshots{" "}
172187
<span className="whitespace-nowrap">
173188
included
174-
<Tooltip
175-
content={`Then $${ADDITIONAL_SCREENSHOT_PRICE} per screenshot after`}
176-
>
177-
<CircleDollarSignIcon className="ml-1 inline-block h-5 w-5 text" />
178-
</Tooltip>
189+
<Pricey>
190+
Then {dollarFormatter.format(ADDITIONAL_SCREENSHOT_PRICE)}{" "}
191+
per screenshot after
192+
</Pricey>
179193
</span>
180194
</Feature>
181195
<Feature>Unlimited Playwright Traces</Feature>
182196
<Feature>Visual changes detection</Feature>
183197
<Feature>GitHub & GitLab integration</Feature>
184198
<Feature>Pro Support</Feature>
185199
<Feature>Collaborating visual review</Feature>
200+
<Feature>
201+
GitHub Single Sign-On (SSO){" "}
202+
<Pricey>
203+
{dollarFormatter.format(GITHUB_SSO_PRICE)} per month
204+
</Pricey>
205+
</Feature>
186206
</Features>
187207
</PricingCardBody>
188208
</PricingCard>
@@ -207,7 +227,8 @@ export default function Page() {
207227
<Feature>GitHub & GitLab integration</Feature>
208228
<Feature>Dedicated Support</Feature>
209229
<Feature>Collaborating visual review</Feature>
210-
<Feature>SAML Single-Sign-On (SSO)</Feature>
230+
<Feature>GitHub Single Sign-On (SSO)</Feature>
231+
<Feature>SAML Single Sign-On (SSO)</Feature>
211232
<Feature>SLA for 99.99% Uptime</Feature>
212233
</Features>
213234
</PricingCardBody>

0 commit comments

Comments
 (0)