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 | PortfolioHomeView.astro |
portfolio |
| Services | ServicesView.astro |
servicesPage |
| Projects | ProjectsIndexView.astro, ProjectView.astro |
projectsPage |
| Blog | BlogIndexView.astro, and the post page in src/layouts/BlogLayout.astro |
blogPage |
| About | AboutView.astro |
about |
| Contact | 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 |
search and notFound are Velocity’s own words, in src/i18n/ui.ts. To change one, add the same key to your translations file: a key there wins over ui.ts.
The band at the foot of the pages takes its words from closingContact; Services, Projects and the blog pass their own. The page titles and descriptions for search engines are under meta.
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 a freelancer called “Astro Rocket”. Replace these with your own before you publish:
- your name in
site.config.ts, and the email address and profiles there; - the hero’s line and badge on the homepage (
portfolio.hero); - the facts beside “About me”: the years, the city (
portfolio.about), and the About page’s text (about); - the quotes on the homepage, and the names under them (
portfolio.quotes); - the Services page’s texts, including the questions and answers (
servicesPage); - the projects 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 quotes and facts. Where you don’t have one yet, leave it out rather than keep the demo’s.