The Scrolls page (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/witch-dev/llms.txt
Use this file to discover all available pages before exploring further.
je component) is the portfolio’s writing showcase. It presents technical articles and reflections in two distinct layouts: a large featured hero card with a folded-corner parchment effect for the pinned post, and a stacked card archive beneath it for all remaining articles. Hovering the archive stack fans the cards out, letting each one become individually readable.
Writing Data
All articles are defined in the constantj:
Field Reference
| Field | Type | Description |
|---|---|---|
id | number | Unique identifier; used as React list key |
title | string | Full article title displayed on the card |
excerpt | string | Short summary shown below the title |
category | string | Content tag: "Reflection", "Bug Report", or "Technical" |
icon | Lucide icon | Icon component rendered on the card face (PenTool, Bug, Terminal) |
date | string | Human-readable publication date |
featured | boolean | When true, the post renders in the hero card layout |
Featured Card
The post withfeatured: true (currently id: 1) is pulled out of the stack and rendered as a full-width hero card above the archive. Its visual treatment is distinct from the archive cards:
Folded-Corner Effect
A CSS pseudo-element folds the top-right corner of the card inward, mimicking a turned page or parchment curl. The fold is rendered with a contrasting inner shadow.
Featured Scroll Badge
A magenta pill badge labelled “Featured Scroll” sits in the top-left corner alongside a
BookOpen icon, immediately signalling the card’s special status.- Date — muted text, e.g.
"Oct 31, 2023" - Title — large heading with full article title
- Excerpt — body-size paragraph with the summary text
glass-panel aesthetic used throughout the portfolio.
Archive Stack
The three non-featured posts (featured: false) render as a stacked card deck below the hero card. The stack state is managed with a single useState pair — [n, s] — where n is a boolean (false = stack collapsed at rest, true = stack fanned out on hover).
Rest State
When no card is hovered, each card in the deck is offset by a small, incremental amount to suggest depth:Hover / Fan-Out State
When the stack is hovered, the cards fan out to become individually readable:y translation on each card for a smooth spring transition.
Article Categories
The three category tags used across the current article set:| Category | Icon | Typical subject matter |
|---|---|---|
Reflection | PenTool | Personal takes, mindset, process |
Bug Report | Bug | War stories about specific bugs and their fixes |
Technical | Terminal | How-to guides, library deep-dives, CSS techniques |
Adding a New Article
To add a post, append a new object to thej array:
featured flag to true and set all other entries to false:
There is no pagination in the current implementation. All non-featured articles appear in the archive stack simultaneously. For larger article collections, consider slicing the array or adding a “load more” interaction.