Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Interest rate calculator with HTML, CSS and Javascript

Fran‱ 25

@FranciscoMi

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Pardon this little license. To do something different, I decided to transform the tip calculator into a new version in Spanish.

On the other hand, to establish concepts, I chose not to use flexbox, in this way I settled basic knowledge

I recognize that I have had a big jam designing the CSS classes so that they can be organized. I have heard about the BEM methodology and I don't know if it would be appropriate to learn it. I would appreciate your most humble opinion. Thank you all

Community feedback

@bramuccci

Posted

Hola! NotĂ© algunas cosas, y las querĂ­a comentar. En primer lugar veo que el padding de la calculadora es muy poco, yo lo aumentarĂ­a y mantendrĂ­a durante todo ese div (un div "calc" que encierre el contenido y tenga el padding). AumentarĂ­a el font-weight de los label y les pondrĂ­a un color gris. En segundo, la pĂĄgina no recalcula cada vez que un carĂĄcter es escrito. Esto se resuelve usando .addEventListener('click', ...). Esta guĂ­a me fue muy Ăștil! https://developer.mozilla.org/es/docs/Learn/Forms/Form_validation Por Ășltimo, BEM es una metodologĂ­a muuuy Ăștil una vez se aprende a usarla (aunque yo siga teniendo problemas) por lo que ampliamente recomiendo que la aprendas. Espero haber ayudado, me gusta mucho tu alternativa hispana para este reto :)

Marked as helpful

0

Fran‱ 25

@FranciscoMi

Posted

@Liltanie

Muchas gracias. La verdad es que no conocía la pågina y es muy completa. Al tratar de hacer las modificaciones me he dado cuenta de lo que me queda por aprender. Muchas de ellas me obligan a replantearme un cambio desde cero. Voy a ver si consigo que la pågina recalcule los tipos cada vez que teclee un valor en todos los campos numéricos. Gracias

1

@bramuccci

Posted

@FranciscoMi De nada!! Me alegra haber ayudado đŸ„° suerte

0
Ayoub1Dev‱ 195

@Ayoub1dev

Posted

Hola amig@, he econtrado un problema de accesibilidad muy molesto. Cambio a ingles : ) , para que otros tambien aprendan de este fallo

PROBLEM

The accessibility is that when any of the input fields is click the 0 stays on the input field.

  • Example If I try to type 21 euros the value typed is 210 instead of 21.

WHAT CAUSED THE PROBLEM

The problem is because you have set the value of the input to 0 in your HTML value="0"

SOLUTION

Remove the value atribute from your HTML and add a placeholder attribute. placeholder="0"

chupado

Marked as helpful

0

Fran‱ 25

@FranciscoMi

Posted

@Ayoub1dev Thanks. Thanks a lot. Thank you very much for this solution. Simple and straightforward, but very, very effective.

0
Ayoub1Dev‱ 195

@Ayoub1dev

Posted

@FranciscoMi 😊👍

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord