- Fork this repository to your own GitHub account.
- Complete the tasks described below.
- Commit your changes with clear commit messages.
- Share the link to your forked repository once done.
-
Create a form that:
- Accepts email from the query string (
[email protected]). - Contains a single input field for Full Name (First and Last name combined).
- Validate on the client side that at least two words are entered.
- Has a Submit button.
- Accepts email from the query string (
-
On form submission:
-
Send a POST request to the following webhook:
https://hooks.bushwickdigital.com/webhook/d49038e3-6365-4519-ad4f-d03784b3c121 -
Body should be JSON formatted:
{ "fullname": "Ben White", "email": "[email protected]", "timestamp": "2029-06-01" } -
Include Basic Authentication:
- Username:
devtest - Password:
devtest
- Username:
-
Generate the timestamp dynamically (current date in
YYYY-MM-DDformat).
-
-
After successful submission:
- Show a thank you message.
- Disable the Submit button by default.
- Enable the button only after:
- Full Name field contains two words.
- On clicking Submit:
- Show a loading indicator (spinner or simple text like "Submitting...").
- Hide the loading indicator after submission is complete.
- Use Boostrap to style the form
- Make the form center of screen horizontally and vertically
- Focus on clean, readable, and organized code.