Everything seems to be working with better UI for page editting

This commit is contained in:
2026-03-27 04:29:45 -05:00
parent 482d2d6c97
commit 57bcb2474f
12 changed files with 1245 additions and 135 deletions

View File

@@ -2,9 +2,14 @@ import type { Block } from 'payload';
import {
defaultLandingCtaContent,
defaultLandingFaqContent,
defaultLandingFeaturesContent,
defaultLandingHeroContent,
defaultLandingLogoCloudContent,
defaultLandingPricingContent,
defaultLandingStatsContent,
defaultLandingTechStackContent,
defaultLandingTestimonialsContent,
} from '../../components/landing/content';
export const landingPageBlocks: Block[] = [
@@ -72,6 +77,35 @@ export const landingPageBlocks: Block[] = [
},
],
},
{
slug: 'logoCloud',
labels: {
singular: 'Logo Cloud',
plural: 'Logo Clouds',
},
fields: [
{
name: 'heading',
type: 'text',
defaultValue: defaultLandingLogoCloudContent.heading,
},
{
name: 'items',
type: 'array',
defaultValue: defaultLandingLogoCloudContent.items,
fields: [
{
name: 'name',
type: 'text',
},
{
name: 'accent',
type: 'text',
},
],
},
],
},
{
slug: 'features',
labels: {
@@ -110,6 +144,44 @@ export const landingPageBlocks: Block[] = [
},
],
},
{
slug: 'stats',
labels: {
singular: 'Stats Section',
plural: 'Stats Sections',
},
fields: [
{
name: 'heading',
type: 'text',
defaultValue: defaultLandingStatsContent.heading,
},
{
name: 'description',
type: 'textarea',
defaultValue: defaultLandingStatsContent.description,
},
{
name: 'items',
type: 'array',
defaultValue: defaultLandingStatsContent.items,
fields: [
{
name: 'value',
type: 'text',
},
{
name: 'label',
type: 'text',
},
{
name: 'description',
type: 'textarea',
},
],
},
],
},
{
slug: 'techStack',
labels: {
@@ -154,6 +226,157 @@ export const landingPageBlocks: Block[] = [
},
],
},
{
slug: 'testimonials',
labels: {
singular: 'Testimonials Section',
plural: 'Testimonials Sections',
},
fields: [
{
name: 'heading',
type: 'text',
defaultValue: defaultLandingTestimonialsContent.heading,
},
{
name: 'description',
type: 'textarea',
defaultValue: defaultLandingTestimonialsContent.description,
},
{
name: 'items',
type: 'array',
defaultValue: defaultLandingTestimonialsContent.items,
fields: [
{
name: 'quote',
type: 'textarea',
},
{
name: 'name',
type: 'text',
},
{
name: 'role',
type: 'text',
},
{
name: 'company',
type: 'text',
},
{
name: 'avatarEmoji',
type: 'text',
},
],
},
],
},
{
slug: 'pricing',
labels: {
singular: 'Pricing Section',
plural: 'Pricing Sections',
},
fields: [
{
name: 'heading',
type: 'text',
defaultValue: defaultLandingPricingContent.heading,
},
{
name: 'description',
type: 'textarea',
defaultValue: defaultLandingPricingContent.description,
},
{
name: 'plans',
type: 'array',
defaultValue: defaultLandingPricingContent.plans.map((plan) => ({
...plan,
features: plan.features.map((label) => ({ label })),
})),
fields: [
{
name: 'name',
type: 'text',
},
{
name: 'price',
type: 'text',
},
{
name: 'billingPeriod',
type: 'text',
},
{
name: 'description',
type: 'textarea',
},
{
name: 'badge',
type: 'text',
},
{
name: 'isHighlighted',
type: 'checkbox',
},
{
name: 'ctaLabel',
type: 'text',
},
{
name: 'ctaUrl',
type: 'text',
},
{
name: 'features',
type: 'array',
fields: [
{
name: 'label',
type: 'text',
},
],
},
],
},
],
},
{
slug: 'faq',
labels: {
singular: 'FAQ Section',
plural: 'FAQ Sections',
},
fields: [
{
name: 'heading',
type: 'text',
defaultValue: defaultLandingFaqContent.heading,
},
{
name: 'description',
type: 'textarea',
defaultValue: defaultLandingFaqContent.description,
},
{
name: 'items',
type: 'array',
defaultValue: defaultLandingFaqContent.items,
fields: [
{
name: 'question',
type: 'text',
},
{
name: 'answer',
type: 'textarea',
},
],
},
],
},
{
slug: 'cta',
labels: {