Astro based website for Thompson Codes LLC
  • Astro 71.1%
  • CSS 13.9%
  • TypeScript 7.7%
  • JavaScript 7.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-26 10:21:24 -08:00
.husky Add pre-commit hooks with Prettier formatting 2026-01-24 11:40:10 -08:00
docs Add the bryan.thompson.codes resume build target (#4) 2026-11-06 10:08:07 -08:00
public Speak to founders and small teams, and to private AI that is not paying off yet (#5) 2026-11-06 10:08:28 -08:00
redirects Redirect brian.thompson.codes to bryan.thompson.codes (#7) 2026-11-06 10:49:11 -08:00
resume Add automatic dark mode following device theme 2026-11-26 10:21:24 -08:00
scripts Speak to founders and small teams, and to private AI that is not paying off yet (#5) 2026-11-06 10:08:28 -08:00
src Add automatic dark mode following device theme 2026-11-26 10:21:24 -08:00
tests Add automatic dark mode following device theme 2026-11-26 10:21:24 -08:00
.gitignore Add the bryan.thompson.codes resume build target (#4) 2026-11-06 10:08:07 -08:00
.prettierignore Add the bryan.thompson.codes resume build target (#4) 2026-11-06 10:08:07 -08:00
.prettierrc fix header on mobile and prettier commit hook 2026-01-24 19:54:53 -08:00
astro.config.mjs Apply post-review cleanups from PR #1 (#2) 2026-09-10 14:44:31 -07:00
astro.resume.config.mjs Add the bryan.thompson.codes resume build target (#4) 2026-11-06 10:08:07 -08:00
package-lock.json Rebuild Thompson Codes for technology and AI consulting (#1) 2026-09-10 13:00:55 -07:00
package.json Add the bryan.thompson.codes resume build target (#4) 2026-11-06 10:08:07 -08:00
README.md Redirect brian.thompson.codes to bryan.thompson.codes (#7) 2026-11-06 10:49:11 -08:00
tsconfig.json Initial commit: Thompson Codes indie game studio site 2026-01-24 11:23:38 -08:00
wrangler.brian-redirect.toml Redirect brian.thompson.codes to bryan.thompson.codes (#7) 2026-11-06 10:49:11 -08:00
wrangler.resume.toml Add the bryan.thompson.codes resume build target (#4) 2026-11-06 10:08:07 -08:00
wrangler.toml Add wrangler.toml for Cloudflare Workers deployment 2026-01-24 12:06:44 -08:00

Thompson Codes

Technology and AI consulting website for Thompson Codes LLC, focused on founders building products, adopting AI, and connecting their systems. The approved Common Ground design is the homepage at /.

Consulting design explorations

The four original concepts are retained under src/design/prototypes/ and available at /prototypes/ when running npm run dev. The gallery includes full pages, a desktop/phone reviewer, and a browser-local shortlist. Prototype routes are excluded from production builds; npm run preview serves the selected site.

See design directions and reference links. The concepts use original layouts and illustrations, with Google Fonts alternatives to the references' proprietary typefaces. The Common Ground reference and the production homepage share the same content components, including the approved biography without employer or client names.

Contact

The contact form prepares an email draft addressed to bryan@thompson.codes. Visitors review and send it using their own email app. Project details are not sent to a backend or saved in browser storage. A direct email link remains available when JavaScript is unavailable.

Local Development

# Install dependencies
npm install

# Start dev server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

# Build and verify production content, links, metadata, assets, and excluded prototype routes
npm test

# Check repository formatting
npm run format:check

# Regenerate the social sharing image and touch icon after a brand change
npm run brand:assets

Deploy to Cloudflare Pages

  1. Push this repo to GitHub/GitLab
  2. Go to Cloudflare Pages
  3. Create a new project → Connect to Git
  4. Select your repository
  5. Configure build settings:
    • Framework preset: Astro
    • Build command: npm run build
    • Build output directory: dist
  6. Deploy!

Option 2: Direct Upload

# Build the site
npm run build

# Install Wrangler CLI
npm install -g wrangler

# Login to Cloudflare
wrangler login

# Deploy
wrangler pages deploy dist --project-name=thompson-codes

Custom Domain Setup

  1. In Cloudflare Pages dashboard, go to your project
  2. Click "Custom domains"
  3. Add thompson.codes
  4. Follow DNS configuration instructions

Resume site (bryan.thompson.codes)

A second, independent build target publishes Bryan's resume at https://bryan.thompson.codes. It lives under resume/ with its own Astro config (astro.resume.config.mjs), reuses src/styles/global.css, and keeps all resume copy in resume/src/data/resume.ts. The homepage build in dist/ is not affected.

# Develop, build, and preview the resume site
npm run dev:resume
npm run build:resume
npm run preview:resume

# Deploy the resume build as its own Cloudflare Worker (custom domain bryan.thompson.codes)
npm run build:resume
npx wrangler deploy -c wrangler.resume.toml

brian.thompson.codes catches the common misspelling: a tiny Worker (redirects/brian.js) answers every request with a 301 to the same path on bryan.thompson.codes.

npx wrangler deploy -c wrangler.brian-redirect.toml

npm test builds both targets and runs every check under tests/.

Project Structure

thompson-codes/
├── public/
│   ├── favicon.svg     # Approved TC monogram
│   ├── social-card.png # Social sharing image
│   └── logos/          # Earlier logo studies
├── src/
│   ├── components/     # Homepage sections and shared contact flow
│   ├── design/         # Earlier prototypes (development only)
│   ├── layouts/        # Production metadata and prototype review layout
│   ├── pages/          # Production homepage and development prototype route
│   └── styles/         # Shared foundations and Common Ground theme
├── scripts/            # Reproducible brand asset generation
├── tests/              # Production build checks
├── astro.config.mjs     # Astro config
├── package.json
└── tsconfig.json

Tech Stack

  • Framework: Astro 4
  • Hosting: Cloudflare Pages
  • Styling: Custom CSS with CSS variables
  • Fonts: Archivo Black and DM Sans (Google Fonts)

License

© 2026 Thompson Codes LLC. All rights reserved.