Replace the Edit button with dblclick-to-edit on the paragraph itself:
- Double-click #card-text → hides the <p>, shows a textarea in place
- Ctrl+Enter → saves (PUT /api/text)
- Escape → cancels and restores original text
- Textarea auto-sizes to content height on open
- Subtle dashed underline on hover signals editability
- Edit button removed; Reset button stays
Closes#9
- schema.sql: card_text table (single-row, id=1) with content + updated_at
- server.js: Express + pg server with CRUD API:
GET /api/text — read current text
PUT /api/text — create / update text
DELETE /api/text — reset to default lorem ipsum
- package.json: express + pg dependencies (converts project to Node type)
- index.html: card now loads text from DB, inline Edit / Save / Cancel
controls, Reset button with confirm dialog, last-updated timestamp
DB: testapp (appuser) on localhost:5432
Closes#8
- Added CSS custom properties for light and dark themes
- Light mode is the default (data-theme="light" on <html>)
- Toggle button fixed top-right: switches between light/dark
- Preference persisted in localStorage so it survives page reloads
Closes#5