How pictureelement/grecko works
Project type and purpose
• Grecko is a static, front-end restaurant website template (PWA-enabled) built with Bootstrap 4, Animate.css, jQuery, lazysizes, and Grunt for build automation.
• It delivers responsive HTML/CSS/JS and media assets, fetches/manipulates images on-the-fly via Cloudinary, registers a service worker for caching, and exposes a web manifest for PWA installation.
File structure
• Top-level:
• src/ – unbuilt source files (HTML, CSS, JS, media, manifest, service worker, node script, ngrok)
• dist/ – production build output (minified CSS/JS, optimized media, HTML pages, manifest, service worker)
• docs/ – GitHub Pages–ready copy of dist/ for demo/deployment
• Gruntfile.js, script.sh, package.json – build/config scripts and dependencies
• Patterns:
• Static site layout with pages/, css/, js/, media/ subfolders
• Build pipeline uses Grunt + shell script to remove unused CSS, inline critical CSS, minify assets, generate responsive breakpoints via Cloudinary’s API
Key insights from README
• Uses Cloudinary’s API to programmatically generate responsive breakpoints and deliver optimized images
• Includes Lightbox for galleries, Intersection Observer for scroll animations
• Service worker + manifest.json → PWA features
• Build automation via Grunt + shell scripting
Detail
• Use of the manifest.json and service-worker.js in the browser lifecycle
• Detail the Grunt tasks (purge CSS, minify, inline critical) and the script.sh breakpoint generator