Marketing and support website for TrackSense, an iOS app that turns Apple Music into a full listening experience: a redesigned player, real listening stats, and shared sessions.
Live site: https://tracksense.fm
- Astro 5 with static output (
output: 'static') - React 19 islands for the interactive sections
- TypeScript (strict, with
noUnusedLocalsandnoUnusedParameters) - Tailwind CSS v4 via the Vite plugin
- Firebase Hosting as the deployment target
There is no backend. All content is hardcoded in the pages.
Routing is file-based. Each file in src/pages/ is a route.
| Route | File | Description |
|---|---|---|
/ |
index.astro |
Landing page (hero, pillars, features, FAQ, CTA) |
/features |
features.astro |
Feature overview |
/stats |
stats.astro |
Listening stats deep dive |
/changelog |
changelog.astro |
App release history |
/privacy |
privacy.astro |
Privacy policy |
/support |
support.astro |
Support and common questions |
/feedback |
feedback.astro |
Feedback form |
npm install
npm run devThe dev server runs at http://localhost:4321.
| Command | What it does |
|---|---|
npm run dev |
Start the Astro dev server |
npm run build |
Build static HTML to dist/ (does not deploy) |
npm run deploy |
Build, then deploy to Firebase Hosting |
npm run preview |
Preview the production build locally |
npm run lint |
Run ESLint |
src/
pages/ # One file per route
layouts/
Base.astro # Shared <head>: title, description, Open Graph, canonical URL, JSON-LD
components/
landing/ # Home page sections (Hero, Pillars, Features, FAQ, CTA, Carousel)
NavBar.astro
Footer.astro
...
views/
Features.tsx # Interactive features section (React island)
hooks/
useInView.ts # IntersectionObserver wrapper for scroll-triggered animations
assets/ # Logos, App Store badge, screenshots
index.css # Tailwind entry, brand utility classes, keyframe animations
public/ # Static files served as-is (favicons, og-image, sitemap, robots.txt)
- Prefer
.astrocomponents, which ship no JavaScript. Use.tsxonly when a section needs client-side interactivity, and hydrate it with aclient:directive. - The primary brand color is
#31326F, exposed as.ts-purpleand.ts-bg-purple. - Content is capped at
920pxwide with.safe-areaormax-w-[920px].
The site is hosted on Firebase Hosting, serving dist/. Make sure you're signed in (firebase login), then:
npm run deploy