Marketing pages

Docs

A marketing page is a home, features, pricing, about, contact or waitlist page for your own site, made from this project's components and tokens, so a token change restyles it.

How to use it

Open Pages & screens (the workbench's button on the breadcrumb row), and in the Pages section press Add a page. Choose a kind, optionally add a sentence about it, pick a model and press Make page, which shows its credit estimate. A Making a page… card holds its place until the page lands.

  • One of each: one page of each kind per project. A kind already made shows · made and cannot be chosen; asking for a second is refused and not charged. A page keeps its kind.
  • What each kind holds: a features page has a hero and at least one feature grid; an about page a compact hero and at least two sections after the hero; a contact page an optional compact hero and exactly one contact form. A contact form belongs on a contact page only.
  • The side list: an open item shows every page and screen of the project, pages first.
  • Change it: type the change in the box (Change this page…) and press Enter; each result is a new version, and the version picker steps back through the last 20.
  • The picture: a page shows full width inside your site's menu and footer. The hero plays on open and after a style switch, a click replays it, and the gallery's thumbnails stay still.
  • Hero style: the toolbar's Hero style button (pages only) offers three styles (Rise, Product reveal, Word reveal) and six backgrounds (None, Aurora, Grid spotlight, Meteors, Particles, Gradient mesh). A pick runs no AI call and costs nothing; a run of picks is one version. A style with no place for the product picture (mock-up or screen) or chips drops them; switching back restores them from an earlier version when it can. A change in the box keeps the hero unless asked for another look.
  • Product picture: under Product reveal at full size, the dialog's Product picture row offers Mock-up or a thumbnail of each app screen. A screen shows in its current version, framed like a browser in your tokens; a deleted one falls back to the mock-up. The pick is free, saved at once and kept when the box changes the page. Under any other style the row is off: Pick Product reveal at full size to show a screen.
  • A gradient on the page: the hero can wear the page wash under its background, and the call-to-action band the primary gradient over its primary colour, once the project points hero.gradient or cta-band.gradient at it.

Links to app screens. A page's buttons can open an app screen of the project, such as an "Open the app" button to your dashboard. Ask for it in the box; a link works only to a screen that exists, and clicking it in the picture opens that screen.

Pull pages into your app. Pages come with the screen command, which needs Pro. Add to app in an open page's toolbar shows it for that page alone (npx designsource add --screen home; designsource@latest for features, about or contact); add the other pages and site yourself, as here:

npx designsource add --screen home,pricing,site

--screen site writes screens/site-shell.tsx, a header and footer that list the pages in your app; pages install the motion library for their hero. Mount each page on its own route inside SiteShell (home at /, the others at /<name>), never inside the app shell. designsource create does this for a new app: pages sit on app/(site)/, the home page replacing the starter's front page, and app screens stay on /app/<name>. Coding agents list pages with list_screens, write them with add_ui_kit and make one with generate_screen.

The waitlist and the contact form. A waitlist page's form calls joinWaitlist(email); a contact form (name, email, message and a success message) calls sendMessage(message) with { name, email, message }. Each is an empty function in the page's file for you to connect to your own email tool or database; DS source never sends what a visitor types.

How it works

A page is a plan like a screen's: a short list of sections (hero, logos, features, testimonials, pricing table, questions, call to action, waitlist form, contact form) with their copy, drawn with the kit. The site menu and footer are worked out from the pages in the project, so adding a pricing page adds its link; the menu links show from tablet width. In the picture and in the section's Screens view, links are inert.

Exports leave pages out unless the request asks for them. designsource 0.19.0 asks for all six kinds and the screen a hero shows; an older CLI gets home, pricing and waitlist pages only, without links to the other kinds and with the mock-up for a screen.

What can go wrong

  • This project already has a home page. Open it and ask for the change instead.: one page of each kind per project.
  • <project> has no pages yet. Make one on the project's Pages & screens page in DS source, then run this again.: --screen site before any page exists.