The Work History page (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/sorcerer/llms.txt
Use this file to discover all available pages before exploring further.
/work) presents a mystical vertical timeline of past roles under the heading “Spells Cast” with the subtitle “A history of my magical employ”. As the visitor scrolls, the timeline line grows from top to bottom using Framer Motion’s useScroll and useTransform hooks, and each role card animates into view with a staggered reveal of its bullet-point details.
Timeline Design
The central vertical line is the page’s most distinctive visual element. It uses abg-gradient-to-b from-turquoise-glow to-velvet-purple class and carries a turquoise box-shadow (0 0 10px #2dd4bf) to produce a glowing neon effect. The line’s height is driven by a Framer Motion MotionValue derived from the scroll position of the timeline container:
useInView. Before it enters the viewport, the card is invisible and collapsed (opacity: 0, height: 0, padding: 0). Once it crosses into view, it expands to its natural height (opacity: 1, height: "auto", padding: "2rem"). The individual detail bullet points inside the card stagger in from the left:
- Initial state:
opacity: 0,x: -20 - Animate state:
opacity: 1,x: 0 - Delay formula:
0.5 + index * 0.1seconds per bullet
Work History Data
The three work entries are stored in thewt array inside assets/main.js. Each object contains a role, coven (employer), years, and a details array of achievement strings.
Adding a New Role
Locate the wt array
Open
assets/main.js and search for the wt array declaration. It is defined near the top of the WorkHistoryPage component. You will see the three existing entries for TechCorp Inc., Startup.io, and Digital Agency.Append a new entry object
Add a new object to the end of the The timeline renders entries in array order (newest first by convention). Save the file and the new card will appear automatically with the same scroll-driven reveal animation as the existing entries.
wt array (or insert it at the desired chronological position). Provide values for all four keys — role, coven, years, and details: