Minha maior dificuldade foi com css,logica para diminuir a quantidade de codigo é consumir de forma dinamica a lista de trabalhos
My difficulty was with css, logic to reduce the amount of code and dynamically list the work list
Minha maior dificuldade foi com css,logica para diminuir a quantidade de codigo é consumir de forma dinamica a lista de trabalhos
My difficulty was with css, logic to reduce the amount of code and dynamically list the work list
Ola Kenji, bom trabalho.
I see you learned about styled components, those are a great option indeed. You can checkout this library that does styled components in a fast way => https://linaria.dev/
I'm a huge fan of Tailwind for styling, it's for me by far the fastest way to create styles with little code. You can do responsiveness and dark mode with it, and pretty much everything with it. I use mostly this, sometimes styled components, and it has made my life a lot easier. Check it out => https://tailwindcss.com/
Right now, I've hardcoded the numbers in my JS script for the toggle. I tried to instead use Math.trunc
, Math.floor
, parseInt()
, etc. but I wasn't able to get the decimals properly. For example, the result was "199.89" instead of "199.99". I have commented out my attempt in my script. Does anyone know a solution to this?
Hi Kakamotobi, great job the app looks very good! :)
In my opinion there is no reason to have to calculate the prices, you can totally hardcode them. In the real world in a case like this you'd either hardcode the 2 options or receive the values from a database. In either case you don't need to calculate them.
In fact, you're not being able to get the right number, simply because the numbers are not being calculated with an algorithm. They took the monthly prices, multiplied them by 12 to get a year amount, then rounded down to give the user a discount. I'm sure you can find an algorithm to convert the monthly prices into the yearly prices if you try really hard, but in my opinion this goes beyond the scope of this exercise.
New to HTML and CSS. All advice and feedback are appreciated. Thank You!!
Great job, very faithful to design. HTML and CSS look good too :)