From 6e63caeb93399606f7810c3b82fee3955f273639 Mon Sep 17 00:00:00 2001 From: Luke Betteridge Date: Sun, 8 Mar 2026 16:25:59 +0000 Subject: [PATCH] Initial Commit --- .vscode/launch.json | 37 ++++++ ITEM_COMPONENT.md | 83 +++++++++++++ README.md | 242 +++++++++++++++++++++++++++++++++++++ barcode-scanner.js | 147 ++++++++++++++++++++++ barcode.html | 288 ++++++++++++++++++++++++++++++++++++++++++++ freezer.html | 16 +++ fridge.html | 16 +++ index.html | 47 ++++++++ item-component.js | 92 ++++++++++++++ main.css | 105 ++++++++++++++++ navbar.js | 19 +++ pantry.html | 16 +++ piechart.js | 48 ++++++++ search.html | 254 ++++++++++++++++++++++++++++++++++++++ search.js | 61 ++++++++++ 15 files changed, 1471 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 ITEM_COMPONENT.md create mode 100644 README.md create mode 100644 barcode-scanner.js create mode 100644 barcode.html create mode 100644 freezer.html create mode 100644 fridge.html create mode 100644 index.html create mode 100644 item-component.js create mode 100644 main.css create mode 100644 navbar.js create mode 100644 pantry.html create mode 100644 piechart.js create mode 100644 search.html create mode 100644 search.js diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..b7431f5 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,37 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch index.html", + "type": "firefox", + "request": "launch", + "reAttach": true, + "file": "${workspaceFolder}/index.html" + }, + { + "name": "Launch localhost", + "type": "firefox", + "request": "launch", + "reAttach": true, + "url": "http://localhost/index.html", + "webRoot": "${workspaceFolder}" + }, + { + "name": "Attach", + "type": "firefox", + "request": "attach", + "url": "http://localhost/index.html", + "webRoot": "${workspaceFolder}" + }, + { + "name": "Launch WebExtension", + "type": "firefox", + "request": "launch", + "reAttach": true, + "addonPath": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/ITEM_COMPONENT.md b/ITEM_COMPONENT.md new file mode 100644 index 0000000..950077a --- /dev/null +++ b/ITEM_COMPONENT.md @@ -0,0 +1,83 @@ +# Item Component + +A small reusable UI component that shows an image on the left and three text areas on the right. + +## Files + +- `item-component.js` — ES module that exports `createItemComponent()` (default export). +- `index.html` — example usage (the project includes a demo where multiple items are laid out in a responsive grid). + +## Import + +Use as an ES module in a browser environment: + +```html + +``` + +## Options + +- `imgSrc` (string) — image URL. If omitted, an empty `` is created. +- `imgAlt` (string) — image alt text. +- `text1` (string) — first text area (displayed as title by default). +- `text2` (string) — second text area (subtitle). +- `text3` (string) — third text area (description). +- `editable` (boolean) — when `true` the text areas are rendered as editable `