Aurora Drift uses React Router for client-side routing and a small convention of per-page HTML entry files in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/aurora-drift/llms.txt
Use this file to discover all available pages before exploring further.
pages/ directory that inject the correct hash route before the SPA boots. How much of this process you can complete depends on whether you are working with the compiled repository or the original Vite source project.
Compiled repository: You can add the HTML entry file (step 2) and update the nav label text (step 4). The page component and route registration (steps 1 and 3) require the original Vite source because they involve JSX files and
App.jsx, which are compiled into the minified assets/main.js bundle and cannot be safely edited by hand.Create a new React page component
This step requires the original Vite source project. Create a new file in the The
The transition uses a duration of
src/pages/ directory (e.g. src/pages/Portfolio.jsx). Wrap the entire page content in the <PageTransition> component — this gives every page its smooth opacity + y + blur enter/exit animation. The PageTransition component already applies pt-24 pb-12 px-6 md:px-12 max-w-7xl mx-auto sizing and padding, so you do not need to repeat those classes on an inner wrapper.PageTransition animation values (from components/PageTransition.js) are:| State | opacity | y | filter |
|---|---|---|---|
initial | 0 | 20 | blur(10px) |
animate | 1 | 0 | blur(0px) |
exit | 0 | -20 | blur(10px) |
0.6 s with a custom cubic-bezier ease [0.22, 1, 0.36, 1].Add an HTML entry file
This step can be done directly in the compiled repository. Every page in Aurora Drift needs a matching static HTML file so that the correct hash route is set before React hydrates. Copy The rest of the file — the asset
pages/About.html and rename the copy to match your new page (e.g. pages/portfolio.html). Make three targeted edits inside the new file:- Change the
<title>tag to reflect your new page name. - Set
window.__STATIC_PAGE_ROUTE__to your new path string. - Update the hash redirect condition to point at the same path.
<script> and <link> tags referencing ../assets/main.js and ../assets/main.css — should remain identical to About.html. The relative paths (../assets/) are correct for files placed in the pages/ subdirectory.Register the route
This step requires the original Vite source project. Open Aurora Drift wraps
src/App.jsx and find the <Routes> block. Add a new <Route> entry alongside the existing ones:<Routes> in <AnimatePresence> for route-change animations. Make sure your new route is a direct child of <Routes> — not wrapped in an extra element — so the presence detection works correctly.Add to the Nav
Open Add an object for your new page:The nav maps over this array to render the desktop navigation links with their hover underline and active-state highlighting. Keep
components/Nav.js in the compiled repository and locate the navLinks array. The existing entries follow this shape:label short — the nav is designed for 2–4 word entries at most.The mobile hamburger menu in Aurora Drift is a stub — it renders a button icon but does not open a drawer or overlay. If you need mobile navigation, you will need to implement the menu panel yourself in
components/Nav.js.Build and verify
If you made changes in the original source project, run the Vite build to regenerate the output:Check the
dist/pages/ directory and confirm that Vite has emitted a portfolio.html. Open the built site locally with npm run preview and navigate directly to /pages/portfolio.html — you should see your new page render with the aurora background, nav, and page-transition animation intact.If the page is blank, double-check that:- The route path in
window.__STATIC_PAGE_ROUTE__exactly matches thepathprop in<Route>. - The component is correctly imported in
App.jsx. <PageTransition>wraps the component’s JSX return.