All projects

Okeilo

Real-estate crowdfunding for Devehope: investors pick a development project, onboard and sign the paperwork — all in one Next.js + Payload CMS platform.

Okeilo Hero

Who it is for

Retail investors comparing development projects — and the Devehope team that keeps those projects up to date.

My contribution

  • CMS-driven page sections the client composes landing and project pages from
  • Shared UI component library on HeroUI and Tailwind
  • Payload collections and PostgreSQL migrations on the content side
  • Czech/English localisation with next-intl and localised CMS fields

Collaboration

A team of three on one codebase. I joined a platform that was already live, took over the CMS-driven presentation layer and the shared component library, and let the code that was already there set the conventions.

The challenge

One product, two personalities: a showroom that has to sell an investment, and a back office that has to handle registration, identity checks and contracts — in Czech and English.

The solution

Payload CMS owns the content, Prisma owns the investor domain, both on PostgreSQL. Presentation pages are built from CMS blocks so the client ships a new project without a deploy; PDFs are rendered with Puppeteer and files land in S3.

Results & impact

  • The client publishes new investment projects without a developer in the loop.

  • One codebase runs the public showroom and the investor zone, in two languages.

Pages the client can rebuild

Every section on Okeilo is a Payload block with typed, localised fields. New project? Add blocks, hit publish — no pull request involved.

blocks/ProjectHighlight/config.tsIllustrative example
// Illustrative — the shape of a CMS-driven section, not project code.
import type { Block } from "payload";

export const ProjectHighlight: Block = {
  slug: "projectHighlight",
  interfaceName: "ProjectHighlightBlock",
  fields: [
    { name: "title", type: "text", required: true, localized: true },
    { name: "body", type: "richText", localized: true },
    {
      name: "metrics",
      type: "array",
      maxRows: 3,
      fields: [
        { name: "label", type: "text", required: true, localized: true },
        // Numbers don't get translated, so they stay out of the locale.
        { name: "value", type: "text", required: true },
      ],
    },
    { name: "image", type: "upload", relationTo: "media" },
  ],
};

One renderer to rule them all

A page comes out of the CMS as a list of blocks; a single map turns each type into a component. The interesting edge case is the block the CMS knows about but this deploy doesn't — skip it, don't crash.

components/RenderBlocks.tsxIllustrative example
// Illustrative — one renderer, every block.
const blocks = {
  projectHighlight: ProjectHighlight,
  investorSteps: InvestorSteps,
  documentList: DocumentList,
} as const;

export function RenderBlocks({ layout }: { layout: LayoutBlock[] }) {
  return layout.map((block, i) => {
    const Component = blocks[block.blockType as keyof typeof blocks];
    // CMS ahead of the deploy? Skip the unknown block, keep the page alive.
    if (!Component) return null;
    return <Component key={block.id ?? i} {...block} />;
  });
}

Key decisions

Pages as data, not as code

Investment projects change weekly. As Payload blocks they're an editorial task instead of a release — at the cost of a strict field contract that every rename has to migrate.

Client copy in the CMS, UI strings in message files

Editors shouldn't need the repo to fix a contract clause, and developers shouldn't need the admin to rename a button.

What I learned

Joining a mature codebase is 80 % reading. Finding how the team already solved a similar screen beat writing a clever new one every time.