TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/dyed-in-the-wool/llms.txt
Use this file to discover all available pages before exploring further.
Work component (internally function Q) presents the portfolio’s employment history as a woven tapestry — each role is a thread in the timeline, rendered as an alternating left/right card layout centred around a vertical spine. Colored accent dots anchor each entry to the rail.
What It Displays
The page is structured as:- Section header — the title “THE TAPESTRY” animates in from the left on mount.
- Central timeline rail — a vertical line runs down the center of the content area from top to bottom.
- Work entry cards — three cards, alternating left and right of the rail. Each card shows:
- The year range (e.g., 2023 - Present)
- The role/title
- The company name
- A short description paragraph
- Colored dot markers — a circular dot, colored with the entry’s
colorvalue, sits on the central rail at each card’s attachment point.
Content Data
Work entries are stored in theZ array:
Animation Details
| Element | Technique | Details |
|---|---|---|
| Section title | initial → animate on mount | x: -20 → 0, opacity: 0 → 1 |
| Timeline rail | CSS div with fixed positioning | Static vertical bar; no CSS scaleY animation |
| Dot markers | Inline style with backgroundColor | Each dot is colored per entry; no separate scale animation |
| All cards | whileInView fade + slide | y: 50 → 0, opacity: 0 → 1, duration: 0.6 s; fires once per card |
| Card layout alternation | CSS flex direction | Even-indexed entries use md:flex-row-reverse to swap card to the left side |
| Card hover | whileHover elevation | Box shadow deepens; subtle y: -2 lift |
whileInView animations use { once: true } — they do not replay on scroll-back.
Customization
Add a new work entry Append an object to theZ array. Entries render in the order they appear, so prepend for most-recent-first:
color field — it controls the dot on the timeline rail and the year badge background:
company, role, or description strings in the Z array. No other changes are needed.
Adjust the alternating direction
Card direction is determined by index % 2. Even-indexed entries use md:flex-row-reverse (card on the left). To flip this convention, swap the condition:
The central timeline rail is drawn with a thin
div, not an SVG line. If you significantly increase the number of entries, ensure the parent container does not have a fixed max-height that would truncate the rail before the final dot.