Hi, thanks for checking out this front-end coding challenge. this is simple calculator type app that I did as a solution to the Tip calculator app challenge on Frontend Mentor.
Frontend Mentor challenges are very helpful in improving coding skills by building realistic projects.
Note: Delete this note and update the table of contents based on what sections you keep.
App was built according to designs given in jpg format.
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Calculate the correct tip and total cost of the bill per person
- Solution URL: Add solution URL here
- Live Site URL: Add live site URL here
- Semantic HTML5 markup
- Sass
- Flexbox
- CSS Grid
- Mobile-first workflow
I started with learning Sass ,definitely there is a lot more to be learned here and I'm looking forward to gain experience in using it in the best possible way.
Also I have found out how some layouts become really easy with grid use.
For multiple buttons where only one is supposed to give some functionality at any given time I used radio buttons.
Input event handlers are passed as a parameters to debounce function.
Example:
let assignValue = () => {
billAmountVariable = Number(billAmountInput.value);
totalAmountPersonCalculate();
};
billAmountInput.addEventListener("keyup", debounce(assignValue, 500));
I plan to update this challenge by using React. Which is currently my main focus in programming studies.
- Website - Add your name here
- Frontend Mentor - @yourusername
Note: Delete this note and add/remove/edit lines above based on what links you'd like to share.