Skip to content

Commit

Permalink
Troubleshooting form
Browse files Browse the repository at this point in the history
  • Loading branch information
jrparente committed Feb 9, 2024
1 parent 6280f5f commit 0ea19af
Show file tree
Hide file tree
Showing 3 changed files with 143 additions and 140 deletions.
21 changes: 10 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,38 +24,37 @@
</head>

<body>
<form name="work-with-me" data-netlify="true" netlify-honeypot="bot-field" netlify action="/success" hidden>
<input type="hidden" name="form-name" value="work-with-me" />
<input type="text" name="first-name" hidden />
<input type="text" name="last-name" hidden />
<input type="email" name="email" hidden />
<input type="url" name="website" hidden />
<textarea name="story" hidden></textarea>
<select name="services" hidden>
<form name="work-with-me" data-netlify="true" netlify-honeypot="bot-field" netlify hidden>
<input type="text" name="first-name" />
<input type="text" name="last-name" />
<input type="email" name="email" />
<input type="url" name="website" />
<textarea name="story"></textarea>
<select name="services">
<option value="" disabled>Which service are you interested in?*</option>
<option value="Marketing Website">Marketing Website</option>
<option value="Landing Page">Landing Page</option>
<option value="E-commerce">E-commerce</option>
<option value="Web Applications">Web Applications</option>
<option value="Others">Others</option>
</select>
<select name="budget" hidden>
<select name="budget">
<option value="" disabled>Select budget range*</option>
<option value="€500 - €5,000">€500 - €5,000</option>
<option value="€5,000 - €10,000">€5,000 - €10,000</option>
<option value="€10,000+">€10,000+</option>
<option value="I don't know">I don't know</option>
<option value="I prefer not to say">I prefer not to say</option>
</select>
<select name="timeline" hidden>
<select name="timeline">
<option value="" disabled>When do you want to start?*</option>
<option value="Yesterday">Yesterday</option>
<option value="Next Month">Next Month</option>
<option value="In 3 Months">In 3 Months</option>
<option value="I'm flexible">I'm flexible</option>
<option value="I'm in research mode">I'm in research mode</option>
</select>
<textarea name="project" hidden></textarea>
<textarea name="project"></textarea>
</form>

<div id="root"></div>
Expand Down
131 changes: 131 additions & 0 deletions src/pages/work-with-me/_components/WorkWithMeForm.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
import Button from "../../../components/ui/Button";

function WorkWithMeForm() {
return (
<form name="work-with-me" className="w-full" action="/success">
<input type="hidden" name="form-name" value="work-with-me" />
<div className="grid gap-4 sm:grid-cols-2 sm:gap-6">
<div className="w-full">
<input
type="text"
id="first-name"
name="first-name"
placeholder="First Name*"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
/>
</div>
<div className="w-full">
<input
type="text"
id="last-name"
name="last-name"
placeholder="Last Name*"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
/>
</div>
<div className="w-full">
<input
type="email"
id="email"
name="email"
placeholder="Email*"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
></input>
</div>
<div className="w-full">
<input
type="url"
id="website"
name="website"
placeholder="Your current website (if you have one)"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
/>
</div>
<div className="sm:col-span-2">
<textarea
id="story"
name="story"
placeholder="Tell me your story, what does your business do and how did you get here*"
rows={5}
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
></textarea>
</div>
<div className="w-full">
<select
id="services"
name="services"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:bg-neutral-900 dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
defaultValue=""
>
<option value="" disabled>
Which service are you interested in?*
</option>
<option value="Marketing Website">Marketing Website</option>
<option value="Landing Page">Landing Page</option>
<option value="E-commerce">E-commerce</option>
<option value="Web Applications">Web Applications</option>
<option value="Others">Others</option>
</select>
</div>
<div className="w-full">
<select
id="budget"
name="budget"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:bg-neutral-900 dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
defaultValue=""
>
<option value="" disabled>
Select budget range*
</option>
<option value="€500 - €5,000">€500 - €5,000</option>
<option value="€5,000 - €10,000">€5,000 - €10,000</option>
<option value="€10,000+">€10,000+</option>
<option value="I don't know">I don't know</option>
<option value="I prefer not to say">I prefer not to say</option>
</select>
</div>

<div className="sm:col-span-2">
<select
id="timeline"
name="timeline"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:bg-neutral-900 dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
defaultValue=""
>
<option value="" disabled>
When do you want to start?*
</option>
<option value="Yesterday">Yesterday</option>
<option value="Next Month">Next Month</option>
<option value="In 3 Months">In 3 Months</option>
<option value="I'm flexible'">I'm flexible'</option>
<option value="I'm in research mode">I'm in research mode</option>
</select>
</div>

<div className="sm:col-span-2">
<textarea
id="project"
name="project"
placeholder="Tell us about your project. What problems are you hoping to solve by working with us and what does success look like for your business?*"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
rows={5}
required
></textarea>
</div>
</div>
<Button size={"large"} type="submit" className="mt-4 uppercase">
Send
</Button>
</form>
);
}

export default WorkWithMeForm;
131 changes: 2 additions & 129 deletions src/pages/work-with-me/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ArrowRight, MoveUpRight } from "lucide-react";
import SkillBar from "../../components/SkillBar";
import Button from "../../components/ui/Button";
import WorkWithMeForm from "./_components/WorkWithMeForm";

function WorkWithMe() {
return (
Expand Down Expand Up @@ -253,135 +254,7 @@ function WorkWithMe() {
</p>
</div>
<div className="w-full flex justify-center">
<form name="work-with-me" className="w-full">
<input type="hidden" name="form-name" value="work-with-me" />
<div className="grid gap-4 sm:grid-cols-2 sm:gap-6">
<div className="w-full">
<input
type="text"
id="first-name"
name="first-name"
placeholder="First Name*"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
/>
</div>
<div className="w-full">
<input
type="text"
id="last-name"
name="last-name"
placeholder="Last Name*"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
/>
</div>
<div className="w-full">
<input
type="email"
id="email"
name="email"
placeholder="Email*"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
></input>
</div>
<div className="w-full">
<input
type="url"
id="website"
name="website"
placeholder="Your current website (if you have one)"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
/>
</div>
<div className="sm:col-span-2">
<textarea
id="story"
name="story"
placeholder="Tell me your story, what does your business do and how did you get here*"
rows={5}
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
></textarea>
</div>
<div className="w-full">
<select
id="services"
name="services"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:bg-neutral-900 dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
defaultValue=""
>
<option value="" disabled>
Which service are you interested in?*
</option>
<option value="Marketing Website">
Marketing Website
</option>
<option value="Landing Page">Landing Page</option>
<option value="E-commerce">E-commerce</option>
<option value="Web Applications">Web Applications</option>
<option value="Others">Others</option>
</select>
</div>
<div className="w-full">
<select
id="budget"
name="budget"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:bg-neutral-900 dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
defaultValue=""
>
<option value="" disabled>
Select budget range*
</option>
<option value="€500 - €5,000">€500 - €5,000</option>
<option value="€5,000 - €10,000">€5,000 - €10,000</option>
<option value="€10,000+">€10,000+</option>
<option value="I don't know">I don't know</option>
<option value="I prefer not to say">
I prefer not to say
</option>
</select>
</div>

<div className="sm:col-span-2">
<select
id="timeline"
name="timeline"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:bg-neutral-900 dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
required
defaultValue=""
>
<option value="" disabled>
When do you want to start?*
</option>
<option value="Yesterday">Yesterday</option>
<option value="Next Month">Next Month</option>
<option value="In 3 Months">In 3 Months</option>
<option value="I'm flexible'">I'm flexible'</option>
<option value="I'm in research mode">
I'm in research mode
</option>
</select>
</div>

<div className="sm:col-span-2">
<textarea
id="project"
name="project"
placeholder="Tell us about your project. What problems are you hoping to solve by working with us and what does success look like for your business?*"
className="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-primary-500 focus:outline-none focus:ring-0 focus:border-primary-600 peer"
rows={5}
required
></textarea>
</div>
</div>
<Button size={"large"} type="submit" className="mt-4 uppercase">
Send
</Button>
</form>
<WorkWithMeForm />
</div>
</div>
</div>
Expand Down

0 comments on commit 0ea19af

Please sign in to comment.