The Ferrite website and blog, built with Eleventy 3. One build makes both sites.
Client JavaScript only on Home (src/assets/home.js, the story's loops), Watch (src/assets/watch.js) and /s (src/assets/share.js: Ferrite Pocket's share codes, read from the link's fragment or made from a form, with a QR code from src/assets/qrcode.js, Kazuhiko Arase's qrcode-generator 1.4.4, MIT, as published); every page works without it.
src/.well-known/apple-app-site-association lets those /s links open Ferrite Pocket on an iPhone.
npm installonce.npm run serve(ornpm start): local preview at http://localhost:8080/, drafts included. The blog is at/blog/.npm run build: the production build, drafts left out, split intodist/www/anddist/blog/.
src/pages:index.njk(Home: the story),features/,watch/,download/,bench/,blog/.src/_data/site.js: the URL map, links, licence, the release switch and the bench page'sSUPPORT_URLandCONTACT(each section stays hidden until set).src/_data/bench.js: the bench and wish lists, in whole Canadian dollars.src/assets/site.css: the one stylesheet.src/img/: simulator frames only (240 x 320 screens, 4x).src/img/guide/are the user guide's shots, scaled 4x with nearest-neighbour.scripts/split.mjs: splits_site/into the two deploy folders and writes each one'sCNAME.
- Production (
ELEVENTY_ENV=production, set bynpm run build): links between the main site and the blog are absolute (https://ferritefw.dev,https://blog.ferritefw.dev). - Preview: one server, the blog under
/blog/. - Console and Manual always link to
https://console.ferritefw.devandhttps://manual.ferritefw.dev.
One Markdown file per post in src/blog/posts/. See POSTING.md. Ideas for posts: BLOG-IDEAS.md; how they read: BLOG-STYLE.md.
- The story: one screen stays pinned while six chapters scroll past; each chapter swaps in a short, silent, screen-only loop (
src/loops/NAME.mp4, 480 x 640, and aNAME.webpstill). Chapter text is insrc/index.njk's front matter. npm run loopsrecords the loops from the simulator with ferrite's recorder (scripts/loops.py: each chapter's key script is there; needs the ferrite checkout, cargo, ffmpeg and ImageMagick).npm run loops -- scoperedoes one.- Reduced motion: no video, the stills swap. Without JavaScript: the chapters stack, each with its still.
/watch/: the four full videos,src/video/{tour,unique,aprs,lowpower}.mp4(silent) with.jpgposters; each plays while half in view and pauses when it leaves (src/assets/watch.js; reduced motion: a play button instead). Titles and lines:src/_data/videos.js.npm run videosmakes them fromferrite/target/promo/(render withtools/promo/mkvideo.pyfirst; needs ffmpeg and ImageMagick): H.264 1280x720 (CRF 26), no audio, faststart. Posters are the screen alone, cut from one frame of each source;npm run videos -- --postersremakes only those,POSTER_<name>=SECONDSmoves one.- All encodes are committed (Pages serves them).
npm run build, thendist/www/is force-pushed to this repo'sgh-pagesbranch (Pages: ferritefw.dev) anddist/blog/to FerriteFW/blog'smain(blog.ferritefw.dev). Each folder has itsCNAMEand.nojekyll.- console.ferritefw.dev is the web Console, from the console repo's
gh-pagesbranch. src/releases/: Console's update feed,latest.jsonand the.ffwit names (console/tools/release-files.mjs); replace both at each release.- DNS is at Cloudflare.