diff --git a/src/pages/api/normalize-structured-text/_utils/routes.json b/src/pages/api/normalize-structured-text/_utils/routes.json index 510d2501..53e35371 100644 --- a/src/pages/api/normalize-structured-text/_utils/routes.json +++ b/src/pages/api/normalize-structured-text/_utils/routes.json @@ -206,6 +206,9 @@ "/product", "/product-updates", "/security", + "/share-your-feedback/error", + "/share-your-feedback/thanks", + "/share-your-feedback", "/slack/thanks", "/slack", "/success-stories", diff --git a/src/pages/share-your-feedback/_Form/index.tsx b/src/pages/share-your-feedback/_Form/index.tsx new file mode 100644 index 00000000..6cd8fa72 --- /dev/null +++ b/src/pages/share-your-feedback/_Form/index.tsx @@ -0,0 +1,101 @@ +import Textarea from 'react-textarea-autosize'; +import s from './style.module.css'; +import { FormReactComponent } from '~/components/form/Form/ReactComponent'; +import { FieldReactComponent } from '~/components/form/Field/ReactComponent'; +import { getCookie } from '~/lib/cookies'; + +type FormValues = { + firstName: string; + lastName: string; + email: string; + jobFunction: string; + title: string; + body: string; + issueType: 'sales' | 'enterprise' | 'feedback'; +}; + +export function Form({ issueType }: { issueType: 'sales' | 'enterprise' | 'feedback' }) { + const defaultValues: FormValues = { + firstName: '', + lastName: '', + email: getCookie('datoAccountEmail') || '', + jobFunction: '', + title: '', + body: '', + issueType, + }; + + return ( +
+ Whether you have a quick thought to share, an idea for improvement, or want to discuss + your experience with DatoCMS, we’re all ears. +
+ +Your insights help us shape the product and make it even better.
+ +Fill out the form, and we’ll review your feedback as soon as possible.
+ ++ The more details you provide, the more useful your input will be! + {' '} + It helps us understand your needs better and reduces the back-and-forth. +
++ Want to chat? Book a 30-minute call with our designer to share your experience + directly. Book a call +
+ ++ Want to be part of something bigger? Join our Research Program, this is + the best way to help shape the product. + Learn more & sign up +
++ We have successfully received your request, and + you will shortly receive an automated confirmation via email. Thank you for + your interest in DatoCMS! +
+