Skip to content

Commit

Permalink
Adjust pricing breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
djfarrelly committed Jan 22, 2025
1 parent 05baf28 commit c3b090b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions app/pricing/PlanCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ export default function PlanCard({
`h-full py-8 px-6 border bg-canvasBase`,
content.recommended ? "border-matcha-400" : "border-muted",
`rounded-2xl`,
idx === 0 && "xl:rounded-r-none",
idx > 0 && idx < total - 1 && "xl:rounded-none",
idx === total - 1 && "xl:rounded-l-none"
// Match the flexbox changes in the parent
idx === 0 && "lg:rounded-r-none",
idx > 0 && idx < total - 1 && "lg:rounded-none",
idx === total - 1 && "lg:rounded-l-none"
)}
>
{content.recommended && (
Expand All @@ -81,7 +82,9 @@ export default function PlanCard({
{/* Prevent weird button wrap on enterprise from mis-aligning rows */}
<div className="sm:min-h-[272px] min-[933px]:min-h-[252px] min-[1272px]:min-h-0">
<h2 className="text-3xl font-semibold">{content.name}</h2>
<p className="text-sm pt-2">{content.description}</p>
<p className="text-sm pt-2 md:min-h-[4.4rem]">
{content.description}
</p>
{content.cost.between ? (
<p className="uppercase font-bold text-xs bg-gradient-to-b from-matcha-400 to-breeze-400 bg-clip-text text-transparent pt-4">
Between
Expand Down
2 changes: 1 addition & 1 deletion app/pricing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function Pricing() {
From early-stage startups to scaling enterprises, Inngest has you
covered. Get started for free today.
</p>
<div className="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-2 xl:gap-4 xl:gap-x-0 text-center mb-8">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-2 lg:gap-4 lg:gap-x-0 text-center mb-8">
{PLANS.filter((p) => p.hideFromCards !== true).map((p, idx) => (
<PlanCard key={p.name} content={p} idx={idx} total={PLANS.length} />
))}
Expand Down

0 comments on commit c3b090b

Please sign in to comment.