This is a standalone page builder, not a WordPress plugin. Do not use WordPress, Gutenberg, PHP, or WordPress dependencies.

Keep the implementation simple, organized, and easy to maintain. Do not add external integrations, AI features, email services, or marketing services.

1. Review the Existing Project#

Before writing code:

  • Review the current page builder, project structure, database, and authentication.
  • Identify the components and files that need to be replaced.
  • Reuse existing project tools where practical.
  • Preserve existing content and unrelated features.
  • Remove old builder code only after the replacement works.

2. Build the Editor#

Create a page-builder interface with three main areas:

  • Left panel: searchable list of components users can add.
  • Center canvas: preview of the page being edited.
  • Right panel: settings for the selected component.

Allow users to:

  • Add components by clicking or dragging them onto the page.
  • Select, edit, duplicate, reorder, and delete components.
  • Place components inside rows, columns, sections, accordion panels, and tabs.
  • View a component tree to navigate nested content.
  • Undo and redo changes.
  • Preview desktop, tablet, and mobile layouts.
  • Save drafts, preview pages, and publish changes.

Show clear loading, saving, success, and error messages.

3. Build These Components#

Each component should have useful default settings and simple editing controls.

Component
  • What it should do
  • Accordion
  • Show expandable panels with editable titles and nested content.
  • Button
  • Add one button or a group of buttons with text, links, optional icons, and hover styles.
  • Form

4. Add Shared Styling Controls#

Use the same controls across components wherever possible.

Include:

  • Text and background colors.
  • Font family, size, weight, line height, and alignment.
  • Padding, margins, and gaps.
  • Width, height, and maximum width.
  • Borders, rounded corners, and shadows.
  • Background images, gradients, and overlays.
  • Default and hover styles where relevant.
  • Desktop, tablet, and mobile settings.
  • Options to show or hide components on different screen sizes.