feat(marketing): add contact form submission and testing setup

- Add contact API endpoint for demo requests and sales enquiries
- Implement functional contact forms on Demo and Pricing pages with honeypot spam protection
- Update footer layout: remove Company section, add contact email
- Update self-hosted FAQ to mention open source with GitHub links
- Add vitest and testing-library dependencies
- Add tests for MarketingLayout and PricingPage components
- Remove placeholder external-auth test file
This commit is contained in:
2026-04-18 00:33:02 +09:30
parent 2baf6cd51a
commit cb62079b4f
12 changed files with 1794 additions and 343 deletions
+16
View File
@@ -1223,6 +1223,22 @@ export const api = {
),
},
contact: {
submit: (data: {
email: string;
name?: string;
company?: string;
enquiry_type: string;
message?: string;
interest_area?: string;
_hp?: string;
}) =>
request<void>('/contact', {
method: 'POST',
body: JSON.stringify(data),
}, false),
},
ssh: {
// List all SSH keys for the current user
listKeys: (requestConfig?: RequestConfig) =>