Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/spooky/llms.txt
Use this file to discover all available pages before exploring further.
Navigation renders a hamburger icon button fixed in the top-right corner of every page. Clicking it opens a full-screen slide-in drawer from the right side of the viewport, listing all nine portfolio pages under their spooky Halloween aliases. The drawer animates open and closed using Framer Motion spring physics and staggers each navigation item’s entrance for a polished feel.
Navigation labels
The navigation drawer uses thematic aliases instead of generic page names. The full route-to-label mapping is:| Route | Spooky Label |
|---|---|
/ | The Porch |
/about | Meet the Resident |
/projects | Rooms in the House |
/skills | The Toolshed |
/work | The Family Tree |
/case-studies | Ghost Stories |
/blog | Notes from the Attic |
/testimonials | Whispers in the Hall |
/contact | Leave a Note |
Menu behavior
The drawer interaction works as follows:- Clicking the hamburger icon (Lucide
Menu) in the top-right corner opens the drawer. The panel slides in from the right with a Framer Motion spring:damping: 25, stiffness: 200. - The currently active route is highlighted with pumpkin orange text (
#FF7518) and a left border in purple (#4A1A5C). - Each navigation item staggers in with a sequenced delay of
index * 0.05seconds, so items cascade from top to bottom rather than all appearing at once. - Clicking any navigation link navigates to the route and closes the drawer.
- Clicking the backdrop (the dimmed overlay behind the drawer) closes the drawer without navigating.
- A
Xbutton (LucideX) in the drawer header also closes it. - The drawer footer displays the text
"Tread carefully..."as a thematic sign-off.
Icons used
The drawer header displays a LucideSkull icon in pumpkin orange (#FF7518) beside the label "Directory". This serves as the drawer’s title area, giving the menu a consistent branded header. The hamburger button itself uses the Lucide Menu icon, and the close button uses the Lucide X icon.
Changing navigation labels
The labels are defined in the routes array withincomponents/Navigation.js. To change them, fork the source, locate the routes array, and edit the label values:
components/Navigation.js with the new compiled output.
Adding a new page
To add a new route to the navigation:- Create the HTML entry file — add a new
yourpage.htmlat the repository root using the same structure as the existing HTML files (a<div id="root">and<script type="module" src="./assets/main.js">). - Add the route to the React Router config — register the new path and its component in the router definition inside
assets/main.js. - Add an entry to the navigation labels array — append a new
{ path: '/yourpage', label: 'Your Spooky Label' }object to the routes array in the Navigation source. - Rebuild — run the Vite build and deploy the updated compiled files.