Skip to content

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Capstone Lab

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.

Stack

  • Astro — static-site generation, one route per page
  • @astrojs/sitemap — automatic sitemap-index.xml at 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).

Project structure

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

Run locally

npm install
npm run dev

Opens at http://localhost:4321.

Build & preview

npm run build     # type-checks (astro check) then builds to dist/
npm run preview   # serve the production build locally

Deploy to Vercel

  1. Push this repo to GitHub (or GitLab/Bitbucket).
  2. In Vercel, Add New Project → import the repo. Vercel auto-detects Astro; no config needed (build command npm run build, output dist).
  3. Before going live, update site in astro.config.mjs and SITE.url in src/data/site.ts to the real production domain — both feed canonical URLs, Open Graph tags, and the sitemap.

Before launch — things flagged for confirmation

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 (STATS in site.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.tiktok in site.ts is 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) in src/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.astro once available, following the same Testimonial component pattern used on academic.astro.

Design tokens

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.

Accessibility

  • Semantic landmarks (header, nav, main, footer), one h1 per page, descending heading order within each page.
  • Skip-to-content link, visible on keyboard focus.
  • All interactive elements have visible :focus-visible outlines — never suppressed.
  • FAQ accordions use native <details>/<summary> — fully keyboard and screen-reader operable without JavaScript.
  • prefers-reduced-motion: reduce disables scroll-reveal animation, hover lifts, and the CapstoneMotif's draw-in animation site-wide.
  • All meaningful images/icons have alt text or aria-label; decorative SVGs are aria-hidden.

The one hard rule

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.

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages