Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/fortune-seeker/llms.txt
Use this file to discover all available pages before exploring further.
Navigation provides the primary wayfinding for Fortune Seeker. It consists of a fixed gold hamburger icon (Lucide Menu, 32px) in the top-right corner of the viewport that, when clicked, slides in a full-height drawer from the right side of the screen. The drawer lists all nine portfolio routes with divination-themed labels. The active route is highlighted in gold and enlarged. Clicking any link closes the drawer immediately. The drawer’s enter and exit animations are governed by Framer Motion spring physics and AnimatePresence.
Props
This component accepts no props. Route matching, open/close state, and all animations are self-contained.Usage Example
Route List
The drawer renders the following nine links in order:| Path | Label |
|---|---|
/ | The Reading |
/about | The Reader |
/projects | Major Arcana |
/skills | Cast Spells |
/work | Pendulum Swing |
/case-studies | Deep Reading |
/blog | Scribe’s Pages |
/testimonials | Channeled Reviews |
/contact | Send a Sigil |
Behavior & Animation
Hamburger Trigger
A LucideMenu icon (size={32}) is rendered as a fixed element at top: 1.5rem, right: 1.5rem at a high z-index so it always floats above page content. It is styled in gold and opens the drawer when clicked.
Drawer Enter / Exit
The drawer panel is wrapped in Framer MotionAnimatePresence, so it mounts and unmounts cleanly. When opening, the drawer animates from:
x: "100%"(fully off-screen right) →x: 0
x: "100%" before unmounting.
Active Route Highlighting
On each render, the current pathname (obtained via React Router’suseLocation) is compared against each link’s path. The matching link receives:
- Gold text color instead of the default muted gray.
scale: 1.1via a Framer MotionwhileHover-equivalent layout animation, making the active item visually prominent.
Close on Navigation
Each drawer link fires asetIsOpen(false) callback in its onClick handler, immediately triggering the AnimatePresence exit animation before React Router completes the route transition. This ensures the drawer is never left open on the new page.
The
Navigation component imports useLocation from React Router. Fortune Seeker must be rendered inside a React Router <BrowserRouter> (or equivalent) context for active-route detection to work. This is already configured in the application entry point.