c5f525bb035177d1c415f2bac8c89e36bd1126fb
Gallery
Static photo gallery for logging meals and food memories.
The site is based on the HTML5 UP Lens template and currently ships as a plain static site: HTML, CSS, JavaScript, and local image assets.
Repo Layout
templates/index.html: source template for the main gallery pageindex.html: generated static gallery pageassets/: site CSS, JavaScript, fonts, and audioimages/fulls/: full-size gallery imagesimages/thumbs/: gallery thumbnailsdata/meals.json: source of truth for gallery entriesscripts/build.js: renders static pages from templates and datapackage.json: minimal Node build entrypoint
Content Workflow
Gallery entries live in data/meals.json, and index.html is generated from templates/index.html.
After editing content or templates, rebuild the site with:
npm run build
The build currently renders the main page without changing the existing Lens gallery structure, so the current client-side viewer code continues to work.
Image Conventions
- Full-size images and thumbnails share the same numeric ID
- Full-size images live at
images/fulls/<id>.jpg - Thumbnails live at
images/thumbs/<id>.jpg - Optional thumbnail focal positioning is stored per entry as
position
Planned Features
- Better thumbnail implementation, either a small script to automatically convert full-size images into thumbnails and a build system, or another simpler approach.
- Automatic image ingestion, potentially with a stronger data model if the static workflow becomes too limiting.
- An Elo-style ranking page that shows two food images at a time and updates rankings automatically based on the selected winner.
- General cleanup and history cleanup once the bigger structural changes are in place.
Description
Languages
JavaScript
43.3%
SCSS
20.6%
HTML
20.1%
CSS
15.9%