Describe the bug
Hey! I was testing out the landing page. After typing my GitHub username into the main input field, I hit the Enter key out of habit to generate the badge, but nothing happens. I have to physically use my mouse to click the "Generate" button.
Expected behavior
Hitting the Enter key while focused on the input field should trigger the search/routing, just like a standard form.
Possible Solution
Taking a quick look at the code, it seems the <input> and <button> are just sitting inside a <div>. If we wrap them in a standard HTML <form> tag and change the button type to submit, the browser will handle the Enter key native behavior automatically.
Let me know if you'd like me to open a PR for this!
Describe the bug
Hey! I was testing out the landing page. After typing my GitHub username into the main input field, I hit the
Enterkey out of habit to generate the badge, but nothing happens. I have to physically use my mouse to click the "Generate" button.Expected behavior
Hitting the
Enterkey while focused on the input field should trigger the search/routing, just like a standard form.Possible Solution
Taking a quick look at the code, it seems the
<input>and<button>are just sitting inside a<div>. If we wrap them in a standard HTML<form>tag and change the button type tosubmit, the browser will handle theEnterkey native behavior automatically.Let me know if you'd like me to open a PR for this!