- HeroSection: 3-col layout (copy | concentric circles+dashboard | display headline) - 'use client' + framer-motion entrance animations (slide in from sides, scale centre) - DashboardPreview inline component (compact portal mockup) - Two floating stat mini-cards (Avg Tax Saved, Response Time) - Mobile: stacked layout, right headline column hidden, H1 in left column - ContainerScroll: simplified — removed 72rem scroll container and scroll transforms; now plain layout wrapper with CSS fadeInUp entrance - Header: logo size increased h-10 → h-13 (40px → 52px) - fix: escape apostrophes in ProcessSection, SolutionSection, TestimonialsSection - fix: remove unused customSize param from SpotlightCard - docs: update CONTEXT_HANDOVER.md with session 4 changes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
72 lines
1.9 KiB
TypeScript
72 lines
1.9 KiB
TypeScript
import path from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
import { buildConfig } from 'payload';
|
|
import { postgresAdapter } from '@payloadcms/db-postgres';
|
|
import { lexicalEditor } from '@payloadcms/richtext-lexical';
|
|
import { formBuilderPlugin } from '@payloadcms/plugin-form-builder';
|
|
|
|
// Collections
|
|
import { Users } from './payload/collections/Users';
|
|
import { Media } from './payload/collections/Media';
|
|
import { Services } from './payload/collections/Services';
|
|
import { Categories } from './payload/collections/Categories';
|
|
import { Posts } from './payload/collections/Posts';
|
|
import { TeamMembers } from './payload/collections/TeamMembers';
|
|
import { Testimonials } from './payload/collections/Testimonials';
|
|
import { FAQs } from './payload/collections/FAQs';
|
|
|
|
// Globals
|
|
import { Navigation } from './payload/globals/Navigation';
|
|
import { Footer } from './payload/globals/Footer';
|
|
import { SiteSettings } from './payload/globals/SiteSettings';
|
|
|
|
const filename = fileURLToPath(import.meta.url);
|
|
const dirname = path.dirname(filename);
|
|
|
|
export default buildConfig({
|
|
serverURL: process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000',
|
|
|
|
secret: process.env.PAYLOAD_SECRET || 'dev-secret-change-in-production',
|
|
|
|
admin: {
|
|
user: 'users',
|
|
meta: {
|
|
titleSuffix: '— Axil Accountants CMS',
|
|
},
|
|
},
|
|
|
|
editor: lexicalEditor(),
|
|
|
|
db: postgresAdapter({
|
|
pool: {
|
|
connectionString: process.env.DATABASE_URI,
|
|
},
|
|
}),
|
|
|
|
collections: [Users, Media, Services, Categories, Posts, TeamMembers, Testimonials, FAQs],
|
|
|
|
globals: [Navigation, Footer, SiteSettings],
|
|
|
|
upload: {
|
|
limits: {
|
|
fileSize: 10_000_000, // 10MB
|
|
},
|
|
},
|
|
|
|
plugins: [
|
|
formBuilderPlugin({
|
|
fields: {
|
|
text: true,
|
|
email: true,
|
|
select: true,
|
|
checkbox: true,
|
|
textarea: true,
|
|
},
|
|
}),
|
|
],
|
|
|
|
typescript: {
|
|
outputFile: path.resolve(dirname, 'payload-types.ts'),
|
|
},
|
|
});
|