Skip to content

maceq687/Orange-rabbit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React 18.2.0. Bootstrap 5.3.0.

Orange-rabbit

Festival signup form created using React and Bootstrap

Showcasing:

  • Implementing a simple design (from Figma) using HTML & CSS.
  • Simple DOM manipulation with Javascript (creating, inserting, deleting elements, event listeners, etc.).
  • Manipulating data structures with JavaScript.
  • Writing asynchronous JavaScript.
  • Making requests to an API.

Objective:
The form will be used by users who want to sign up themselves and optional additional participants for an event.

The form starts with the following fields:

  1. Name
  2. Email address
  3. Phone number
  4. Birthdate

The user should have the option to add the same fields to add more participants. It should also be possible to remove the additional participants but not the main participant.

The form data should be submitted (async) to a fake API endpoint. Suppose that the endpoint accepts a JSON body with the structure defined below. Note that there’s an additional ID field for each participant which is not part of the form.

Single Participant

{
  id: 0,
  name: "",
  email: "",
  phone: "",
  birthdate: ""
}

Payload (post request body)

{
  main_participant: {}
  sub_participants: [{}]
}