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 |
| Customer stories | ProjectsIndexView.astro, ProjectView.astro |
projectsPage |
| Blog | BlogIndexView.astro, and the post page in src/layouts/BlogLayout.astro |
blogPage |
| About: the product’s story | AboutView.astro |
about |
| Contact: the form and the other ways to get in touch | ContactView.astro |
contact |
| Sign in | LoginView.astro |
login |
| Privacy | PrivacyView.astro |
privacy, and the text in src/i18n/privacy/<language>.astro |
| Newsletter confirmation | NewsletterView.astro |
newsletterPage |
| Search | SearchView.astro |
search |
| Docs | DocsView.astro |
docsPage; the docs’ text is in src/content/docs/ |
| Not found | NotFoundView.astro |
notFound |
Velocity’s own words, such as form labels and buttons, are in src/i18n/ui.ts. To change one, add the same key to your translations file: a key there wins over ui.ts, as notFound and some of search do.
The titles and descriptions for search engines of the homepage, Pricing, Contact, Sign in 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
From top to bottom:
- The hero. In
stage: the badge, the heading’s two lines, the line under it, the buttons and a note (home.hero), with the product’s dashboard under them (home.mock). Ingrid: its own badge and heading and the two figures beside the buttons (home.heroGrid), the line and buttons fromhome.hero, and the bar chart underneath (home.heroGrid.chartandweeks). The first button leads to the sign-up page (signUp) or, without one, to Pricing; the second to the steps. - A row of customer names (
home.logos). - The features, six cards with a small picture each (
home.features, with the idfeaturesthat the menu links to). - Privacy: the text and three points beside a card with the one line a site adds and four figures (
home.privacy). The line of code itself is inHomeView.astro(snippet), the same in every language. - How it works: three steps (
home.steps, with the idhow-it-works). - Four figures (
home.numbers). - The plans, with a button to Pricing (
home.pricing). - Three quotes (
home.quotes). - The questions (
home.faq). - The closing band (
home.closing). Its second button leads to the docs, or to the blog withdocsoff.
Pricing
The hero (pricingPage), the plans with a Monthly / Yearly switch, a table of what each plan includes (pricingPage.compare), the homepage’s questions and a closing band of its own (pricingPage.closing). In the table each row has a value for free, growth and scale: '+' shows a check and '-' a dash; anything else is shown as it is.
The product’s parts
The homepage’s and Pricing’s own parts are in src/components/saas/:
AppMock: the dashboard under thestagehero, drawn in HTML, CSS and one SVG: the demo site and its live count, four figures with their change, a chart of this week against last, and a checkout funnel (home.mock). It’s dark in both modes, and one picture for screen readers.HeroStrip: the bar chart under thegridhero: six weeks of visitors, one bar a day, this week’s bars in lime, with a label row above and the weeks below (home.heroGrid). One picture for screen readers.Bento: the six features (Funnels, Cohorts, Live, Paths, No cookies and the weekly email), their titles and text underhome.features.itemsand the words in their pictures underbento. Instagethey’re rounded cards, three to a row on a desktop; ingridnumbered square cells, four in the first row and two wide ones in the second. A few pictures differ: instagethe cohorts are a grid of lime squares and Live a large count over a row of bars, ingridthe cohorts are rows of weeks and Live the busiest pages.Plans: the three plans, the middle one marked “Most chosen” (plans.flag). The names, prices, lines, buttons and features are underplans. Withbilling, as on Pricing, the Monthly / Yearly switch sits above them; without it, as on the homepage, the cards show the monthly price. The last plan’s button leads to Contact, the others’ to the sign-up page (signUp) or, without one, to Pricing.Faq: the questions underhome.faq, each on a card that opens, the first one open. It also gives them to search engines asFAQPagestructured data.
The lists on these pages (the customer names, the features, the privacy points and figures, the steps, the numbers, 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 closing band
The call to action at the foot of a page is src/components/fx/ClosingCta.astro. Its words come from closingContact: the label, the heading, the line, the two buttons (the first to the sign-up page, signUp, or to Pricing without one; the second to Contact) and three short points under them. A page can pass its own words and links; what it leaves out comes from closingContact. secondary={false} leaves out the second button, and points={[]} the points.
About uses the band as it is. The homepage, Pricing, the customer stories and the blog pass their own heading, line and buttons; the blog’s and its posts’ have one button and no points. Contact, Sign in, Privacy, Search, the docs and the newsletter confirmation have no band.
How a page is built
Every page but a blog post, a customer story and the sign-in page starts with the same hero, src/components/site/RocketHero.astro, drawn for the design. Below it, a page is made only of the theme’s shared parts, so all pages look alike:
Section: a part of the page, one width (max-w-6xl). Instage,tone="secondary"gives it the second background; ingridit starts with a line across the column.SectionHead: the section’s label, the heading (with a grey second half,soft) 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 card’s border 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, Lumetric. Replace these with your own before you publish:
- the name, email address and profiles in
site.config.ts; - the hero’s badges, headings, lines and note (
home.hero,home.heroGrid), and the dashboard’s and the chart’s sites and figures (home.mock,home.heroGrid,bento); - the customer names (
home.logos) and the quotes with the names under them (home.quotes); - the features, the privacy section with its line of code, the steps and the figures (
home.features,home.privacy,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), including when an answer comes (contact.other.hours); - the customer stories in
src/content/projects/and the posts insrc/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.