Each page is a view in src/views/, and its words are in the translations, src/i18n/translations/<language>.ts, under a key of its own. The files in src/pages/ only render a view.
| Page | View | Words under |
|---|---|---|
| Homepage | HomeView.astro |
home, and the words in the feature cards’ pictures under bento |
| Pricing | PricingView.astro |
pricingPage, and the plans under plans |
| Blog | BlogIndexView.astro, and the post page in src/layouts/BlogLayout.astro |
blogPage |
| Customer stories | ProjectsIndexView.astro, ProjectView.astro |
projectsPage |
| About: the product’s story | AboutView.astro |
about |
| Contact: the form and the other ways to get in touch | ContactView.astro |
contact |
| Privacy | PrivacyView.astro |
privacy, and the text in src/i18n/privacy/<language>.astro |
| Newsletter confirmation | NewsletterView.astro |
newsletterPage |
| Search | SearchView.astro |
search |
| Not found | NotFoundView.astro |
notFound |
notFound and most of search are Velocity’s own words, in src/i18n/ui.ts; the translations file has a few search keys of its own. To change one, add the same key to your translations file: a key there wins over ui.ts.
The titles and descriptions for search engines of the homepage, Pricing, Contact and the newsletter confirmation are under meta; the other pages take theirs from their own words, such as about.title. The line under the logo in the footer is home.footerTagline.
The homepage and Pricing
The homepage, from top to bottom: the hero with a picture of the product’s dashboard under the buttons (home.hero, home.mock), a row of customer names (home.logos), the features (home.features, with the id features that the menu links to), a section about alerts (home.alerts), three steps (home.steps), figures that count up (home.numbers), the plans (home.pricing), quotes (home.quotes), questions (home.faq) and the closing band (home.closing).
Pricing has the plans with a Monthly / Yearly switch, a table of what each plan includes (pricingPage.compare), the same questions as the homepage and its own closing band (pricingPage.closing). In the table, '+' shows a check and '-' a dash; anything else is shown as it is.
The parts these two pages share are in src/components/saas/:
AppMock: the dashboard in the homepage’s hero, drawn in HTML and CSS in the site’s colour.Bento: the features as six cards in three rows, each row with one wide card, and a small picture on every card.Plans: the three plans, the middle one marked. The names, prices, lines and features are underplans. Withbilling, as on Pricing, the Monthly / Yearly switch sits above them; without it the cards show the monthly price.Faq: the questions underhome.faq, each on a card that opens, the first one open. It also sends them to search engines asFAQPagestructured data.
The lists on these pages (the customer names, the features, the steps, the figures, the plans, the quotes, the questions, the table’s rows) take their length from en.ts. Keep the same number of items in every language’s file.
The call to action at the foot of the other pages takes its words from closingContact: the pill, the heading, the line, the buttons, the three points under them and the status panel beside them (closingContact.panel, the demo’s sites and their uptime). The homepage, pricing, the blog, its posts and the customer stories pass their own heading, line and buttons; the blog’s and its posts’ have no points or panel (points={[]}, panel={false} on ClosingCta).
How a page is built
Every page starts with the same hero, src/components/site/RocketHero.astro. Below it, a page is made only of the theme’s shared parts, so all pages look alike:
Section: a section of the page, withtone'default'or'secondary'. Sections take turns, starting with'secondary'.SectionHead: the centred heading, with a pill above it and a line under it.ProofTile: the tile with an icon or a number, a title and a short text.- Velocity’s
Card, withdata-spotfor the edge in the site’s colour and the light that follows the pointer.
They’re in src/components/site/. For a new page, build from these rather than adding styles of its own; the velocity-add-page skill in .agents/skills/ walks through the rest: the view, the file in src/pages/, the route in nav.config.ts and the words in the translations.
What the demo makes up
The demo is the website of a made-up product, Flightdeck. Replace these with your own before you publish:
- the name, email address and profiles in
site.config.ts; - the hero’s badge, heading, line and note (
home.hero), and the dashboard’s sites and figures (home.mock,bento); - the customer names (
home.logos) and the quotes with the names under them (home.quotes); - the features, the alerts, the steps and the figures (
home.features,home.alerts,home.steps,home.numbers); - the plans and their prices (
plans), the table on Pricing (pricingPage.compare) and the questions and answers (home.faq); - the announcement bar (
announcement); - the About and Contact pages’ texts (
about,contact); - the posts in
src/content/blog/; - the privacy page’s text, which describes the demo’s forms and host.
Show only real customers, quotes, figures and prices. Where you don’t have one yet, leave it out rather than keep the demo’s.