Skip to content

Commit c5bd14e

Browse files
committed
Improve the onboarding plan page so it scrolls on smaller screens
1 parent 9793c71 commit c5bd14e

File tree

1 file changed

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

1 file changed

+19
-17
lines changed

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 @@
11
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+
<BackgroundWrapper>
53+
<AppContainer>
54+
<PageBody>
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-
</AppContainer>
68+
</PageBody>
69+
</AppContainer>
70+
</BackgroundWrapper>
6971
);
7072
}

0 commit comments

Comments
 (0)