Marketing site for Capstone Lab — a build studio in Port Harcourt, Nigeria working in three lanes: Academic (final-year student projects), Digital (web & mobile app builds), and Business (ops, firm setup, and consulting for founders).
Built with Astro (v7) as a static, multi-page site.
- Astro — static-site generation, one route per page
- @astrojs/sitemap — automatic
sitemap-index.xmlat build time - @fontsource — self-hosted Fraunces (display serif), Inter (body sans), JetBrains Mono (labels/eyebrows) — no external font requests
- No client-side framework. A small amount of vanilla JS powers the mobile nav toggle and scroll-reveal animations (both work, and are unnecessary, without JavaScript — content is visible either way).
src/
components/ Shared, reusable UI: Header, Footer, CapstoneMotif (the
signature arch/keystone SVG), LaneCard, ServiceCard,
ProcessStep, Testimonial, FaqAccordion, StatsStrip,
WhatsAppCta, SectionIntro
data/
site.ts Single source of truth for contact info, socials, the
lane-specific pre-filled WhatsApp links, and stats.
Update contact details here — every page reads from it.
layouts/
BaseLayout.astro Global <head>: per-page SEO title/description, Open
Graph, Twitter Card, canonical URL, skip link, and
the reveal-on-scroll script.
pages/
index.astro Home — routes visitors to their lane
academic.astro /academic/ — students
digital.astro /digital/ — web & mobile app clients
business.astro /business/ — founders / business owners
how-it-works.astro /how-it-works/
about.astro /about/
careers.astro /careers/
contact.astro /contact/
404.astro
styles/
tokens.css Design tokens: color, type scale, spacing, motion —
the single palette source for the whole site.
global.css Reset, typography, focus states, buttons, reduced-
motion overrides.
public/
favicon.svg, og-default.svg, robots.txt
npm install
npm run devOpens at http://localhost:4321.
npm run build # type-checks (astro check) then builds to dist/
npm run preview # serve the production build locally- Push this repo to GitHub (or GitLab/Bitbucket).
- In Vercel, Add New Project → import the repo. Vercel auto-detects
Astro; no config needed (build command
npm run build, outputdist). - Before going live, update
siteinastro.config.mjsandSITE.urlinsrc/data/site.tsto the real production domain — both feed canonical URLs, Open Graph tags, and the sitemap.
A few details in the brief were marked to verify against real accounts /
current numbers. They're already wired into the site via src/data/site.ts
and the stats array in the same file — update the values there and every
page picks up the change automatically:
- Stats (
STATSinsite.ts): 200+ projects, 15+ departments, ≤12% avg. plagiarism score — carried over from the existing site; reconfirm before launch if the numbers have moved. - X/Twitter handle: currently
@capsstone_lab(double "s") — matches the existing site, but double-check the spelling against the live account. - TikTok: no handle was supplied.
SOCIALS.tiktokinsite.tsis empty, and the footer renders "TikTok — coming soon" until it's filled in. - Selar product links (Business page): marked with a clearly-labelled
placeholder section and an HTML comment (
SELAR-LINKS-PLACEHOLDER) insrc/pages/business.astro, ready to swap for real product embeds/links. - OG image (
public/og-default.svg): some crawlers (notably X/Twitter) don't render SVG Open Graph images reliably. Swap for a rasterized PNG/JPG (1200×630) before launch for maximum compatibility. - Digital and Business testimonials: intentionally omitted rather than
invented. Both are new lanes without real client quotes yet — the Academic
page keeps the three real, attributed testimonials from the existing site.
Add real ones to
digital.astro/business.astroonce available, following the sameTestimonialcomponent pattern used onacademic.astro.
All color, type, spacing, and motion values live in src/styles/tokens.css
as CSS custom properties. Lane accent colors (gold / steel blue / green) are
mapped to lanes in LANE_META (src/data/site.ts) and used sparingly —
each lane page tints its cards, process steps, and CTAs with its own accent,
never another lane's.
- Semantic landmarks (
header,nav,main,footer), oneh1per page, descending heading order within each page. - Skip-to-content link, visible on keyboard focus.
- All interactive elements have visible
:focus-visibleoutlines — never suppressed. - FAQ accordions use native
<details>/<summary>— fully keyboard and screen-reader operable without JavaScript. prefers-reduced-motion: reducedisables scroll-reveal animation, hover lifts, and the CapstoneMotif's draw-in animation site-wide.- All meaningful images/icons have
alttext oraria-label; decorative SVGs arearia-hidden.
Academic (students) and Business (founders) content never appear together
on one screen. The homepage and How It Works page stay neutral/routing-only;
each lane page is written entirely in its own language, with its own proof
and its own CTA. Every CTA site-wide routes through WhatsAppCta.astro to a
lane-appropriate, pre-filled wa.me link defined in WHATSAPP_LINKS
(src/data/site.ts) — there is no contact form that emails.