tangway / flag-guessing-game-frontend

0 stars 0 forks source link

style multiple choice interface with css #2

Open tangway opened 6 months ago

tangway commented 6 months ago

it was difficult getting started on this as i havnt been doing css for quite a few months. as always it helps to just start writing the simplest version of it i knew and it would start a natural feedback loop where you keep iterating upon it.

was also a good reminder of the process of using devtools to debug css problems:

tangway commented 5 months ago

chose a neutral gradient for background from https://cssgradient.io/gradient-backgrounds/ it had to not clash with the colors most used in flags so the flags would stand out

tangway commented 5 months ago

button was chosen from button no. 30 here: https://getcssscan.com/css-buttons-examples

the Next button was done by flipping the colors of this

tangway commented 5 months ago

kept .next-button-container div class as having this container in the html structure somehow prevents the bug where the choices never get removed from the page when you click Next and they keep on accumulating on the page