You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(lab-card): group columns by kind, not per-link
Rework the column layout so each column represents a distinct link
kind (Demo, Repository, Case study), with same-kind links stacking
vertically within the column in document order.
This makes the Forms Lab card read cleanly — one "Demo" column with
Forms Platform above Forms Lab (experiment), one "Repository" column
with flexion/forms above flexion/forms-lab. Matching list positions
across columns refer to the same project. Headings no longer repeat,
so they carry real categorical weight.
Other cards adjust naturally: Messaging has one Repository column,
Document Extractor has Repository and Case study columns.
- `LabCard`: groups links by kind, preserves per-kind document order,
emits one column per present kind in fixed order (Demo → Repository
→ Case study).
- Styles: columns container auto-fits at 14rem minimum above 32rem;
stacks below. Inner link list is a vertical flex stack with the
icon-prefixed anchors.
- Update home and component view tests to match; update the home test
fixture to include the required `kind` field.
- Update docs/featured-content.md to describe the group-by-kind layout.
Copy file name to clipboardExpand all lines: docs/featured-content.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,9 @@ links:
37
37
38
38
## Rendering
39
39
40
-
The home page renders one `<LabCard />` per lab. Each card places the title and tagline on top, with a horizontal row of columns below it — one column per link. Each column has a small uppercase kind heading ("Demo", "Repository", or "Case study") and the link itself, prefixed with an icon (globe for `demo`, GitHub mark for `repo`, document for `case-study`). Columns flow from 1 → 2 → 4 based on card width via container queries at 32rem and 56rem. The home page's featured list is constrained to `72rem` to keep cards at a readable width on wide displays.
40
+
The home page renders one `<LabCard />` per lab. Each card places the title and tagline on top, with a horizontal row of columns below it — **one column per distinct link kind**, in fixed order (Demo → Repository → Case study). Links sharing a kind stack vertically within their column in document order; matching positions across columns (first demo ↔ first repo) refer to the same project, so a lab with multiple projects should list them in the same order under each kind.
41
+
42
+
Each link is prefixed with an icon (globe for `demo`, GitHub mark for `repo`, document for `case-study`). The columns container collapses to a single column below 32rem; above it, columns auto-fit at a minimum of 14rem wide. The home page's featured list is constrained to `72rem` to keep cards at a readable width on wide displays.
0 commit comments