TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/paaatrrrick/personalwebsite/llms.txt
Use this file to discover all available pages before exploring further.
/magic-the-gathering route is registered in src/App.js and rendered by the Haus component in src/components/Haus.js.
What the page actually does
Despite the route name, this page does not display Magic: The Gathering content. On mount, it fires afetch request to the Wordsmith API and immediately redirects the browser to a Google Form:
src/components/Haus.js
The component renders an empty
<h1> as a placeholder while the redirect completes. Visitors who navigate to /magic-the-gathering will be sent to the Google Form almost immediately.Route
| Route | Component | Source file |
|---|---|---|
/magic-the-gathering | Haus | src/components/Haus.js |
src/App.js using React Router v4:
src/App.js
Behavior summary
- Visitor navigates to
/magic-the-gathering. - React Router mounts the
Hauscomponent. - The
useEffecthook firesfetchHaus()on mount. fetchHauscallsfetch("https://wordsmith-api-production.up.railway.app/magic-the-gathering").window.location.hrefis set to the Google Form URL, immediately redirecting the browser.
Modifying this page
To change where visitors are redirected, update thewindow.location.href value in src/components/Haus.js. To add actual content instead of a redirect, replace the fetchHaus logic and the return statement with your desired JSX.