The landing page for Campus Tech at UIUC, a student organization at the University of Illinois that builds products for campus life: campustech.iguide.chat. Neon tubes follow the cursor in dark mode, a pull cord switches to light mode, and every line of copy animates in the direction you scroll.
Plain HTML, CSS and ES modules with no build step. Push to main and Cloudflare
Pages ships it in about 20 seconds.
This repo is set up for coding agents first. Read AGENTS.md
before you touch anything: rules, commands, the definition of done, and how
every effect works. CLAUDE.md points Claude Code there too.
The short version:
python tools/stamp_assets.py # after any change in src/ or vendor/ (CSS/JS are cached 4h)
python tools/ci/check_static.py # seconds, no browser
python tools/ci/test_site.py # Playwright, desktop + phone, ~3 minmain is production, and every bug this site has had has a CI check. Fix a
bug, add its check in the same commit.
python -m http.server 5180 # then open http://localhost:5180ES modules don't load from file://. Sub pages and articles live in
tools/pages/build_pages.py; edit there, then run it.
| Piece | How |
|---|---|
| Smooth scroll | GSAP ScrollSmoother on desktop, with its content on its own GPU layer; phones scroll natively |
| Line animation | ScrollTrigger.batch per heading, paragraph and list item, in the scroll direction, with fail-safes so text is never left invisible |
| Dark mode | Tubes Cursor by Kevin Levron, eased on enter and leave (src/tubes.js) |
| Light mode | A dithered pixel trail; text under it turns white through two blend layers (src/dither.js) |
| Theme switch | A pull cord that switches on release, like a real one |
| Loading | A skeleton of the page, shown only on slow loads (?loading previews it) |
| SEO / GEO | One template for every page, JSON-LD, sitemap, llms.txt and llms-full.txt |
// src/main.js
smoother = ScrollSmoother.create({
wrapper: "#smooth-wrapper",
content: "#smooth-content",
smooth: 1.2, // seconds for the content to catch up with the native scroll
effects: true,
smoothTouch: false, // phones keep native momentum scrolling
})| Path | What lives there |
|---|---|
index.html |
The home page, hand-written |
src/ |
style.css, main.js, tubes.js, dither.js |
vendor/ |
GSAP, the original tubes file (byte-identical), the pull-cord bundle |
tools/pages/ |
Generator for every sub page, article, the sitemap and llms files |
tools/ci/ |
Static checks and Playwright browser tests |
tools/images/ · tools/previews/ |
Logo, favicons and social card · link-preview screenshots |
tools/pullcord/ |
Source of the pull-cord bundle |
assets/ |
Images, icons, previews |
Cloudflare Pages, project campustech, connected to this repo: every push to
main deploys with no build command. Production is
campustech.iguide.chat, with
campustech.pages.dev as the fallback. HTML is
always revalidated; CSS and JS carry content hashes. Details in
AGENTS.md.
- Tubes Cursor by Kevin Levron, CC BY-NC-SA 4.0: credited on every page, non-commercial use only.
- pullcord by Sarthak Navalekar, MIT, with motion (MIT).
- GSAP 3.13 under the GreenSock standard no-charge licence.
- The dither trail is inspired by Eniyan Raja's DitherCursor; no code was copied.