Skip to content

Commit ae22000

Browse files
authored
chore(webapp): pricing page improvements (#2457)
* Improve styling of onboarding pricing plans * type only import * Improve the onboarding plan page so it scrolls on smaller screens * Adds additional pricing for bolt-ons for the Pro plan * fix text wrapping issue * add bg color back in
1 parent 2bbf8ec commit ae22000

File tree

3 files changed

+154
-83
lines changed

3 files changed

+154
-83
lines changed

apps/webapp/app/components/DefinitionTooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function DefinitionTip({
1414
return (
1515
<TooltipProvider>
1616
<Tooltip disableHoverableContent>
17-
<TooltipTrigger>
17+
<TooltipTrigger className="text-left">
1818
<span className="cursor-default underline decoration-charcoal-500 decoration-dashed underline-offset-4 transition hover:decoration-charcoal-400">
1919
{children}
2020
</span>

apps/webapp/app/routes/_app.orgs.$organizationSlug_.select-plan/route.tsx

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { LoaderFunctionArgs } from "@remix-run/server-runtime";
1+
import { type LoaderFunctionArgs } from "@remix-run/server-runtime";
22
import { redirect, typedjson, useTypedLoaderData } from "remix-typedjson";
33
import { BackgroundWrapper } from "~/components/BackgroundWrapper";
4-
import { AppContainer } from "~/components/layout/AppLayout";
4+
import { AppContainer, MainBody, PageBody } from "~/components/layout/AppLayout";
55
import { Header1 } from "~/components/primitives/Headers";
66
import { prisma } from "~/db.server";
77
import { featuresForRequest } from "~/features.server";
@@ -49,22 +49,24 @@ export default function ChoosePlanPage() {
4949
useTypedLoaderData<typeof loader>();
5050

5151
return (
52-
<AppContainer className="bg-charcoal-900">
53-
<BackgroundWrapper>
54-
<div className="mx-auto flex h-full w-full max-w-[80rem] flex-col items-center justify-center gap-8 p-3">
55-
<Header1 className="text-center">Subscribe for full access</Header1>
56-
<div className="w-full rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg">
57-
<PricingPlans
58-
plans={plans}
59-
subscription={v3Subscription}
60-
organizationSlug={organizationSlug}
61-
hasPromotedPlan
62-
showGithubVerificationBadge
63-
periodEnd={periodEnd}
64-
/>
52+
<AppContainer>
53+
<PageBody className="bg-charcoal-900">
54+
<BackgroundWrapper>
55+
<div className="mx-auto mt-4 flex h-fit min-h-full max-w-[80rem] flex-col items-center justify-center gap-8 lg:mt-0">
56+
<Header1 className="text-center">Subscribe for full access</Header1>
57+
<div className="w-full rounded-lg border border-grid-bright bg-background-dimmed p-5 shadow-lg">
58+
<PricingPlans
59+
plans={plans}
60+
subscription={v3Subscription}
61+
organizationSlug={organizationSlug}
62+
hasPromotedPlan
63+
showGithubVerificationBadge
64+
periodEnd={periodEnd}
65+
/>
66+
</div>
6567
</div>
66-
</div>
67-
</BackgroundWrapper>
68+
</BackgroundWrapper>
69+
</PageBody>
6870
</AppContainer>
6971
);
7072
}

0 commit comments

Comments
 (0)