diff --git a/apps/www/_go/pre-release/byoc-early-access.tsx b/apps/www/_go/pre-release/byoc-early-access.tsx index bc50147740c..708da73c215 100644 --- a/apps/www/_go/pre-release/byoc-early-access.tsx +++ b/apps/www/_go/pre-release/byoc-early-access.tsx @@ -27,6 +27,7 @@ const page: GoPageInput = { type: 'feature-grid', title: 'Your cloud, operated by Supabase', description: 'Get the full power of Supabase deployed inside your own infrastructure.', + columns: 2, items: [ { title: 'Control where your data goes', diff --git a/packages/marketing/src/go/schemas.ts b/packages/marketing/src/go/schemas.ts index 8009df88e5a..7125d939aba 100644 --- a/packages/marketing/src/go/schemas.ts +++ b/packages/marketing/src/go/schemas.ts @@ -207,6 +207,10 @@ export const featureGridSectionSchema = z.object({ type: z.literal('feature-grid'), title: z.string().optional(), description: z.string().optional(), + columns: z + .union([z.literal(1), z.literal(2), z.literal(3)]) + .optional() + .default(3), items: z.array(featureGridItemSchema).min(1).max(6), }) diff --git a/packages/marketing/src/go/sections/FeatureGridSection.tsx b/packages/marketing/src/go/sections/FeatureGridSection.tsx index 16900432698..6772107c085 100644 --- a/packages/marketing/src/go/sections/FeatureGridSection.tsx +++ b/packages/marketing/src/go/sections/FeatureGridSection.tsx @@ -3,8 +3,8 @@ import { cn } from 'ui' import type { GoFeatureGridSection } from '../schemas' export default function FeatureGridSection({ section }: { section: GoFeatureGridSection }) { - const { items } = section - const hasSecondRow = items.length > 3 + const { items, columns = 3 } = section + const hasSecondRow = items.length > columns return (