The Contact page is accessible atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/retrowin/llms.txt
Use this file to discover all available pages before exploring further.
/contact via the Guestbook desktop icon. It renders a RetroWindow titled “sign_my_guestbook.htm” with address http://127.0.0.1/sign_my_guestbook.htm, positioned at x: 300, y: 50 and sized at 450×500 px. The window interior uses a yellow (#FFFFCC) background with a CSS repeating-linear-gradient that draws horizontal ruled lines every 24 px — mimicking a page torn from a lined notebook. The form is entirely client-side: submission sets a local submitted boolean state and shows a thank-you message.
Visual Layout
Heading
A large VT323-font heading ”blue-800, evoking the tilde-and-asterisk decoration style common in early personal homepages.
The Form
The form has four fields, two action buttons, and a reset:| Field | Type | Required | Default Value |
|---|---|---|---|
| Name / Handle | text | Yes | — |
email | No | — | |
| Website URL | url | No | http:// |
| Message | textarea (4 rows) | Yes | — |
win98-inset class that applies a sunken border, and focuses to a pale yellow background (focus:bg-yellow-50).
Action Buttons
Two buttons sit at the bottom of the form, centered with a gap:- POST!!1! —
type="submit", styled inwin-pinkbold text. Triggers form submission. - Clear —
type="reset", restores all fields to their default values.
Submission State
When the form is submitted, thesubmitted state variable flips to true. The form is replaced by:
- A green bold heading: “THANKS FOR SIGNING!!!1!”
- A Sign Again button that resets
submittedtofalse, restoring the form.
Form submission is handled entirely in the browser. No data is sent to any server by default. The
onSubmit handler calls e.preventDefault() and sets submitted(true) — nothing more. You must add backend integration yourself if you want to collect messages.Customization
The Contact page is implemented in theod() function in assets/main.js.
Adding Real Backend Integration
Replace the client-side-onlyonSubmit handler with a fetch call to your own API endpoint:
name attribute matching the keys above so FormData can pick them up:
Customising the Submission Message
Find the success state JSX block — rendered whensubmitted === true — and update the heading and button text:
Changing the Lined Paper Background
The background style is applied as an inlinestyle on the outer <div>:
bg-[#FFFFCC] to any Tailwind or arbitrary color. To change the line spacing, adjust 23px and 24px together (the gap plus the 1 px rule).
Adjusting the Window Position and Size
TheRetroWindow for this page opens near the top-right of the desktop by default. To reposition it, edit the defaultPosition prop: