forked from Mike/freno-dev
Merge branch 'per-subdomain-contact-pages' (task 09)
# Conflicts: # src/routes/contact.tsx
This commit is contained in:
20
src/routes/inputhalo/contact.tsx
Normal file
20
src/routes/inputhalo/contact.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ContactForm } from "~/components/ContactForm";
|
||||
|
||||
/**
|
||||
* InputHalo contact page (`inputhalo.freno.me/contact`).
|
||||
*
|
||||
* Thin wrapper over the shared `<ContactForm>` (task 09). Site awareness —
|
||||
* subject prefix `[InputHalo]`, recipient label, heading, and PageHead
|
||||
* metadata — is derived from `useSite()` inside the component via
|
||||
* `CONTACT_CONTEXT.inputhalo`, so this route needs no explicit props.
|
||||
*
|
||||
* vercel.json rewrites `inputhalo.freno.me/*` → the internal `/inputhalo/*`
|
||||
* route prefix; the browser URL stays `inputhalo.freno.me/contact`.
|
||||
*
|
||||
* Acceptance: `inputhalo.localhost:3000/contact` renders the contact form
|
||||
* with InputHalo branding; submissions email `michael@freno.me` with subject
|
||||
* `[InputHalo] Contact Request`.
|
||||
*/
|
||||
export default function InputHaloContactPage() {
|
||||
return <ContactForm />;
|
||||
}
|
||||
Reference in New Issue
Block a user