Skip to content
wipisPublic

About

homepage of wip.is

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

170 Commits

Folders and files

Repository files navigation

wip.is

Homepage of wip.is — Astro, Tailwind CSS v4, deployed to the Cloudflare Worker wip.

The public site is fully prerendered. The rotating intro uses React; theme, clipboard, and scrolling behavior use Astro scripts.

Commands

Command Action
bun dev Dev server at localhost:4321
bun build Build the static site to dist/
bun preview Serve the built site locally
bun check Typecheck .astro and .ts files
bun run deploy Build and deploy to the wip Worker

Layout

src/
  pages/index.astro       The only route
  layouts/Base.astro      <head>, JSON-LD, theme bootstrap, Lenis
  components/             UI, one .astro file each
  lib/                    Site constants, theme logic, link + mark data
  styles/globals.css      Tailwind entry, theme tokens, font fallback
  worker.ts               Canonical-host 301, then serves dist/ assets

Notes

  • Work content. Edit src/data/work.json to update the homepage work list and gallery. Set published to true to display an entry. Images live in src/assets/work/; use their /src/assets/work/filename.png path and an alt description in the JSON. Astro optimizes these images during the build. Build and deploy to update the live site.

  • Theme. An inline script in Base.astro applies the light/dark class before first paint to avoid a flash; everything after that lives in src/lib/theme.ts. The localStorage key and values match the next-themes setup this site used previously, so existing preferences carry over.

  • Canonical host. Several domains point at the same Worker and Cloudflare has no primary-domain setting, so src/worker.ts 301s every non-canonical hostname, including wip-design.com, to wip.is. .workers.dev is exempt so preview URLs stay reachable.

  • Deploys. Cloudflare Workers Builds runs bun run build, then npx wrangler deploy. bun run deploy does the same from this machine. The Worker name in wrangler.jsonc is wip.

  • Copyright year in the footer is baked in at build time.

About

homepage of wip.is

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages