The Home page is the first thing visitors see when they arrive at DevHaunt. It fills the viewport with a centred hero section built around aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/dev-haunt/llms.txt
Use this file to discover all available pages before exploring further.
HauntedHouse SVG illustration whose front door opens as the user scrolls. Two Framer Motion entrance sequences — one for the headline and one for the call-to-action — fire on mount to draw the eye from top to bottom before the door begins to creak open.
Route:
Static HTML:
Page function:
/Static HTML:
index.html (repo root)Page function:
I() in assets/main.jsWhat the page displays
| Element | Content |
|---|---|
Headline (h1) | Welcome Foolish Mortals |
Subtitle (p) | I'm a frontend developer crafting scarily good user experiences. Grab some candy and take the tour. |
| Hero illustration | HauntedHouse SVG — door opens on scroll |
| CTA button | Step Inside → links to /about |
| Scroll hint | Scroll to creak the door open... |
Halloween-themed concept
The page leans into a haunted-house welcome. The headline borrows the classic theme-park “Welcome, foolish mortals” line, the CTA invites visitors to literally step inside, and theHauntedHouse illustration anchors the spooky atmosphere. The font-spooky typeface and pumpkin-orange glow (drop-shadow + shadow-[0_0_20px_rgba(255,122,26,0.4)]) reinforce the aesthetic throughout.
Interactive behaviour
- Scroll trigger: The
HauntedHousecomponent listens to the window scroll position and animates its front door open as the user scrolls down the page. No additional state management is needed — the animation is self-contained inside the component. - CTA hover: The “Step Inside” button scales up to
1.05×on hover and transitions its background frompumpkinorange toghostwhite. TheArrowRighticon inside the button slides1pxto the right on hover viagroup-hover:translate-x-1.
Framer Motion animations
Both animated wrappers usemotion.div with identical y-axis entrance keyframes but different delay values.
HauntedHouse SVG renders between the two animated blocks and handles its own scroll-driven animation internally.
How to customise
All visible text lives directly in the JSX of theI() function in assets/main.js.
Update the headline
Locate the
h1 inside the first motion.div (transition delay 0.2) and replace "Welcome Foolish Mortals" with your preferred greeting.Update the subtitle
The
p tag immediately below the h1 holds the subtitle copy. Edit the string to describe your own speciality.Change the CTA destination
The
Link component (m imported from Navigation.js) has to="/about". Update this prop to point to any other route if needed.Change the CTA label
Replace the text node
"Step Inside" inside the Link with your preferred button label.