- Fork this repository to any git account
- Commit you progress every time you're compleating a task, don't forget to push and the end
- Share the repository to job@paupenin.com and send the URL with the same email you sent CV
- Use NPM to install packages
npm install
- Compile
src
folder resources intodist
folder
npm run build
- Start development http://localhost:3000/ server
npm run start
- Add functionality to the button to show the modal
#modal-skill-test
- Fix the form for proper styling with Bootstrap
- Make an AJAX request using jQuery to REQ|RES API. The data of request must be the content introduced on the form.
{
method: "POST",
url: "https://reqres.in/api/users",
data: {
name: "Lorem", // input
surname: "Ipsum", // input
email: "lipsum@example.com", // input
}
}
- Close modal and reset input values after AJAX request completion
- Install and require sweetalert2 (prefered via npm)
- Show sweetalert2 modal after AJAX request with following configuration where
${name}
,${surname}
,${id}
and${email}
are the returned data from API:
{
type: "success",
title: `User '${name} ${surname}' (${id}) created`,
text: `A confirmation email was sent to '${email}'`,
showConfirmButton: false,
timer: 1500
}
- Change theme primary color to
#0E2F44
with bootstrap global variable onsass/common/_variables.scss
- Create and apply the mixin commented on file
sass/components/_modals.scss