This is a clone Counter-App website.
- Table of contents
- Overview
- Screenshot
- Project
- Skeleton
- Links
- My process
- Built with
- What I learned
- Useful resources
- Author
- This is a simple tool for counting things and keeping truck of numbers.
Project Skeleton
|----index.html
|----style.css
|----app.js
- live site URL here: https://counter-app-xi-five.vercel.app
-
Built with Semantic HTML5 markup
-
CSS custom properties
-
Flexbox
-
JavaScript HTML DOM
-
Google Specific Fonts
-
Mobile-first workflow
-
Styled Components - For styles
- I learned how to use DOM manipulation , javascript DOM manipulation, @keyframes, html elements and many more.
To see how you can add code snippets, see below:
Some JS code I'm proud of
for (let i = 0; i < btnBorder.length; i++) { btnBorder[i].addEventListener("click", function () {
for (let j = 0; j < btnBorder.length; j++) {
if (btnBorder[j] !== this) {
btnBorder[j].style.border = "none"
}
}
// Change border style of clicked button
this.style.border = "2px solid #fff"
if (event.target.matches('.white-btn')) {
settingsSection.style.color = "#141516"
resetCounter.style.color = "#141516"
} else if (!event.target.matches('.white-btn')) {
settingsSection.style.color = "#ced4e2"
resetCounter.style.color = "#ced4e2"
document.querySelector(".approve-btn").style.color = '#ced4e2'
document.querySelector(".cancel-btn").style.color = '#ced4e2'
}
})}
- W3 School This helped me for basics of website paradigm. I really liked this pattern and will use it going forward.
- MDN This is an amazing document which helped me finally understand deep sides of web development. I'd recommend it to anyone still learning these concepts.