feat: complete POI Clean House website with Karcher theme, blog, interactive animations and full CMS configuration
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
import type { CollectionConfig } from 'payload'
|
||||
|
||||
export const Media: CollectionConfig = {
|
||||
slug: 'media',
|
||||
access: {
|
||||
read: () => true,
|
||||
},
|
||||
upload: {
|
||||
staticDir: 'media',
|
||||
adminThumbnail: 'thumbnail',
|
||||
imageSizes: [
|
||||
{
|
||||
name: 'thumbnail',
|
||||
width: 300,
|
||||
height: 300,
|
||||
position: 'centre',
|
||||
},
|
||||
{
|
||||
name: 'card',
|
||||
width: 768,
|
||||
height: 512,
|
||||
position: 'centre',
|
||||
},
|
||||
{
|
||||
name: 'hero',
|
||||
width: 1920,
|
||||
height: 1080,
|
||||
position: 'centre',
|
||||
},
|
||||
],
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: 'alt',
|
||||
type: 'text',
|
||||
required: true,
|
||||
localized: true,
|
||||
admin: {
|
||||
description: 'Opis alternatywny dla dostępności (SEO i czytniki ekranu)',
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
import type { CollectionConfig } from 'payload'
|
||||
import { buildSlugField } from '@intecion/ipal-kit'
|
||||
import { HeroBlock } from '@/blocks/Hero/config'
|
||||
import { ProblemSolutionBlock } from '@/blocks/ProblemSolution/config'
|
||||
import { ProcessStepsBlock } from '@/blocks/ProcessSteps/config'
|
||||
import { BeforeAfterGalleryBlock } from '@/blocks/BeforeAfterGallery/config'
|
||||
import { PricingTableBlock } from '@/blocks/PricingTable/config'
|
||||
import { TechEquipmentBlock } from '@/blocks/TechEquipment/config'
|
||||
import { FaqAccordionBlock } from '@/blocks/FaqAccordion/config'
|
||||
import { ReviewsBlock } from '@/blocks/Reviews/config'
|
||||
import { FormBlock } from '@/blocks/Form/config'
|
||||
import { ContentBlock } from '@/blocks/Content/config'
|
||||
import { BlogListBlock } from '@/blocks/BlogList/config'
|
||||
|
||||
export const Pages: CollectionConfig = {
|
||||
slug: 'pages',
|
||||
admin: {
|
||||
useAsTitle: 'title',
|
||||
defaultColumns: ['title', 'slug', 'updatedAt'],
|
||||
},
|
||||
access: {
|
||||
read: () => true,
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: 'title',
|
||||
type: 'text',
|
||||
required: true,
|
||||
localized: true,
|
||||
},
|
||||
buildSlugField({ from: 'title' }),
|
||||
{
|
||||
name: 'layout',
|
||||
type: 'blocks',
|
||||
blocks: [
|
||||
HeroBlock,
|
||||
ProblemSolutionBlock,
|
||||
ProcessStepsBlock,
|
||||
BeforeAfterGalleryBlock,
|
||||
PricingTableBlock,
|
||||
TechEquipmentBlock,
|
||||
FaqAccordionBlock,
|
||||
ReviewsBlock,
|
||||
FormBlock,
|
||||
ContentBlock,
|
||||
BlogListBlock,
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import type { CollectionConfig } from 'payload'
|
||||
|
||||
export const Users: CollectionConfig = {
|
||||
slug: 'users',
|
||||
auth: true,
|
||||
admin: {
|
||||
useAsTitle: 'email',
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: 'name',
|
||||
type: 'text',
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user