First frontend challenge! Next time I might try Tailwind CSS instead of plain CSS.
What challenges did you encounter, and how did you overcome them?The biggest challenge was the width of boxes. Noticed in the figma design files, only qrcode had a fixed size. All other boxes are adjusted automatically based on the qrcode.
I guess the key is to set the .container
(or .card
)'s width: min-content
. And set children's width: 100%
. Then it seems alright.
How to code it more elegantly?