Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
495 changes: 495 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"payload": "3.85.1",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-player": "^3.4.0",
"sanitize-html": "^2.17.5",
"sass": "^1.101.0",
"sharp": "^0.35.2",
Expand Down
54 changes: 27 additions & 27 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>http://localhost:3000</loc><lastmod>2026-07-01T07:11:35.694Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority><xhtml:link rel="alternate" hreflang="en" href="http://localhost:3000/en"/><xhtml:link rel="alternate" hreflang="de" href="http://localhost:3000/de"/></url>
<url><loc>http://localhost:3000/en</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/en/about-us</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/actions</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/blog</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/community-edition</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/contact</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/enterprise-edition</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/features</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/jobs</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/legal-notice</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/privacy</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/subscription</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/terms</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/de/about-us</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/actions</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/blog</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/community-edition</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/contact</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/enterprise-edition</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/features</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/jobs</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/legal-notice</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/privacy</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/subscription</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/terms</loc><lastmod>2026-07-01T07:11:35.695Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000</loc><lastmod>2026-07-03T11:35:32.670Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority><xhtml:link rel="alternate" hreflang="en" href="http://localhost:3000/en"/><xhtml:link rel="alternate" hreflang="de" href="http://localhost:3000/de"/></url>
<url><loc>http://localhost:3000/en</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/en/about-us</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/actions</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/blog</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/community-edition</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/contact</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/enterprise-edition</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/features</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/jobs</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/legal-notice</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/privacy</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/subscription</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/en/terms</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
<url><loc>http://localhost:3000/de/about-us</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/actions</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/blog</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/community-edition</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/contact</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/enterprise-edition</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/features</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/jobs</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/legal-notice</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/privacy</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/subscription</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
<url><loc>http://localhost:3000/de/terms</loc><lastmod>2026-07-03T11:35:32.671Z</lastmod><changefreq>weekly</changefreq><priority>0.7</priority></url>
</urlset>
Empty file.
65 changes: 65 additions & 0 deletions src/blocks/BlogPreviewBlock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
import type { Block } from "payload"

export const BlogPreviewBlock: Block = {
slug: "blogPreview",
labels: {
singular: "Blog Preview",
plural: "Blog Previews",
},
fields: [
{
type: "collapsible",
label: "Section",
fields: [
{
name: "sectionHeading",
label: "Section Heading",
type: "text",
required: false,
localized: true,
},
{
name: "sectionLayout",
label: "Section Layout",
type: "select",
required: true,
defaultValue: "imageCenter",
options: [
{
label: "Image center",
value: "imageCenter",
},
{
label: "Image left",
value: "imageLeft",
},
{
label: "Image right",
value: "imageRight",
},
],
},
{
name: "sectionDescription",
label: "Section Description",
type: "textarea",
required: false,
localized: true,
},
],
},
{
name: "blog",
label: "Blog",
type: "relationship",
relationTo: "blog",
required: true,
},
{
name: "showBorder",
label: "Show Border",
type: "checkbox",
defaultValue: false,
},
],
}
52 changes: 52 additions & 0 deletions src/blocks/OffsetCardsBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,27 @@ export const OffsetCardsBlock: Block = {
},
],
},
{
name: "cardPlacement",
label: "Card Placement",
type: "select",
required: true,
defaultValue: "alternate",
options: [
{
label: "Alternate",
value: "alternate",
},
{
label: "Right",
value: "right",
},
{
label: "Left",
value: "left",
},
],
},
{
name: "sectionDescription",
label: "Section Description",
Expand Down Expand Up @@ -93,6 +114,37 @@ export const OffsetCardsBlock: Block = {
relationTo: "media",
required: false,
},
{
name: "showImageBorder",
label: "Show Image Border",
type: "checkbox",
defaultValue: true,
},
{
name: "mask",
label: "Image Mask",
type: "select",
hasMany: true,
required: false,
options: [
{
label: "Top",
value: "top",
},
{
label: "Right",
value: "right",
},
{
label: "Bottom",
value: "bottom",
},
{
label: "Left",
value: "left",
},
],
},
{
name: "bulletPoints",
label: "Bullet Points",
Expand Down
148 changes: 148 additions & 0 deletions src/blocks/VideoBlock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
import type { Block } from "payload"

function getSourceType(siblingData: unknown) {
if (!siblingData || typeof siblingData !== "object") return undefined
return "sourceType" in siblingData ? siblingData.sourceType : undefined
}

export const VideoBlock: Block = {
slug: "video",
labels: {
singular: "Video",
plural: "Video Blocks",
},
fields: [
{
type: "collapsible",
label: "Section",
fields: [
{
name: "sectionHeading",
label: "Section Heading",
type: "text",
required: false,
localized: true,
},
{
name: "sectionDescription",
label: "Section Description",
type: "textarea",
required: false,
localized: true,
},
{
name: "sectionLinkButton",
label: "Section Link Button",
type: "group",
fields: [
{
name: "label",
type: "text",
required: false,
localized: true,
},
{
name: "url",
type: "text",
required: false,
},
],
},
],
},
{
name: "sourceType",
label: "Video Source",
type: "select",
required: true,
defaultValue: "url",
options: [
{
label: "URL",
value: "url",
},
{
label: "Media",
value: "media",
},
],
},
{
name: "videoUrl",
label: "Video URL",
type: "text",
admin: {
condition: (_, siblingData) => siblingData.sourceType === "url",
},
validate: (value: string | null | undefined, { siblingData }: { siblingData: unknown }) => {
if (getSourceType(siblingData) !== "url") return true
return value?.trim() ? true : "A video URL is required."
},
},
{
name: "video",
label: "Video Media",
type: "upload",
relationTo: "media",
filterOptions: {
mimeType: {
contains: "video/",
},
},
admin: {
condition: (_, siblingData) => siblingData.sourceType === "media",
},
validate: (value: unknown, { siblingData }: { siblingData: unknown }) => {
if (getSourceType(siblingData) !== "media") return true
return value ? true : "A video media file is required."
},
},
{
name: "poster",
label: "Poster Image",
type: "upload",
relationTo: "media",
filterOptions: {
mimeType: {
contains: "image/",
},
},
required: false,
},
{
type: "row",
fields: [
{
name: "controls",
label: "Show Controls",
type: "checkbox",
defaultValue: true,
},
{
name: "autoPlay",
label: "Autoplay",
type: "checkbox",
defaultValue: false,
},
{
name: "muted",
label: "Muted",
type: "checkbox",
defaultValue: false,
},
{
name: "loop",
label: "Loop",
type: "checkbox",
defaultValue: false,
},
{
name: "playsInline",
label: "Play Inline",
type: "checkbox",
defaultValue: true,
},
],
},
],
}
4 changes: 4 additions & 0 deletions src/collections/pages.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ActionBlock } from "@/blocks/ActionBlock"
import { SwipeCardBlock } from "@/blocks/SwipeCardBlock"
import { BlogBlock } from "../blocks/BlogBlock"
import { BlogPreviewBlock } from "../blocks/BlogPreviewBlock"
import { BrandBlock } from "../blocks/BrandBlock"
import { CardRowBlock } from "../blocks/CardRowBlock"
import { ContactBlock } from "../blocks/ContactBlock"
Expand All @@ -16,6 +17,7 @@ import { RoadmapBlock } from "../blocks/RoadmapBlock"
import { ScrollCardBlock } from "../blocks/ScrollCardBlock"
import type { CollectionConfig } from "payload"
import { StandaloneBlock } from "@/blocks/StandaloneBlock"
import { VideoBlock } from "@/blocks/VideoBlock"

export const Pages: CollectionConfig = {
slug: "pages",
Expand Down Expand Up @@ -74,13 +76,15 @@ export const Pages: CollectionConfig = {
CtaBlock,
JobsBlock,
BlogBlock,
BlogPreviewBlock,
ActionBlock,
MarkdownBlock,
ContactBlock,
CardRowBlock,
RoadmapBlock,
ScrollCardBlock,
StandaloneBlock,
VideoBlock,
],
required: false,
localized: true,
Expand Down
Loading