Compose Digi documentation — Next.js
Everything you need to take Compose Digi for Next.js from the downloaded folder to a published agency site. Read in this order, or jump to what you need.
| Guide | What it covers |
|---|---|
| Install and run | Requirements, install, the commands, what is in each folder |
| Editing the content | Editing text, images, the video, services and their plans, projects, posts and job openings — no CMS needed |
| Making it look like your brand | Colours, the logo, fonts, text styles, spacing, motion, the cursor, components, the style guide |
| Pages and sections | The header, the sections of every page with a map of each, adding, removing and reordering pages and sections |
| Forms | Making the contact form deliver to you |
| Using a headless CMS | The collections and their fields, for connecting Sanity, Payload, Strapi, Directus or any other headless CMS |
| Going live | Pre-launch checklist, deploying, domains, what to do after launch |
| Troubleshooting and questions | Errors, questions and answers |
What is in the package
Section titled “What is in the package”- 12 kinds of page, 47 addresses:
- Home, About, Services, Projects, Careers, Blog, Contact and the 404 page;
- a page for each of the 8 services, the 8 projects, the 12 job openings and the 12 blog posts, built from the collections (Pages and sections).
- 4 collections in
src/content/collections/: services (services.ts, 8, each with a Weekly and a Monthly plan), projects (projects.ts, 8 case studies), posts (posts.ts, 12) and job openings (careers.ts, 12). - 1 form: the contact form (“Send message”) on the Contact page, with a server action and four ways to deliver it (a log, a webhook, Mailchimp, Resend). Its service checkboxes are the services.
- A sticky header with a menu pill and a phone menu, and a footer with two moving rows of your service names.
- A custom cursor and motion in the components, with reduced-motion support, and a style guide of every
component at
/style-guide. - Search and sharing: a title, a description and a canonical link for every page, share cards, a browser icon,
sitemap.xmlandrobots.txt. - Placeholders: the photos in
public/images/are grey placeholders that show their sizes (the demo uses photos from Unsplash and Pexels, which can’t be sold with a template). The About video plays the original template’s promo from YouTube, and the client logos on About are samples: replace both (Editing the content). - These docs (
docs/), the forms guide (Forms reference), the design system’s reference (Compose Digi design system),CHANGELOG.mdandLICENSE.md.
In a hurry: the first 15 minutes
Section titled “In a hurry: the first 15 minutes”npm installnpm run dev- Open http://localhost:3000.
- Put your agency’s name, title, description and domain in
site, and your menu, contact details, social links, “Book a call” link and footer in the same file,src/content/site.ts. - Replace the images in
public/images/(keep the file names and you are done), the client logos, and the About video (Editing the content). - Replace the logo (Making it look like your brand), the browser icons (
public/icon.svg,src/app/apple-icon.png) and the share image (public/opengraph-image.png). - Edit the page copy in
src/content/pages/, and your services, projects, posts and job openings insrc/content/collections/. Search for “Compose” and “Davide Gotlieb”: the demo’s agency and founder are named in many places. - Point the contact form at your inbox: Forms.
- Deploy: Going live.
Nothing else is required: the site has no database, no account to create and no paid service to run.
How this template is put together
Section titled “How this template is put together”- Content is data. All text and every collection item live in
src/content/. Pages read the collections throughsrc/lib/content.ts, which is why swapping in a CMS later touches one file, not the whole site. - Design is tokens. Colours, breakpoints and easing curves are in
src/design-system/theme.css; text styles and springs insrc/design-system/tokens/. Change a token and every page follows (Making it look like your brand). - Components are shared. Every button, card, form field and section is in
src/design-system/orsrc/components/, and is shown at/style-guideon your own site. - Collections feed several pages. A service is a page of its own, a row on Home, a card on Services, a tag on the projects that used it, a checkbox of the contact form and a name in the footer; a project’s client quote is also a testimonial on Services (Pages and sections).
Getting help
Section titled “Getting help”- Your licence terms: License.
- What changed in each release: Changelog.
- Support and updates: https://framebrick.co/support.
- Want it done for you? Marcframe, the studio behind this template, updates templates to your needs, builds custom templates and designs new sites. It’s also on Contra.