UI: poet cards (corner bookmark, one size, years on two lines); centred previous/next #59

Merged
anas merged 5 commits from feature/poet-card-layout into main 2026-10-08 23:13:34 +00:00
Owner

Owner request (home page poet cards):

  • The bookmark of a saved poet sits in the card's top-left corner instead of a line of its own, so saved cards are the same size as the others (checked: all pinned cards 82 px high, saved or not).

  • Hijri and Gregorian years on separate lines (yearLines in lib/urdu.ts; years elsewhere unchanged), with more padding so the years stay clear of the rounded border.

  • Years in Naskh so their lines stay compact (cards grew too tall in Brave with Nastaliq).

  • One card size for every poet (210 px; two per row on phones); long names end in … with the full name on hover. Takhallus-only names need pen-name data (Wikidata enrichment, roadmap).

  • Reading pages: پچھلا / اگلا centred, پچھلا on the right and اگلا on the left.

Checked in headless Chrome at desktop and phone width, Nastaliq and Naskh, with three saved poets (temporary test account, removed).

🤖 Generated with Claude Code

Owner request (home page poet cards): - The bookmark of a saved poet sits in the card's **top-left corner** instead of a line of its own, so saved cards are the **same size** as the others (checked: all pinned cards 82 px high, saved or not). - **Hijri and Gregorian years on separate lines** (`yearLines` in lib/urdu.ts; `years` elsewhere unchanged), with more padding so the years stay clear of the rounded border. - Years in **Naskh** so their lines stay compact (cards grew too tall in Brave with Nastaliq). - One card size for every poet (210 px; two per row on phones); long names end in **…** with the full name on hover. Takhallus-only names need pen-name data (Wikidata enrichment, roadmap). - Reading pages: **پچھلا / اگلا** centred, پچھلا on the right and اگلا on the left. Checked in headless Chrome at desktop and phone width, Nastaliq and Naskh, with three saved poets (temporary test account, removed). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
anas added 1 commit 2026-10-08 23:02:30 +00:00
anas added 1 commit 2026-10-08 23:05:33 +00:00
anas added 1 commit 2026-10-08 23:07:36 +00:00
anas added 1 commit 2026-10-08 23:09:52 +00:00
anas changed title from Poet cards: corner bookmark, years on two lines to UI: poet cards (corner bookmark, one size, years on two lines); centred previous/next 2026-10-08 23:11:12 +00:00
anas added 1 commit 2026-10-08 23:11:13 +00:00
anas merged commit f8517aeb85 into main 2026-10-08 23:13:34 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: anas/divan#59
No description provided.