mirror of
https://github.com/jhygate/jhygate.github.io.git
synced 2026-11-29 00:19:16 +00:00
Pull mirror; GitHub is the source of truth because Actions and site-admin write to it
- JavaScript 44.4%
- CSS 41.2%
- HTML 11.2%
- Python 3.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| assets | ||
| components | ||
| data | ||
| site | ||
| tools | ||
| .gitignore | ||
| books.html | ||
| games.html | ||
| index.html | ||
| README.md | ||
| robots.txt | ||
| thoughts.html | ||
| ToDo | ||
jackhygate.co.uk
A cork board with a hand-painted Philips telly on it. Static HTML, no build step: push to main
and the workflow publishes the repo root to the deploy branch, which GitHub Pages serves.
Layout
index.html the board books.html the whole bookshelf
thoughts.html every random thought, by title
games.html every game, a cartridge each
site/ base.css (type, cork, tape titles, boot), init.js (wires the sections up)
components/ one folder per thing on the board, a .css and a .js each
telly/ the set: channels, front-panel buttons, sounds, boot screen, clock
pinned/ the paintings, polaroid and magnets around the set
projects/ things i've built, as pinned polaroids
player/ the cassette player and the recently played tape
shelf/ the bookshelf
games/ the games: cartridges on a plank, the one I'm playing in a handheld
scrapbook/ the folder of clippings
notebook/ the pocket notebook of random thoughts, and thoughts.html
atlas/ the A-Z atlas of venues
wall/ the whiteboard and the visitors' noticeboard
webring/ the two stickers at the foot
assets/ every image, by what it is: icons/ textures/ telly/ pinned/ projects/ player/ shelf/ games/ books/{covers,spines}
data/ projects.json, books.json, games.json, articles.json, recent.json
tools/ gemini-cutouts.py, book-dims.py and README.md: how books get onto the shelf
Each component script is plain JS that leaves one function on window (createAtlas,
renderBookshelf, …); site/init.js calls them. Paths are root-relative (/assets/…), so the
site must be served from the repo root, which is what Pages and python3 -m http.server both do.
Data
| File | Shape |
|---|---|
data/projects.json |
Things I've built, in pinned order: title, blurb, url, photo (a square screenshot in assets/projects/). A project with no url isn't out yet and shows as an undeveloped polaroid. |
data/books.json |
reading (the current book) and read (newest first). Every book needs cover, spine and ratio; see tools/README.md. Optional height in mm sets how tall it stands beside the others. |
data/games.json |
Games, in the order set in the back room: title, by, url, store, image (in assets/games/; wide for a Steam header), tagline, tags, platforms, browser, played (YYYY-MM), hours, stars, note. The first goes in the handheld; the rest stand on the plank in order. games.html groups them by year. |
data/articles.json |
Clippings: title, author, source, url, date, minutes, blurb. A fallback: the live list comes from the wire (below). |
data/thoughts.json |
Random thoughts, newest first: slug, title, date, body. Paragraphs are split by a blank line and lines starting - are a list; — starts a fragment,  on its own line is a photo and !sketch[caption](src) a drawing. Pictures live in assets/thoughts/. |
data/recent.json |
Fallback playlist when the cassette rack is unreachable. |
Live data
- Recently played:
jacks-cassettes.jackhygate.co.uk/api/public/recent(repojhygate/cassette-rack). - Venues and atlas scans:
venues.jackhygate.co.uk/api/public/venuesand/atlas/(repojhygate/venues). - Random thoughts:
data/thoughts.json, plus the ones ticked "into the notebook" in the thoughts app, live fromthoughts.jackhygate.co.uk/api/public/notebook(~/services/thoughtson the box). No deploy needed for those. - Whiteboard and notes:
wall.jackhygate.co.uk(repojhygate/wall), live over server-sent events. - Things i've read online:
rss.jackhygate.co.uk/api/public/articles, from the wire, the feed reader that also keeps the read list (~/CodeFun/the-wire). Falls back todata/articles.jsonwhen it's unreachable.
Working on it
python3 -m http.server 8731 # then http://localhost:8731/
Stylesheets and scripts are linked with a ?v=<date> query; change it in both HTML files when you
change any of them so browsers and the Pages cache pick the change up. Work in this repo directly;
the old prototypes (CSS-only telly, desk scene) are archived in ~/CodeFun/crt-site-archive.