Commit Graph
13 Commits
Author SHA1 Message Date
Bkk1234 0bfbefd930 feat(hero): make the three floating cards open their project
- cards are links to the same project_url as the grid card (new tab, noopener)
- drop aria-hidden from the stack and restore pointer events; add hover/focus/active states
- entrance animation moves to the translate property with fill-mode backwards so the
  staggered offsets/rotation and the hover lift are no longer overridden
- reduced-motion keeps the stagger (translate: none) without killing the layout
2026-11-20 14:37:43 +07:00
Bkk1234 e87e00896c fix(hero): keep the word spacing in the welcome heading
The word-split helper joined spans with an empty string, so the sentences ran
together ('...ที่อยากดูขอบคุณครับ'). Join with a space; each word still animates
on its own.
2026-11-20 14:33:58 +07:00
Bkk1234 64d4a9e703 Revert "feat(home): link the homepage of every local project in the workspace"
This reverts commit db7724b237.
2026-11-20 14:33:15 +07:00
Bkk1234 db7724b237 feat(home): link the homepage of every local project in the workspace
- server: GET /api/local-projects scans sibling folders for index.html
  (title from <title>/<h1>, generic titles fall back to the folder name,
  sorted by newest edit) and GET /projects/<folder>/ serves that folder
- both endpoints are loopback-only; node_modules/.git/.hermes blocked and
  path traversal rejected; WORKSPACE_DIR=none disables the feature
- home: new 'โปรเจคในเครื่อง' list (2 columns >=700px) that hides itself when
  the API is absent, so the live static site never shows fake rows
- SW skips /projects/* so other projects' files are never cached; version 2026.11.19.5
- docs: README/AGENTS/DESIGN cover the endpoints, the loopback rule and the layout
2026-11-20 14:26:54 +07:00
Bkk1234 b27acd40ee chore(hero): drop the hobbyproject caption line
- remove 'hobbypj ย่อมาจาก hobby project' from the hero, its CSS rule and animation
- wordmark keeps the split browns; DESIGN.md updated
2026-11-19 11:48:49 +07:00
Bkk1234 d27c3dc913 feat(hero): add the hobbyproject wordmark with split browns
- 'hobbyp' + 'j' in brand-900 (12.21:1), 'ro' + 'ect' in brand-500 (3.12:1)
  so the reader connects hobbypj with hobby project
- caption under it: 'hobbypj ย่อมาจาก hobby project'
- wordmark is 24-32px bold, the size at which the light brown still passes AA large text
- entrance animation with the rest of the hero; aria-label keeps the whole word for screen readers
- DESIGN.md records the colour split and the size rule
2026-11-19 11:48:03 +07:00
Bkk1234 a629e67ca4 feat(admin): verify the backoffice password with PBKDF2, not plaintext compare
- ui/auth.js: derive PBKDF2-HMAC-SHA256(name:password) with a per-deploy salt
  (250k iterations) and compare against the verifier in constant time
- config/admin-credentials.json holds salt/iterations/verifier only — no password
- server/set-admin-password.mjs generates/rotates that file (CLI or hidden prompt)
- login is async now: button shows a pending state; config load errors surface in the form
- SW precaches the credentials file; version bumped to 2026.11.19.4
- docs: README/AGENTS explain rotation and the residual limits of a client-side gate
2026-11-19 11:32:48 +07:00
Bkk1234 cd5cb5dd08 feat(admin): gate the backoffice behind a name and password
- ui/auth.js: name/password check, session kept in sessionStorage (new tab asks again),
  5 wrong attempts lock the form for 30s
- admin view renders a login card until authenticated; adds an explicit logout button
- SW precache includes auth.js, version bumped to 2026.11.19.3 (meta + sw.js in sync)
- docs: AGENTS.md notes the gate is client-side; real protection is the server ADMIN_TOKEN
2026-11-19 11:28:20 +07:00
Bkk1234 79b147d38f feat(hero): randomise the three floating cards on every page load
- sample 3 non-repeating projects from the full list with Fisher-Yates shuffle
- order inside the stack is randomised too; stays decorative (aria-hidden)
- docs: DESIGN.md notes the random sample
2026-11-19 11:26:35 +07:00
Bkk1234 f9dffbd132 chore: replace footer columns with a single copyright line
- footer is now '© hobbypj 2026' centred on one row; brand/note/contact columns removed
- site-level contact_email retired end to end (schema, payload, server validation,
  admin field, footer link logic); project-level contact_email untouched
- content-only change: service worker version unchanged (network-first)
2026-11-19 11:24:59 +07:00
Bkk1234 ebaefc8fb7 chore: remove SSL auto-renew notice from page
- drop the SSL note from hero meta, footer column and meta description
- footer becomes two columns; ssl_note removed from data schema, payload and server serializer
- content-only change: service worker version unchanged (network-first)
2026-11-19 01:35:33 +07:00
Bkk1234 2950295690 feat(motion): scroll-reveal and cinematic entrance animations
- motion.css / motion.js: reveal-on-scroll (IntersectionObserver), hero word-by-word
  entrance, drifting warm orbs, sheen on primary CTA, section underline sweep,
  scroll progress bar, count-up numbers
- content never hidden unless <html>.fx-motion: JS off or reduced-motion shows everything
- hover lift moved to the translate property so reveal keyframes cannot override it
- re-call initReveal after grid re-render and admin re-mount; SW precache + VERSION bump
- docs: DESIGN.md §9 motion contract, AGENTS.md pitfalls
2026-11-19 01:10:27 +07:00
Bkk1234 c00bc62272 feat: hobby project landing page (PWA + SPA) with admin backoffice
- landing page: welcome hero, live search, project card grid (10 projects from owner list)
- warm brown/white theme (fastwork-inspired layout), embedded K2D Thai font
- PWA: manifest, PIL-generated icons, versioned service worker with auto-update
- backoffice at #/admin: edit name/description/url, reorder, delete, publish
- server/publish.mjs: zero-dependency static server + PUT api/projects with
  validation, JSON write, git commit and push; loopback-only unless ADMIN_TOKEN
- docs: README, DESIGN.md (color/type contract), AGENTS.md
2026-11-19 01:03:13 +07:00