Skip to content

Commit 8d62add

Browse files
committed
Adds a background to the choose plan page
1 parent 1b53c87 commit 8d62add

File tree

1 file changed

+19
-12
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug_.select-plan

1 file changed

+19
-12
lines changed

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

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { LoaderFunctionArgs } from "@remix-run/server-runtime";
22
import { redirect, typedjson, useTypedLoaderData } from "remix-typedjson";
3-
import { MainCenteredContainer } from "~/components/layout/AppLayout";
3+
import { BackgroundWrapper } from "~/components/BackgroundWrapper";
4+
import { AppContainer } from "~/components/layout/AppLayout";
45
import { Header1 } from "~/components/primitives/Headers";
56
import { prisma } from "~/db.server";
67
import { featuresForRequest } from "~/features.server";
@@ -48,16 +49,22 @@ export default function ChoosePlanPage() {
4849
useTypedLoaderData<typeof loader>();
4950

5051
return (
51-
<MainCenteredContainer className="flex max-w-[80rem] flex-col items-center gap-8 p-3">
52-
<Header1 className="text-center">Subscribe for full access</Header1>
53-
<PricingPlans
54-
plans={plans}
55-
subscription={v3Subscription}
56-
organizationSlug={organizationSlug}
57-
hasPromotedPlan
58-
showGithubVerificationBadge
59-
periodEnd={periodEnd}
60-
/>
61-
</MainCenteredContainer>
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+
/>
65+
</div>
66+
</div>
67+
</BackgroundWrapper>
68+
</AppContainer>
6269
);
6370
}

0 commit comments

Comments
 (0)