This is a solution to the Calculator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
- Overview
- The challenge
- Screenshot
- Links
- My process
- Built with
- What I learned
- Continued development
- Useful resources
- Author
- Acknowledgments
Users should be able to:
- See the size of the elements adjust based on their device's screen size
- Perform mathmatical operations like addition, subtraction, multiplication, and division
- Adjust the color theme based on their preference
- Bonus: Have their initial theme preference checked using
prefers-color-scheme
and have any additional changes saved in the browser
- Solution URL: (https://github.com/victor247k/Calculator-App)
- Live Site URL: (https://victor247k.github.io/Calculator-App/)
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- Javascript
I learned about .eval(), forEach() and .slice() in js, I learned about input type range and its the first time I used it and lastly I learned how to style this input type, about variables and the root thing, and I gto better at styiling things.
<input type="range" min="1" max="3" value="1" id="rangeBtn">
:root {
--blue: blue;
--red: red;
}
body {
background: var(--blue);
}
rangeBtn.addEventListener('input', coolFunction());
text.innerText = eval(text.innerText);
text.innerText = text.innerText.slice(0, -1);
I am not stil comfortable with my styling techniques, i stil want to continue improving in this area, I make a lot of mistakes in js, and i want to get better at naming stuff in html, that's all i would like to improve on for now.
-
Example resource 1 - This helped me with understanding the input type range button and how to style it. I really like how this source explains this concept, i understood almmost everything mostly from images. Great source.
-
Example resource 2 - This is an amazing website which helped me finally understand the box shadow. I'd recommend it to anyone still learning this concept.
- Website - No website yet, working on it.
- Frontend Mentor - @victor247k
- GitHub - @victor247k
- Discord - [@victor247#1836]
I am grateful for FrontEnd Mentor for coming up with this chalange, for the indian guy on youtube and his tutorials, and for all of the learning resources on the internet.