commit 6e63caeb93399606f7810c3b82fee3955f273639 Author: Luke Betteridge Date: Sun Mar 8 16:25:59 2026 +0000 Initial Commit 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 `