The Case Studies page — titled “Tales from the Crypt” — presents in-depth project stories as physical paper notes pinned to a rustic wooden corkboard. Each note is slightly rotated, curled at the edges, and topped with a red pushpin, evoking the feeling of a detective’s evidence board that has been sitting in a haunted basement for decades.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/spooky-developer/llms.txt
Use this file to discover all available pages before exploring further.
Route
Corkboard Layout
The outer container is styled as a dark wooden board with a subtle dot-pattern overlay to simulate corkboard texture:| Tailwind class | Purpose |
|---|---|
bg-[#3e2723] | Deep walnut-brown board background |
border-8 border-[#2d1b15] | Thick dark-wood frame |
bg-[radial-gradient(circle,_#000_1px,_transparent_1px)] bg-[length:10px_10px] | Cork dot texture (10 % opacity overlay) |
grid-cols-1 md:grid-cols-2) inside the board, with generous padding (p-8 md:p-16).
Case Studies
Both case studies are defined in a top-level constant:| # | Title | Summary |
|---|---|---|
| 1 | The E-Commerce Exorcism | How we reduced load times from 5s to 0.8s and saved the conversion rate. |
| 2 | Resurrecting the Monolith | Breaking down a 10-year-old app into microservices without downtime. |
Paper Note Styling
Each case study is rendered as a<motion.div> styled to look like a torn sheet of aged paper:
- Background:
bg-[#f4e4bc]— off-white parchment - Typography:
font-spooky text-3xl text-red-900for the title;font-body text-haunt-dark/80for the body - Border accent:
border-b-2 border-red-900/20below the title - Resting rotation: even-indexed notes tilt
-2deg, odd tilt+2degvia inlinestyletransform - Edge wear: two thin
bg-[#e3d3a8]strips at the very top and bottom simulate curled paper edges - Pushpin: an absolutely-positioned
w-6 h-6 bg-red-800 rounded-fulldiv sits above the top edge of each note, centred horizontally, with a tinybg-white/40highlight dot to fake a metallic sheen - CTA:
"Read the full scroll →"— a plain<button>intext-red-900 font-bold hover:underline
Hover Animation
Each note is wrapped in Framer Motion’swhileHover prop for a subtle paper-wobble effect:
- Hovering scales the note up by 2 % and nudges the rotation 1 degree toward centre, giving the impression that someone is picking the note off the board.
- The resting rotation and hover rotation are deliberately opposite in direction so the paper always rocks toward upright on hover.
Adding a New Case Study
Opensrc/pages/CaseStudiesPage.jsx (or the equivalent component in main.js) and append an entry to the CASE_STUDIES array:
last:md:col-span-2 last:mx-auto last:max-w-sm to the note element if you want it centred.
The “Read the full scroll →” button is currently a plain
<button> with no onClick handler or href. To link each case study to a dedicated page, add a url field to the data object and replace the button with a <Link to={study.url}> or an <a href={study.url}>.