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.
Daniel
@obriedanAll comments
- @johnrookie-coderSubmitted over 2 years ago@obriedanPosted over 2 years ago
Hey John,
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 usingtype='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.
Hope this helps!
Marked as helpful0 -
- @mohit1607Submitted over 2 years ago
I just want to know how to set the size of the font for small screen sizes and also how to be perfectly responsive
@obriedanPosted over 2 years agoYou 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.
Marked as helpful1 - @NathanYee412Submitted over 2 years ago@obriedanPosted over 2 years ago
Hey Nathan,
There should be the linebreak in the starter pack, it's in the assets folder.
Is there a reason you have three
<br />
tags? If you're trying to create space, considermargin
orpadding
instead.Another small tip, you may want to destructure the props you send into your 'Advice.js' component.
function Advice({number, quote}) { ..... rest of function }
Doing this means you only grab the props you need, and you don't need to use
props.number
orprops.quote
in your JSX.Marked as helpful0 - @AF1QUESubmitted over 2 years ago
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 :)
@obriedanPosted over 2 years agoHey @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. 👍
1 - @denieldenSubmitted almost 3 years ago
Hi there :)
This challenge was to build the QR Code component, but it has become something more complex than a simple component!
Inspired by another project, I wanted to add features to this challenge using React:
- On load, it shows the default basic QR Code
- Added a form that allows the user to enter a website URL to generate a QR Code for it
- Dynamically update the QR Code as you type the URL
- Dynamically update the color and background of the QR Code based on the customization input entered by the user
- When the form is sent, the
.png
of the generated QR Code is downloaded
I am eager to further evolve this project and learn much more connecting a serveless database! For now I'd be happy to have some feedback ;)
Special thanks to @Remus432, he have really inspired me to create this dinamic component!
Thank you for taking the time to check out my project! And Happy coding ;)
@obriedanPosted almost 3 years agoAmazing 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, buthttps://www.google.com
does. 👍Love it either way. Super clean.
Marked as helpful1