Skip to content

MMWijesundara/hackovate-challenges

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Hackovate-Challenges

This repository is for Hackovate-2023 on day challenges

Hackovate Guidelines

  • You have 2 hours to complete 5 issues.
  • Fork the repository first (only fork the main branch).
  • You have five issues to complete. Try to complete them one by one from issue #1
  • You need to create pull requests for each issue.
  • Ensure that you create a pull request for the specific branch created for you, with your GitHub username, in the fossnsbm/hackovate-challenges repository.
  • Pull request topic should follow the format #<issue-number>-<GitHub-username> Example: #2-ravindu0823.
  • Add a specific issue number label to your PR that we already created for you.
  • Your code should fulfill all the functionalities and requirements mentioned in this particular issue.
  • Your code should be genuine; if it's like spam, AI-generated, or likewise, your PR will be automatically rejected.
  • If your pull request does not meet these guidelines, it will be rejected.

ISSUE 1

ISSUE #2 Select items based on the pre-selected quantity The user needs to select a quantity first for each section. After selecting a quantity, the user is only able to select items according to the pre-selected quantity. Ex: If he selects quantity as 2 in the guns section, he will only be able to select 2 types of guns in the below-selected area. Give warnings according to the above limitations. Selecting buttons should be toggleable.

ISSUE #3 Interactive clicks (toggle buttons) You need to update the subtotal of each section based on the selected item prices. The subtotal should be updated in real time.If the user unselects an item, the subtotal needs to be reduced, and if he selects an item, it should be increase.

ISSUE #4 Check that the selected item numbers match the selected quantities When pressing the order now button, you need to check the selected item count in each section to match the quantity you defined at the top. If the user selects fewer items than defined at the top, give a warning message.

ISSUE #5 Final submit popup and thank you message After completing all four issues, only you can complete this one. You should get the subtotal price of the gun prices and inventory and display the total price with a pay-now button in a pop-up box. When the user clicked the pay now button, a thank-you message was given, and the quantity and other selected items were reset. You can create a popup and thank-you message UI as you wish.

About

This repository is for Hackovate-2023 on day challenges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 47.2%
  • JavaScript 37.0%
  • CSS 15.8%