Hi folks, it took me a while to build this website. Along the way, attaching a submit event to the form element requires us to have a button element that is placed inside of that form. I've also changed the font family of this website to increased readability. Anyway, please do create some feedback thanks.
Your submission looks great! A few thoughts while looking through your live preview.
Your <input> elements for "Bill" and "Number of People" are set to text. This allows a user to enter characters other than numbers which results in an error with your JS functions. Consider using type='number' instead.
On desktop, your container's max-width is set to 60%. This results in an overly squished container when viewing on a smaller laptop. Check with DEV Tools Responsive at around 1024px. You'll see the "Custom" input box is cut off slightly. To keep things responsive you could look into min(), max(), or clamp()
I'm not sure of the root cause, but there is some odd behaviour with the background and veritcal positioning of the container between viewport widths of 767/768 - probably to do with your media query, and again between 499/500.
You can set your font size to be variable using clamp(). It works by taking three values
the smallest size acceptable
the target size
the largest size
You can use it many ways in practice, however a quick and simple method is to determine the minimum and maximum font size in PX (or better REM) and use Viewport Width as the target size.
for instance
font-sze: clamp(0.75rem, 3vw, 1rem)
If you're unsure about which target size to use, you can input a value and use dev tools + resonsive mode to slide between your viewports. Monitoring the computed font size will show you if you hit the correct minimum and maxium sizes.
I really enjoyed building this project since it was my first time building my own little utility class names using SCSS. I've also learned to structure files and folders in a more modular way. What do you guys think about the usage of utility class names? Any remarks would be highly appreciated :)
Hey @AF1QUE -- I just had a quick look. The page layout breaks between about 770px and 1150px viewport width. Those would be tablet to low-resolution laptop displays. I haven't learned SCSS yet so I couldn't offer any suggestions on how to fix it. 👍
Amazing work!
What library did you use to generate the QR code?
Your form validation could use some extra information, it requests a URL, but doesn't specify that you need the protocol. www.google.com does not work, but https://www.google.com does. 👍