kofi-stack-template-generator 2.1.37 → 2.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +6 -6
- package/dist/index.js +8057 -440
- package/package.json +1 -1
- package/src/templates.generated.ts +248 -94
- package/templates/integrations/posthog/src/components/providers/posthog-provider.tsx.hbs +4 -1
- package/templates/marketing/payload/package.json.hbs +41 -26
- package/templates/marketing/payload/src/Footer/Component.client.tsx +288 -0
- package/templates/marketing/payload/src/Footer/Component.tsx +11 -0
- package/templates/marketing/payload/src/Footer/RowLabel.tsx +15 -0
- package/templates/marketing/payload/src/Footer/config.ts +178 -0
- package/templates/marketing/payload/src/Footer/hooks/{revalidateFooter.ts.hbs → revalidateFooter.ts} +5 -5
- package/templates/marketing/payload/src/Header/Component.client.tsx +94 -0
- package/templates/marketing/payload/src/Header/Component.tsx +10 -0
- package/templates/marketing/payload/src/Header/MegaMenu/index.tsx +197 -0
- package/templates/marketing/payload/src/Header/MobileMenu/HamburgerIcon.tsx +48 -0
- package/templates/marketing/payload/src/Header/MobileMenu/index.tsx +299 -0
- package/templates/marketing/payload/src/Header/Nav/index.tsx +76 -0
- package/templates/marketing/payload/src/Header/RowLabel.tsx +21 -0
- package/templates/marketing/payload/src/Header/config.ts +208 -0
- package/templates/marketing/payload/src/Header/hooks/{revalidateHeader.ts.hbs → revalidateHeader.ts} +5 -5
- package/templates/marketing/payload/src/access/{authenticated.ts.hbs → authenticated.ts} +1 -1
- package/templates/marketing/payload/src/access/{authenticatedOrPublished.ts.hbs → authenticatedOrPublished.ts} +8 -8
- package/templates/marketing/payload/src/app/(docs)/docs/[[...slug]]/page.tsx +117 -0
- package/templates/marketing/payload/src/app/(docs)/docs/layout.tsx +39 -0
- package/templates/marketing/payload/src/app/(docs)/layout.tsx +44 -0
- package/templates/marketing/payload/src/app/(frontend)/(sitemaps)/pages-sitemap.xml/route.ts +68 -0
- package/templates/marketing/payload/src/app/(frontend)/(sitemaps)/posts-sitemap.xml/route.ts +55 -0
- package/templates/marketing/payload/src/app/(frontend)/[slug]/page.client.tsx +15 -0
- package/templates/marketing/payload/src/app/(frontend)/[slug]/page.tsx +114 -0
- package/templates/marketing/payload/src/app/(frontend)/api/docs-search/route.ts +67 -0
- package/templates/marketing/payload/src/app/(frontend)/api/newsletter/route.ts +260 -0
- package/templates/marketing/payload/src/app/(frontend)/api/pricing/route.ts +266 -0
- package/templates/marketing/payload/src/app/(frontend)/globals.css +1019 -0
- package/templates/marketing/payload/src/app/(frontend)/layout.tsx +114 -0
- package/templates/marketing/payload/src/app/(frontend)/next/exit-preview/route.ts +7 -0
- package/templates/marketing/payload/src/app/(frontend)/next/preview/route.ts +56 -0
- package/templates/marketing/payload/src/app/(frontend)/next/seed/route.ts +31 -0
- package/templates/marketing/payload/src/app/(frontend)/not-found.tsx +17 -0
- package/templates/marketing/payload/src/app/(frontend)/page.tsx +5 -0
- package/templates/marketing/payload/src/app/(frontend)/posts/BlogPageClient.tsx +190 -0
- package/templates/marketing/payload/src/app/(frontend)/posts/[slug]/BlogPostContent.tsx +67 -0
- package/templates/marketing/payload/src/app/(frontend)/posts/[slug]/page.client.tsx +15 -0
- package/templates/marketing/payload/src/app/(frontend)/posts/[slug]/page.tsx +118 -0
- package/templates/marketing/payload/src/app/(frontend)/posts/page/[pageNumber]/page.client.tsx +15 -0
- package/templates/marketing/payload/src/app/(frontend)/posts/page/[pageNumber]/page.tsx +87 -0
- package/templates/marketing/payload/src/app/(frontend)/posts/page.tsx +49 -0
- package/templates/marketing/payload/src/app/(frontend)/search/page.client.tsx +15 -0
- package/templates/marketing/payload/src/app/(frontend)/search/page.tsx +87 -0
- package/templates/marketing/payload/src/app/(payload)/admin/[[...segments]]/not-found.tsx +24 -0
- package/templates/marketing/payload/src/app/(payload)/admin/[[...segments]]/page.tsx +24 -0
- package/templates/marketing/payload/src/app/(payload)/admin/importMap.js +83 -0
- package/templates/marketing/payload/src/app/(payload)/api/[...slug]/{route.ts.hbs → route.ts} +13 -9
- package/templates/marketing/payload/src/app/(payload)/api/graphql/{route.ts.hbs → route.ts} +2 -2
- package/templates/marketing/payload/src/app/(payload)/api/graphql-playground/{route.ts.hbs → route.ts} +3 -3
- package/templates/marketing/payload/src/app/(payload)/custom.scss +0 -0
- package/templates/marketing/payload/src/app/(payload)/layout.tsx +31 -0
- package/templates/marketing/payload/src/blocks/ArchiveBlock/Component.tsx +65 -0
- package/templates/marketing/payload/src/blocks/ArchiveBlock/config.ts +120 -0
- package/templates/marketing/payload/src/blocks/Banner/Component.tsx +26 -0
- package/templates/marketing/payload/src/blocks/Banner/config.ts +67 -0
- package/templates/marketing/payload/src/blocks/BentoFeatures/Component.tsx +243 -0
- package/templates/marketing/payload/src/blocks/BentoFeatures/config.ts +147 -0
- package/templates/marketing/payload/src/blocks/CallToAction/Component.tsx +31 -0
- package/templates/marketing/payload/src/blocks/CallToAction/config.ts +68 -0
- package/templates/marketing/payload/src/blocks/Code/Component.client.tsx +33 -0
- package/templates/marketing/payload/src/blocks/Code/Component.tsx +21 -0
- package/templates/marketing/payload/src/blocks/Code/CopyButton.tsx +33 -0
- package/templates/marketing/payload/src/blocks/Code/config.ts +33 -0
- package/templates/marketing/payload/src/blocks/Content/Component.tsx +41 -0
- package/templates/marketing/payload/src/blocks/Content/config.ts +105 -0
- package/templates/marketing/payload/src/blocks/FAQAccordion/Component.tsx +90 -0
- package/templates/marketing/payload/src/blocks/FAQAccordion/config.ts +75 -0
- package/templates/marketing/payload/src/blocks/FeatureGrid/Component.tsx +108 -0
- package/templates/marketing/payload/src/blocks/FeatureGrid/config.ts +109 -0
- package/templates/marketing/payload/src/blocks/FeatureShowcase/Component.tsx +107 -0
- package/templates/marketing/payload/src/blocks/FeatureShowcase/config.ts +111 -0
- package/templates/marketing/payload/src/blocks/FinalCTA/Component.tsx +117 -0
- package/templates/marketing/payload/src/blocks/FinalCTA/config.ts +50 -0
- package/templates/marketing/payload/src/blocks/Form/Checkbox/index.tsx +45 -0
- package/templates/marketing/payload/src/blocks/Form/Component.tsx +170 -0
- package/templates/marketing/payload/src/blocks/Form/Country/index.tsx +65 -0
- package/templates/marketing/payload/src/blocks/Form/Country/options.ts +982 -0
- package/templates/marketing/payload/src/blocks/Form/Email/index.tsx +38 -0
- package/templates/marketing/payload/src/blocks/Form/Error/index.tsx +13 -0
- package/templates/marketing/payload/src/blocks/Form/Message/index.tsx +13 -0
- package/templates/marketing/payload/src/blocks/Form/Number/index.tsx +36 -0
- package/templates/marketing/payload/src/blocks/Form/Select/index.tsx +63 -0
- package/templates/marketing/payload/src/blocks/Form/State/index.tsx +64 -0
- package/templates/marketing/payload/src/blocks/Form/State/options.ts +52 -0
- package/templates/marketing/payload/src/blocks/Form/Text/index.tsx +32 -0
- package/templates/marketing/payload/src/blocks/Form/Textarea/index.tsx +40 -0
- package/templates/marketing/payload/src/blocks/Form/Width/index.tsx +13 -0
- package/templates/marketing/payload/src/blocks/Form/config.ts +77 -0
- package/templates/marketing/payload/src/blocks/Form/fields.tsx +21 -0
- package/templates/marketing/payload/src/blocks/HowItWorks/Component.tsx +59 -0
- package/templates/marketing/payload/src/blocks/HowItWorks/config.ts +88 -0
- package/templates/marketing/payload/src/blocks/IndustryTabs/Component.tsx +132 -0
- package/templates/marketing/payload/src/blocks/IndustryTabs/config.ts +77 -0
- package/templates/marketing/payload/src/blocks/LogoBanner/Component.tsx +95 -0
- package/templates/marketing/payload/src/blocks/LogoBanner/config.ts +48 -0
- package/templates/marketing/payload/src/blocks/MediaBlock/Component.tsx +67 -0
- package/templates/marketing/payload/src/blocks/MediaBlock/config.ts +14 -0
- package/templates/marketing/payload/src/blocks/Personas/Component.tsx +69 -0
- package/templates/marketing/payload/src/blocks/Personas/config.ts +96 -0
- package/templates/marketing/payload/src/blocks/PricingTable/ComparisonTable.tsx +250 -0
- package/templates/marketing/payload/src/blocks/PricingTable/Component.tsx +443 -0
- package/templates/marketing/payload/src/blocks/PricingTable/config.ts +142 -0
- package/templates/marketing/payload/src/blocks/ProofBanner/Component.tsx +65 -0
- package/templates/marketing/payload/src/blocks/ProofBanner/config.ts +42 -0
- package/templates/marketing/payload/src/blocks/RelatedPosts/Component.tsx +32 -0
- package/templates/marketing/payload/src/blocks/RenderBlocks.tsx +92 -0
- package/templates/marketing/payload/src/blocks/TestimonialsGrid/Component.tsx +107 -0
- package/templates/marketing/payload/src/blocks/TestimonialsGrid/config.ts +76 -0
- package/templates/marketing/payload/src/blocks/TrustColumns/Component.tsx +83 -0
- package/templates/marketing/payload/src/blocks/TrustColumns/config.ts +70 -0
- package/templates/marketing/payload/src/collections/Categories.ts +28 -0
- package/templates/marketing/payload/src/collections/FAQs/index.ts +100 -0
- package/templates/marketing/payload/src/collections/Media.ts +160 -0
- package/templates/marketing/payload/src/collections/Pages/hooks/revalidatePage.ts +43 -0
- package/templates/marketing/payload/src/collections/Pages/index.ts +168 -0
- package/templates/marketing/payload/src/collections/Posts/hooks/populateAuthors.ts +41 -0
- package/templates/marketing/payload/src/collections/Posts/hooks/revalidatePost.ts +44 -0
- package/templates/marketing/payload/src/collections/Posts/index.ts +259 -0
- package/templates/marketing/payload/src/collections/Users/index.ts +26 -0
- package/templates/marketing/payload/src/components/AdminBar/index.scss +7 -0
- package/templates/marketing/payload/src/components/AdminBar/index.tsx +89 -0
- package/templates/marketing/payload/src/components/Analytics/CTATracker.tsx +33 -0
- package/templates/marketing/payload/src/components/Analytics/FeatureSectionTracker.tsx +47 -0
- package/templates/marketing/payload/src/components/Analytics/PricingViewTracker.tsx +46 -0
- package/templates/marketing/payload/src/components/Analytics/index.tsx +3 -0
- package/templates/marketing/payload/src/components/BeforeDashboard/SeedButton/index.tsx +89 -0
- package/templates/marketing/payload/src/components/BeforeDashboard/index.tsx +69 -0
- package/templates/marketing/payload/src/components/BeforeLogin/index.tsx +14 -0
- package/templates/marketing/payload/src/components/BlogCTA/index.tsx +77 -0
- package/templates/marketing/payload/src/components/Card/index.tsx +85 -0
- package/templates/marketing/payload/src/components/CollectionArchive/index.tsx +32 -0
- package/templates/marketing/payload/src/components/JsonLd/index.tsx +138 -0
- package/templates/marketing/payload/src/components/Link/index.tsx +66 -0
- package/templates/marketing/payload/src/components/LivePreviewListener/index.tsx +10 -0
- package/templates/marketing/payload/src/components/Logo/Logo.tsx +46 -0
- package/templates/marketing/payload/src/components/Media/ImageMedia/index.tsx +80 -0
- package/templates/marketing/payload/src/components/Media/VideoMedia/index.tsx +47 -0
- package/templates/marketing/payload/src/components/Media/index.tsx +26 -0
- package/templates/marketing/payload/src/components/Media/types.ts +22 -0
- package/templates/marketing/payload/src/components/PageRange/index.tsx +57 -0
- package/templates/marketing/payload/src/components/Pagination/index.tsx +101 -0
- package/templates/marketing/payload/src/components/PayloadRedirects/index.tsx +48 -0
- package/templates/marketing/payload/src/components/RichText/index.tsx +152 -0
- package/templates/marketing/payload/src/components/TableOfContents/index.tsx +128 -0
- package/templates/marketing/payload/src/components/ui/accordion.tsx +64 -0
- package/templates/marketing/payload/src/components/ui/button.tsx +52 -0
- package/templates/marketing/payload/src/components/ui/card.tsx +48 -0
- package/templates/marketing/payload/src/components/ui/checkbox.tsx +27 -0
- package/templates/marketing/payload/src/components/ui/input.tsx +22 -0
- package/templates/marketing/payload/src/components/ui/label.tsx +19 -0
- package/templates/marketing/payload/src/components/ui/pagination.tsx +92 -0
- package/templates/marketing/payload/src/components/ui/select.tsx +144 -0
- package/templates/marketing/payload/src/components/ui/textarea.tsx +21 -0
- package/templates/marketing/payload/src/endpoints/seed/contact-form.ts +111 -0
- package/templates/marketing/payload/src/endpoints/seed/contact-page.ts +56 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/about.ts +281 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/faqs.ts +224 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/automation.ts +229 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/custom-fields.ts +229 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/dashboard.ts +228 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/index.ts +6 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/monetization.ts +230 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/seo.ts +229 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/features/templates.ts +218 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/home.ts +555 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/index.ts +767 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/posts.ts +623 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/pricing.ts +251 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/privacy.ts +457 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/richtext-helper.ts +88 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/terms.ts +478 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/use-cases/b2b-vendor-hubs.ts +229 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/use-cases/communities.ts +230 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/use-cases/index.ts +4 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/use-cases/local-services.ts +230 -0
- package/templates/marketing/payload/src/endpoints/seed/directoryhub/use-cases/marketplaces.ts +230 -0
- package/templates/marketing/payload/src/endpoints/seed/home-static.ts +691 -0
- package/templates/marketing/payload/src/endpoints/seed/home.ts +675 -0
- package/templates/marketing/payload/src/endpoints/seed/image-1.ts +67 -0
- package/templates/marketing/payload/src/endpoints/seed/image-2.ts +67 -0
- package/templates/marketing/payload/src/endpoints/seed/image-3.ts +67 -0
- package/templates/marketing/payload/src/endpoints/seed/image-hero-1.ts +5 -0
- package/templates/marketing/payload/src/endpoints/seed/image-hero1.webp +0 -0
- package/templates/marketing/payload/src/endpoints/seed/image-post1.webp +0 -0
- package/templates/marketing/payload/src/endpoints/seed/image-post2.webp +0 -0
- package/templates/marketing/payload/src/endpoints/seed/image-post3.webp +0 -0
- package/templates/marketing/payload/src/endpoints/seed/index.ts +335 -0
- package/templates/marketing/payload/src/endpoints/seed/post-1.ts +315 -0
- package/templates/marketing/payload/src/endpoints/seed/post-2.ts +232 -0
- package/templates/marketing/payload/src/endpoints/seed/post-3.ts +268 -0
- package/templates/marketing/payload/src/fields/defaultLexical.ts +73 -0
- package/templates/marketing/payload/src/fields/link.ts +139 -0
- package/templates/marketing/payload/src/fields/linkGroup.ts +28 -0
- package/templates/marketing/payload/src/heros/HighImpact/index.tsx +56 -0
- package/templates/marketing/payload/src/heros/LowImpact/index.tsx +48 -0
- package/templates/marketing/payload/src/heros/MediumImpact/index.tsx +50 -0
- package/templates/marketing/payload/src/heros/PostHero/index.tsx +73 -0
- package/templates/marketing/payload/src/heros/ProductShowcase/AnimatedMockup.tsx +241 -0
- package/templates/marketing/payload/src/heros/ProductShowcase/index.tsx +108 -0
- package/templates/marketing/payload/src/heros/{RenderHero.tsx.hbs → RenderHero.tsx} +9 -9
- package/templates/marketing/payload/src/heros/config.ts +121 -0
- package/templates/marketing/payload/src/hooks/populatePublishedAt.ts +15 -0
- package/templates/marketing/payload/src/hooks/{revalidateRedirects.ts.hbs → revalidateRedirects.ts} +3 -3
- package/templates/marketing/payload/src/lib/convex.ts +13 -0
- package/templates/marketing/payload/src/lib/docs-source.ts +138 -0
- package/templates/marketing/payload/src/lib/mdx.tsx +191 -0
- package/templates/marketing/payload/src/payload.config.ts.hbs +95 -145
- package/templates/marketing/payload/src/plugins/index.ts +107 -0
- package/templates/marketing/payload/src/providers/HeaderTheme/index.tsx +34 -0
- package/templates/marketing/payload/src/providers/PostHogProvider.tsx +33 -0
- package/templates/marketing/payload/src/providers/Theme/InitTheme/{index.tsx.hbs → index.tsx} +11 -10
- package/templates/marketing/payload/src/providers/Theme/ThemeSelector/index.tsx +133 -0
- package/templates/marketing/payload/src/providers/Theme/ThemeSelector/types.ts +7 -0
- package/templates/marketing/payload/src/providers/Theme/index.tsx +60 -0
- package/templates/marketing/payload/src/providers/Theme/shared.ts +17 -0
- package/templates/marketing/payload/src/providers/Theme/{types.ts.hbs → types.ts} +3 -3
- package/templates/marketing/payload/src/providers/index.tsx +17 -0
- package/templates/marketing/payload/src/search/Component.tsx +42 -0
- package/templates/marketing/payload/src/search/beforeSync.ts +56 -0
- package/templates/marketing/payload/src/search/fieldOverrides.ts +61 -0
- package/templates/marketing/payload/src/utilities/deepMerge.ts +35 -0
- package/templates/marketing/payload/src/utilities/extractHeadings.ts +78 -0
- package/templates/marketing/payload/src/utilities/formatAuthors.ts +24 -0
- package/templates/marketing/payload/src/utilities/formatDateTime.ts +20 -0
- package/templates/marketing/payload/src/utilities/generateMeta.ts +93 -0
- package/templates/marketing/payload/src/utilities/generatePreviewPath.ts +33 -0
- package/templates/marketing/payload/src/utilities/getDocument.ts +32 -0
- package/templates/marketing/payload/src/utilities/getGlobals.ts +26 -0
- package/templates/marketing/payload/src/utilities/getMeUser.ts +43 -0
- package/templates/marketing/payload/src/utilities/getMediaUrl.ts +24 -0
- package/templates/marketing/payload/src/utilities/getRedirects.ts +26 -0
- package/templates/marketing/payload/src/utilities/getURL.ts +26 -0
- package/templates/marketing/payload/src/utilities/mergeOpenGraph.ts +26 -0
- package/templates/marketing/payload/src/utilities/toKebabCase.ts +5 -0
- package/templates/marketing/payload/src/utilities/ui.ts +12 -0
- package/templates/marketing/payload/src/utilities/useClickableCard.ts +108 -0
- package/templates/marketing/payload/src/utilities/useDebounce.ts +17 -0
- package/templates/packages/ui/src/components/button.tsx.hbs +53 -0
- package/templates/packages/ui/src/components/card.tsx.hbs +76 -0
- package/templates/packages/ui/src/components/separator.tsx.hbs +26 -0
- package/templates/marketing/payload/src/Footer/config.ts.hbs +0 -178
- package/templates/marketing/payload/src/Footer/index.ts.hbs +0 -1
- package/templates/marketing/payload/src/Header/RowLabel.tsx.hbs +0 -21
- package/templates/marketing/payload/src/Header/config.ts.hbs +0 -208
- package/templates/marketing/payload/src/Header/index.ts.hbs +0 -1
- package/templates/marketing/payload/src/access/index.ts.hbs +0 -3
- package/templates/marketing/payload/src/app/(frontend)/layout.tsx.hbs +0 -19
- package/templates/marketing/payload/src/app/(frontend)/next/seed/route.ts.hbs +0 -31
- package/templates/marketing/payload/src/app/(frontend)/page.tsx.hbs +0 -83
- package/templates/marketing/payload/src/app/(payload)/admin/[[...segments]]/not-found.tsx.hbs +0 -24
- package/templates/marketing/payload/src/app/(payload)/admin/[[...segments]]/page.tsx.hbs +0 -24
- package/templates/marketing/payload/src/app/(payload)/admin/importMap.js.hbs +0 -1
- package/templates/marketing/payload/src/app/(payload)/custom.scss.hbs +0 -1
- package/templates/marketing/payload/src/app/(payload)/layout.tsx.hbs +0 -31
- package/templates/marketing/payload/src/app/globals.css.hbs +0 -83
- package/templates/marketing/payload/src/app/layout.tsx.hbs +0 -10
- package/templates/marketing/payload/src/blocks/Benefits.ts.hbs +0 -34
- package/templates/marketing/payload/src/blocks/CTA.ts.hbs +0 -39
- package/templates/marketing/payload/src/blocks/Content.ts.hbs +0 -9
- package/templates/marketing/payload/src/blocks/FAQ.ts.hbs +0 -18
- package/templates/marketing/payload/src/blocks/Features.ts.hbs +0 -34
- package/templates/marketing/payload/src/blocks/Hero.ts.hbs +0 -40
- package/templates/marketing/payload/src/blocks/LogoBanner.ts.hbs +0 -17
- package/templates/marketing/payload/src/blocks/Pricing.ts.hbs +0 -37
- package/templates/marketing/payload/src/blocks/Testimonials.ts.hbs +0 -21
- package/templates/marketing/payload/src/blocks/index.ts.hbs +0 -9
- package/templates/marketing/payload/src/collections/Categories/index.ts.hbs +0 -28
- package/templates/marketing/payload/src/collections/FAQs/index.ts.hbs +0 -100
- package/templates/marketing/payload/src/collections/Media.ts.hbs +0 -164
- package/templates/marketing/payload/src/collections/Pages/hooks/revalidatePage.ts.hbs +0 -43
- package/templates/marketing/payload/src/collections/Pages/index.ts.hbs +0 -142
- package/templates/marketing/payload/src/collections/Posts/hooks/populateAuthors.ts.hbs +0 -41
- package/templates/marketing/payload/src/collections/Posts/hooks/revalidatePost.ts.hbs +0 -44
- package/templates/marketing/payload/src/collections/Posts/index.ts.hbs +0 -244
- package/templates/marketing/payload/src/collections/Users/index.ts.hbs +0 -26
- package/templates/marketing/payload/src/collections/index.ts.hbs +0 -6
- package/templates/marketing/payload/src/components/BeforeDashboard/SeedButton/index.tsx.hbs +0 -89
- package/templates/marketing/payload/src/components/BeforeDashboard/index.tsx.hbs +0 -69
- package/templates/marketing/payload/src/components/BeforeLogin/index.tsx.hbs +0 -14
- package/templates/marketing/payload/src/components/Link/index.tsx.hbs +0 -79
- package/templates/marketing/payload/src/components/Media/index.tsx.hbs +0 -67
- package/templates/marketing/payload/src/components/RichText/index.tsx.hbs +0 -44
- package/templates/marketing/payload/src/endpoints/seed/home.ts.hbs +0 -76
- package/templates/marketing/payload/src/endpoints/seed/image-1.ts.hbs +0 -5
- package/templates/marketing/payload/src/endpoints/seed/image-2.ts.hbs +0 -5
- package/templates/marketing/payload/src/endpoints/seed/image-hero.ts.hbs +0 -5
- package/templates/marketing/payload/src/endpoints/seed/index.ts.hbs +0 -235
- package/templates/marketing/payload/src/endpoints/seed/post-1.ts.hbs +0 -252
- package/templates/marketing/payload/src/fields/defaultLexical.ts.hbs +0 -73
- package/templates/marketing/payload/src/fields/link.ts.hbs +0 -139
- package/templates/marketing/payload/src/fields/linkGroup.ts.hbs +0 -28
- package/templates/marketing/payload/src/globals/index.ts.hbs +0 -2
- package/templates/marketing/payload/src/heros/HighImpact/index.tsx.hbs +0 -53
- package/templates/marketing/payload/src/heros/LowImpact/index.tsx.hbs +0 -48
- package/templates/marketing/payload/src/heros/MediumImpact/index.tsx.hbs +0 -46
- package/templates/marketing/payload/src/heros/PostHero/index.tsx.hbs +0 -68
- package/templates/marketing/payload/src/heros/ProductShowcase/index.tsx.hbs +0 -88
- package/templates/marketing/payload/src/heros/config.ts.hbs +0 -112
- package/templates/marketing/payload/src/heros/index.ts.hbs +0 -7
- package/templates/marketing/payload/src/hooks/index.ts.hbs +0 -2
- package/templates/marketing/payload/src/hooks/populatePublishedAt.ts.hbs +0 -15
- package/templates/marketing/payload/src/providers/HeaderTheme/index.tsx.hbs +0 -34
- package/templates/marketing/payload/src/providers/Theme/index.tsx.hbs +0 -60
- package/templates/marketing/payload/src/providers/Theme/shared.ts.hbs +0 -17
- package/templates/marketing/payload/src/providers/index.tsx.hbs +0 -18
- package/templates/marketing/payload/src/utilities/deepMerge.ts.hbs +0 -35
- package/templates/marketing/payload/src/utilities/formatAuthors.ts.hbs +0 -24
- package/templates/marketing/payload/src/utilities/formatDateTime.ts.hbs +0 -13
- package/templates/marketing/payload/src/utilities/generateMeta.ts.hbs +0 -87
- package/templates/marketing/payload/src/utilities/generatePreviewPath.ts.hbs +0 -33
- package/templates/marketing/payload/src/utilities/getURL.ts.hbs +0 -26
- package/templates/marketing/payload/src/utilities/index.ts.hbs +0 -8
- package/templates/marketing/payload/src/utilities/mergeOpenGraph.ts.hbs +0 -26
- /package/templates/marketing/payload/src/access/{anyone.ts.hbs → anyone.ts} +0 -0
- /package/templates/marketing/payload/src/components/BeforeDashboard/SeedButton/{index.scss.hbs → index.scss} +0 -0
- /package/templates/marketing/payload/src/components/BeforeDashboard/{index.scss.hbs → index.scss} +0 -0
- /package/templates/marketing/payload/src/fields/{index.ts.hbs → index.ts} +0 -0
- /package/templates/marketing/payload/src/utilities/{canUseDOM.ts.hbs → canUseDOM.ts} +0 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import type { Block } from "payload"
|
|
2
|
+
|
|
3
|
+
import { link } from "@/fields/link"
|
|
4
|
+
|
|
5
|
+
export const PricingTable: Block = {
|
|
6
|
+
slug: "pricingTable",
|
|
7
|
+
interfaceName: "PricingTableBlock",
|
|
8
|
+
fields: [
|
|
9
|
+
{
|
|
10
|
+
name: "heading",
|
|
11
|
+
type: "text",
|
|
12
|
+
label: "Section Heading",
|
|
13
|
+
defaultValue: "Simple, Transparent Pricing",
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "subheading",
|
|
17
|
+
type: "textarea",
|
|
18
|
+
label: "Section Subheading",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: "useDynamicPricing",
|
|
22
|
+
type: "checkbox",
|
|
23
|
+
label: "Use Dynamic Pricing from Stripe",
|
|
24
|
+
defaultValue: true,
|
|
25
|
+
admin: {
|
|
26
|
+
description:
|
|
27
|
+
"When enabled, prices and features are fetched dynamically from Stripe Entitlements. CMS plans below are used as fallback and for CTA links.",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: "showComparisonTable",
|
|
32
|
+
type: "checkbox",
|
|
33
|
+
label: "Show Feature Comparison Table",
|
|
34
|
+
defaultValue: true,
|
|
35
|
+
admin: {
|
|
36
|
+
description:
|
|
37
|
+
"Display a full feature comparison table below the pricing cards (requires dynamic pricing)",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: "showViewAllLink",
|
|
42
|
+
type: "checkbox",
|
|
43
|
+
label: "Show 'View Full Comparison' Link",
|
|
44
|
+
defaultValue: false,
|
|
45
|
+
admin: {
|
|
46
|
+
description:
|
|
47
|
+
"Show a link to the /pricing page for full comparison (useful for home page where comparison table is hidden)",
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: "maxFeaturesOnCard",
|
|
52
|
+
type: "number",
|
|
53
|
+
label: "Max Features on Card",
|
|
54
|
+
defaultValue: 4,
|
|
55
|
+
admin: {
|
|
56
|
+
description: "Maximum number of features to show on each pricing card (default: 4)",
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "plans",
|
|
61
|
+
type: "array",
|
|
62
|
+
label: "Pricing Plans",
|
|
63
|
+
minRows: 1,
|
|
64
|
+
maxRows: 4,
|
|
65
|
+
admin: {
|
|
66
|
+
description:
|
|
67
|
+
"When using dynamic pricing, only the CTA links from these plans are used. Prices and features come from Stripe.",
|
|
68
|
+
},
|
|
69
|
+
fields: [
|
|
70
|
+
{
|
|
71
|
+
name: "name",
|
|
72
|
+
type: "text",
|
|
73
|
+
required: true,
|
|
74
|
+
label: "Plan Name",
|
|
75
|
+
admin: {
|
|
76
|
+
description: "Must match Stripe plan name (Free, Pro, Business) for CTA link mapping",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "price",
|
|
81
|
+
type: "text",
|
|
82
|
+
required: true,
|
|
83
|
+
label: "Price",
|
|
84
|
+
admin: {
|
|
85
|
+
description:
|
|
86
|
+
'e.g., "$29/mo" or "Custom" - Only used as fallback when dynamic pricing is disabled',
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "description",
|
|
91
|
+
type: "textarea",
|
|
92
|
+
label: "Plan Description",
|
|
93
|
+
admin: {
|
|
94
|
+
description: "Only used as fallback when dynamic pricing is disabled",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "featured",
|
|
99
|
+
type: "checkbox",
|
|
100
|
+
label: "Featured Plan",
|
|
101
|
+
defaultValue: false,
|
|
102
|
+
admin: {
|
|
103
|
+
description: "Only used as fallback when dynamic pricing is disabled",
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
name: "features",
|
|
108
|
+
type: "array",
|
|
109
|
+
label: "Features",
|
|
110
|
+
admin: {
|
|
111
|
+
description: "Only used as fallback when dynamic pricing is disabled",
|
|
112
|
+
},
|
|
113
|
+
fields: [
|
|
114
|
+
{
|
|
115
|
+
name: "feature",
|
|
116
|
+
type: "text",
|
|
117
|
+
required: true,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: "included",
|
|
121
|
+
type: "checkbox",
|
|
122
|
+
defaultValue: true,
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
link({
|
|
127
|
+
overrides: {
|
|
128
|
+
label: "CTA Button",
|
|
129
|
+
admin: {
|
|
130
|
+
description:
|
|
131
|
+
"The call-to-action button link - used for both dynamic and static pricing",
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
}),
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
labels: {
|
|
139
|
+
plural: "Pricing Tables",
|
|
140
|
+
singular: "Pricing Table",
|
|
141
|
+
},
|
|
142
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type React from "react"
|
|
2
|
+
|
|
3
|
+
import type { ProofBannerBlock as ProofBannerBlockProps } from "@/payload-types"
|
|
4
|
+
|
|
5
|
+
import { CMSLink } from "@/components/Link"
|
|
6
|
+
import { cn } from "@/utilities/ui"
|
|
7
|
+
|
|
8
|
+
export const ProofBannerBlock: React.FC<ProofBannerBlockProps> = ({
|
|
9
|
+
style = "centered",
|
|
10
|
+
headline,
|
|
11
|
+
subtext,
|
|
12
|
+
links,
|
|
13
|
+
}) => {
|
|
14
|
+
const isWithBackground = style === "withBackground"
|
|
15
|
+
const isMinimal = style === "minimal"
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<section
|
|
19
|
+
className={cn(
|
|
20
|
+
"py-16 md:py-24",
|
|
21
|
+
isWithBackground && "bg-primary text-primary-foreground",
|
|
22
|
+
isMinimal && "py-12",
|
|
23
|
+
)}
|
|
24
|
+
>
|
|
25
|
+
<div className="container">
|
|
26
|
+
<div className="text-center max-w-4xl mx-auto">
|
|
27
|
+
{headline && (
|
|
28
|
+
<h2
|
|
29
|
+
className={cn(
|
|
30
|
+
"font-bold mb-4",
|
|
31
|
+
isMinimal ? "text-2xl md:text-3xl" : "text-3xl md:text-4xl lg:text-5xl",
|
|
32
|
+
)}
|
|
33
|
+
>
|
|
34
|
+
{headline}
|
|
35
|
+
</h2>
|
|
36
|
+
)}
|
|
37
|
+
|
|
38
|
+
{subtext && (
|
|
39
|
+
<p
|
|
40
|
+
className={cn(
|
|
41
|
+
"text-lg md:text-xl mb-8",
|
|
42
|
+
isWithBackground ? "text-primary-foreground/80" : "text-muted-foreground",
|
|
43
|
+
)}
|
|
44
|
+
>
|
|
45
|
+
{subtext}
|
|
46
|
+
</p>
|
|
47
|
+
)}
|
|
48
|
+
|
|
49
|
+
{Array.isArray(links) && links.length > 0 && (
|
|
50
|
+
<div className="flex flex-wrap gap-4 justify-center">
|
|
51
|
+
{links.map(({ link }, i) => (
|
|
52
|
+
<CMSLink
|
|
53
|
+
key={i}
|
|
54
|
+
{...link}
|
|
55
|
+
size="lg"
|
|
56
|
+
appearance={isWithBackground && i === 0 ? "outline" : link.appearance}
|
|
57
|
+
/>
|
|
58
|
+
))}
|
|
59
|
+
</div>
|
|
60
|
+
)}
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</section>
|
|
64
|
+
)
|
|
65
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Block } from "payload"
|
|
2
|
+
|
|
3
|
+
import { linkGroup } from "../../fields/linkGroup"
|
|
4
|
+
|
|
5
|
+
export const ProofBanner: Block = {
|
|
6
|
+
slug: "proofBanner",
|
|
7
|
+
interfaceName: "ProofBannerBlock",
|
|
8
|
+
fields: [
|
|
9
|
+
{
|
|
10
|
+
name: "style",
|
|
11
|
+
type: "select",
|
|
12
|
+
defaultValue: "centered",
|
|
13
|
+
options: [
|
|
14
|
+
{ label: "Centered", value: "centered" },
|
|
15
|
+
{ label: "With Background", value: "withBackground" },
|
|
16
|
+
{ label: "Minimal", value: "minimal" },
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "headline",
|
|
21
|
+
type: "text",
|
|
22
|
+
required: true,
|
|
23
|
+
label: "Headline",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: "subtext",
|
|
27
|
+
type: "textarea",
|
|
28
|
+
label: "Supporting Text",
|
|
29
|
+
},
|
|
30
|
+
linkGroup({
|
|
31
|
+
appearances: ["default", "outline"],
|
|
32
|
+
overrides: {
|
|
33
|
+
maxRows: 2,
|
|
34
|
+
label: "CTA Buttons (optional)",
|
|
35
|
+
},
|
|
36
|
+
}),
|
|
37
|
+
],
|
|
38
|
+
labels: {
|
|
39
|
+
plural: "Proof Banners",
|
|
40
|
+
singular: "Proof Banner",
|
|
41
|
+
},
|
|
42
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import RichText from "@/components/RichText"
|
|
2
|
+
import clsx from "clsx"
|
|
3
|
+
import type React from "react"
|
|
4
|
+
|
|
5
|
+
import type { Post } from "@/payload-types"
|
|
6
|
+
|
|
7
|
+
import type { DefaultTypedEditorState } from "@payloadcms/richtext-lexical"
|
|
8
|
+
import { Card } from "../../components/Card"
|
|
9
|
+
|
|
10
|
+
export type RelatedPostsProps = {
|
|
11
|
+
className?: string
|
|
12
|
+
docs?: Post[]
|
|
13
|
+
introContent?: DefaultTypedEditorState
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const RelatedPosts: React.FC<RelatedPostsProps> = (props) => {
|
|
17
|
+
const { className, docs, introContent } = props
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<div className={clsx("lg:container", className)}>
|
|
21
|
+
{introContent && <RichText data={introContent} enableGutter={false} />}
|
|
22
|
+
|
|
23
|
+
<div className="grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch">
|
|
24
|
+
{docs?.map((doc, index) => {
|
|
25
|
+
if (typeof doc === "string") return null
|
|
26
|
+
|
|
27
|
+
return <Card key={index} doc={doc} relationTo="posts" showCategories />
|
|
28
|
+
})}
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type React from "react"
|
|
2
|
+
import { Fragment } from "react"
|
|
3
|
+
|
|
4
|
+
import type { Page } from "@/payload-types"
|
|
5
|
+
|
|
6
|
+
import { ArchiveBlock } from "@/blocks/ArchiveBlock/Component"
|
|
7
|
+
import { BentoFeaturesBlock } from "@/blocks/BentoFeatures/Component"
|
|
8
|
+
import { CallToActionBlock } from "@/blocks/CallToAction/Component"
|
|
9
|
+
import { ContentBlock } from "@/blocks/Content/Component"
|
|
10
|
+
import { FAQAccordionBlock } from "@/blocks/FAQAccordion/Component"
|
|
11
|
+
import { FeatureGridBlock } from "@/blocks/FeatureGrid/Component"
|
|
12
|
+
import { FeatureShowcaseBlock } from "@/blocks/FeatureShowcase/Component"
|
|
13
|
+
import { FinalCTABlock } from "@/blocks/FinalCTA/Component"
|
|
14
|
+
import { FormBlock } from "@/blocks/Form/Component"
|
|
15
|
+
import { HowItWorksBlock } from "@/blocks/HowItWorks/Component"
|
|
16
|
+
import { IndustryTabsBlock } from "@/blocks/IndustryTabs/Component"
|
|
17
|
+
import { LogoBannerBlock } from "@/blocks/LogoBanner/Component"
|
|
18
|
+
import { MediaBlock } from "@/blocks/MediaBlock/Component"
|
|
19
|
+
import { PersonasBlock } from "@/blocks/Personas/Component"
|
|
20
|
+
import { PricingTableBlock } from "@/blocks/PricingTable/Component"
|
|
21
|
+
import { ProofBannerBlock } from "@/blocks/ProofBanner/Component"
|
|
22
|
+
import { TestimonialsGridBlock } from "@/blocks/TestimonialsGrid/Component"
|
|
23
|
+
import { TrustColumnsBlock } from "@/blocks/TrustColumns/Component"
|
|
24
|
+
|
|
25
|
+
const blockComponents = {
|
|
26
|
+
archive: ArchiveBlock,
|
|
27
|
+
bentoFeatures: BentoFeaturesBlock,
|
|
28
|
+
content: ContentBlock,
|
|
29
|
+
cta: CallToActionBlock,
|
|
30
|
+
faqAccordion: FAQAccordionBlock,
|
|
31
|
+
featureGrid: FeatureGridBlock,
|
|
32
|
+
featureShowcase: FeatureShowcaseBlock,
|
|
33
|
+
finalCta: FinalCTABlock,
|
|
34
|
+
formBlock: FormBlock,
|
|
35
|
+
howItWorks: HowItWorksBlock,
|
|
36
|
+
industryTabs: IndustryTabsBlock,
|
|
37
|
+
logoBanner: LogoBannerBlock,
|
|
38
|
+
mediaBlock: MediaBlock,
|
|
39
|
+
personas: PersonasBlock,
|
|
40
|
+
pricingTable: PricingTableBlock,
|
|
41
|
+
proofBanner: ProofBannerBlock,
|
|
42
|
+
testimonialsGrid: TestimonialsGridBlock,
|
|
43
|
+
trustColumns: TrustColumnsBlock,
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Blocks that handle their own full-width styling (e.g., background colors)
|
|
47
|
+
const fullWidthBlocks = [
|
|
48
|
+
"proofBanner",
|
|
49
|
+
"howItWorks",
|
|
50
|
+
"logoBanner",
|
|
51
|
+
"industryTabs",
|
|
52
|
+
"testimonialsGrid",
|
|
53
|
+
"trustColumns",
|
|
54
|
+
"finalCta",
|
|
55
|
+
"bentoFeatures",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
export const RenderBlocks: React.FC<{
|
|
59
|
+
blocks: Page["layout"][0][]
|
|
60
|
+
}> = (props) => {
|
|
61
|
+
const { blocks } = props
|
|
62
|
+
|
|
63
|
+
const hasBlocks = blocks && Array.isArray(blocks) && blocks.length > 0
|
|
64
|
+
|
|
65
|
+
if (hasBlocks) {
|
|
66
|
+
return (
|
|
67
|
+
<Fragment>
|
|
68
|
+
{blocks.map((block, index) => {
|
|
69
|
+
const { blockType } = block
|
|
70
|
+
|
|
71
|
+
if (blockType && blockType in blockComponents) {
|
|
72
|
+
const Block = blockComponents[blockType]
|
|
73
|
+
const isFullWidth = fullWidthBlocks.includes(blockType)
|
|
74
|
+
|
|
75
|
+
if (Block) {
|
|
76
|
+
return (
|
|
77
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: Blocks don't have stable IDs
|
|
78
|
+
<div className={isFullWidth ? "my-8" : "my-16 first:mt-0"} key={index}>
|
|
79
|
+
{/* @ts-expect-error there may be some mismatch between the expected types here */}
|
|
80
|
+
<Block {...block} disableInnerContainer />
|
|
81
|
+
</div>
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return null
|
|
86
|
+
})}
|
|
87
|
+
</Fragment>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return null
|
|
92
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import type React from "react"
|
|
2
|
+
|
|
3
|
+
import type { TestimonialsGridBlock as TestimonialsGridBlockProps } from "@/payload-types"
|
|
4
|
+
|
|
5
|
+
import { Media } from "@/components/Media"
|
|
6
|
+
import { cn } from "@/utilities/ui"
|
|
7
|
+
|
|
8
|
+
export const TestimonialsGridBlock: React.FC<TestimonialsGridBlockProps> = ({
|
|
9
|
+
heading,
|
|
10
|
+
subheading,
|
|
11
|
+
testimonials,
|
|
12
|
+
}) => {
|
|
13
|
+
if (!Array.isArray(testimonials) || testimonials.length === 0) {
|
|
14
|
+
return null
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<section className="py-20 md:py-28">
|
|
19
|
+
<div className="container">
|
|
20
|
+
{/* Header */}
|
|
21
|
+
{(heading || subheading) && (
|
|
22
|
+
<div className="mb-12">
|
|
23
|
+
{heading && <h2 className="text-3xl md:text-4xl font-bold mb-4">{heading}</h2>}
|
|
24
|
+
{subheading && <p className="text-lg text-muted-foreground max-w-2xl">{subheading}</p>}
|
|
25
|
+
</div>
|
|
26
|
+
)}
|
|
27
|
+
|
|
28
|
+
{/* Testimonials Grid */}
|
|
29
|
+
<div
|
|
30
|
+
className={cn(
|
|
31
|
+
"grid gap-6",
|
|
32
|
+
testimonials.length === 1 && "grid-cols-1",
|
|
33
|
+
testimonials.length === 2 && "grid-cols-1 md:grid-cols-2",
|
|
34
|
+
testimonials.length >= 3 && "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
|
|
35
|
+
)}
|
|
36
|
+
>
|
|
37
|
+
{testimonials.map((testimonial, index) => (
|
|
38
|
+
<div
|
|
39
|
+
key={testimonial.id || `testimonial-${index}`}
|
|
40
|
+
className="group relative overflow-hidden rounded-2xl aspect-[4/5] md:aspect-[3/4]"
|
|
41
|
+
>
|
|
42
|
+
{/* Background Image or Gradient */}
|
|
43
|
+
{testimonial.image && typeof testimonial.image === "object" ? (
|
|
44
|
+
<div className="absolute inset-0 overflow-hidden">
|
|
45
|
+
<Media
|
|
46
|
+
resource={testimonial.image}
|
|
47
|
+
imgClassName="w-full h-full object-cover"
|
|
48
|
+
fill
|
|
49
|
+
size="(max-width: 768px) 50vw, (max-width: 1024px) 33vw, 25vw"
|
|
50
|
+
/>
|
|
51
|
+
</div>
|
|
52
|
+
) : (
|
|
53
|
+
<div
|
|
54
|
+
className={cn(
|
|
55
|
+
"absolute inset-0 bg-gradient-to-br",
|
|
56
|
+
index % 3 === 0 && "from-blue-100 to-blue-200",
|
|
57
|
+
index % 3 === 1 && "from-emerald-100 to-emerald-200",
|
|
58
|
+
index % 3 === 2 && "from-amber-100 to-amber-200",
|
|
59
|
+
)}
|
|
60
|
+
/>
|
|
61
|
+
)}
|
|
62
|
+
|
|
63
|
+
{/* Gradient Overlay */}
|
|
64
|
+
<div className="absolute inset-0 bg-gradient-to-t from-black/70 via-black/20 to-transparent" />
|
|
65
|
+
|
|
66
|
+
{/* Content */}
|
|
67
|
+
<div className="absolute inset-0 flex flex-col justify-end p-6">
|
|
68
|
+
{/* Stat Badge */}
|
|
69
|
+
<div className="mb-4">
|
|
70
|
+
<span className="text-4xl md:text-5xl lg:text-6xl font-bold text-white leading-none">
|
|
71
|
+
{testimonial.stat}
|
|
72
|
+
</span>
|
|
73
|
+
</div>
|
|
74
|
+
|
|
75
|
+
{/* Stat Label */}
|
|
76
|
+
<p className="text-lg md:text-xl font-semibold text-white mb-3">
|
|
77
|
+
{testimonial.statLabel}
|
|
78
|
+
</p>
|
|
79
|
+
|
|
80
|
+
{/* Quote (if provided) */}
|
|
81
|
+
{testimonial.quote && (
|
|
82
|
+
<p className="text-sm text-white/80 mb-3 line-clamp-3">
|
|
83
|
+
“{testimonial.quote}”
|
|
84
|
+
</p>
|
|
85
|
+
)}
|
|
86
|
+
|
|
87
|
+
{/* Author */}
|
|
88
|
+
{(testimonial.author || testimonial.company) && (
|
|
89
|
+
<div className="flex items-center gap-2 text-sm text-white/70">
|
|
90
|
+
{testimonial.author && <span>{testimonial.author}</span>}
|
|
91
|
+
{testimonial.author && testimonial.company && <span>•</span>}
|
|
92
|
+
{testimonial.company && (
|
|
93
|
+
<span className="font-medium">{testimonial.company}</span>
|
|
94
|
+
)}
|
|
95
|
+
</div>
|
|
96
|
+
)}
|
|
97
|
+
</div>
|
|
98
|
+
|
|
99
|
+
{/* Hover Effect */}
|
|
100
|
+
<div className="absolute inset-0 bg-primary/10 opacity-0 group-hover:opacity-100 transition-opacity duration-300" />
|
|
101
|
+
</div>
|
|
102
|
+
))}
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</section>
|
|
106
|
+
)
|
|
107
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { Block } from "payload"
|
|
2
|
+
|
|
3
|
+
export const TestimonialsGrid: Block = {
|
|
4
|
+
slug: "testimonialsGrid",
|
|
5
|
+
interfaceName: "TestimonialsGridBlock",
|
|
6
|
+
fields: [
|
|
7
|
+
{
|
|
8
|
+
name: "heading",
|
|
9
|
+
type: "text",
|
|
10
|
+
label: "Section Heading",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: "subheading",
|
|
14
|
+
type: "textarea",
|
|
15
|
+
label: "Section Subheading",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "testimonials",
|
|
19
|
+
type: "array",
|
|
20
|
+
label: "Testimonials",
|
|
21
|
+
minRows: 1,
|
|
22
|
+
maxRows: 6,
|
|
23
|
+
fields: [
|
|
24
|
+
{
|
|
25
|
+
name: "image",
|
|
26
|
+
type: "upload",
|
|
27
|
+
relationTo: "media",
|
|
28
|
+
label: "Background Image",
|
|
29
|
+
admin: {
|
|
30
|
+
description: "Stock photo or image for the testimonial card background",
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: "stat",
|
|
35
|
+
type: "text",
|
|
36
|
+
label: "Stat Number",
|
|
37
|
+
required: true,
|
|
38
|
+
admin: {
|
|
39
|
+
description: 'e.g., "94.4%" or "+300%"',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "statLabel",
|
|
44
|
+
type: "text",
|
|
45
|
+
label: "Stat Label",
|
|
46
|
+
required: true,
|
|
47
|
+
admin: {
|
|
48
|
+
description: 'e.g., "SMS deliverability improved"',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "quote",
|
|
53
|
+
type: "textarea",
|
|
54
|
+
label: "Quote",
|
|
55
|
+
admin: {
|
|
56
|
+
description: "Optional testimonial quote",
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: "author",
|
|
61
|
+
type: "text",
|
|
62
|
+
label: "Author Name",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "company",
|
|
66
|
+
type: "text",
|
|
67
|
+
label: "Company Name",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
labels: {
|
|
73
|
+
plural: "Testimonials Grids",
|
|
74
|
+
singular: "Testimonials Grid",
|
|
75
|
+
},
|
|
76
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Award,
|
|
3
|
+
Check,
|
|
4
|
+
Cloud,
|
|
5
|
+
Database,
|
|
6
|
+
Globe,
|
|
7
|
+
Lock,
|
|
8
|
+
type LucideIcon,
|
|
9
|
+
Plug,
|
|
10
|
+
Server,
|
|
11
|
+
Shield,
|
|
12
|
+
Zap,
|
|
13
|
+
} from "lucide-react"
|
|
14
|
+
import type React from "react"
|
|
15
|
+
|
|
16
|
+
import type { TrustColumnsBlock as TrustColumnsBlockProps } from "@/payload-types"
|
|
17
|
+
|
|
18
|
+
const iconMap: Record<string, LucideIcon> = {
|
|
19
|
+
check: Check,
|
|
20
|
+
shield: Shield,
|
|
21
|
+
lock: Lock,
|
|
22
|
+
globe: Globe,
|
|
23
|
+
zap: Zap,
|
|
24
|
+
server: Server,
|
|
25
|
+
cloud: Cloud,
|
|
26
|
+
database: Database,
|
|
27
|
+
plug: Plug,
|
|
28
|
+
award: Award,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const TrustColumnsBlock: React.FC<TrustColumnsBlockProps> = ({ columns }) => {
|
|
32
|
+
if (!Array.isArray(columns) || columns.length === 0) {
|
|
33
|
+
return null
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<section className="py-20 md:py-28 bg-muted/30">
|
|
38
|
+
<div className="container">
|
|
39
|
+
<div className="grid md:grid-cols-2 gap-12 lg:gap-20">
|
|
40
|
+
{columns.map((column, columnIndex) => (
|
|
41
|
+
<div key={columnIndex}>
|
|
42
|
+
{/* Label */}
|
|
43
|
+
{column.label && (
|
|
44
|
+
<span className="inline-block text-sm font-medium text-secondary mb-3 tracking-wide">
|
|
45
|
+
{column.label}
|
|
46
|
+
</span>
|
|
47
|
+
)}
|
|
48
|
+
|
|
49
|
+
{/* Heading */}
|
|
50
|
+
{column.heading && (
|
|
51
|
+
<h2 className="text-2xl md:text-3xl font-bold mb-4">{column.heading}</h2>
|
|
52
|
+
)}
|
|
53
|
+
|
|
54
|
+
{/* Description */}
|
|
55
|
+
{column.description && (
|
|
56
|
+
<p className="text-muted-foreground mb-6">{column.description}</p>
|
|
57
|
+
)}
|
|
58
|
+
|
|
59
|
+
{/* Feature Items */}
|
|
60
|
+
{Array.isArray(column.items) && column.items.length > 0 && (
|
|
61
|
+
<ul className="space-y-4">
|
|
62
|
+
{column.items.map((item, itemIndex) => {
|
|
63
|
+
const iconKey = item.icon || "check"
|
|
64
|
+
const Icon = iconMap[iconKey] || Check
|
|
65
|
+
|
|
66
|
+
return (
|
|
67
|
+
<li key={itemIndex} className="flex items-center gap-3">
|
|
68
|
+
<div className="w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0">
|
|
69
|
+
<Icon className="w-4 h-4 text-primary" />
|
|
70
|
+
</div>
|
|
71
|
+
<span className="text-foreground font-medium">{item.text}</span>
|
|
72
|
+
</li>
|
|
73
|
+
)
|
|
74
|
+
})}
|
|
75
|
+
</ul>
|
|
76
|
+
)}
|
|
77
|
+
</div>
|
|
78
|
+
))}
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</section>
|
|
82
|
+
)
|
|
83
|
+
}
|