
Responsive Ticket Generator | HTML, SCSS, JS
Design comparison
Solution retrospective
Im most proud of getting the challenge completed and having a free design credit from the leaderboard was necessary for this to look good.
I could make the scss and js code better and improve accessibility as well.
What challenges did you encounter, and how did you overcome them?Many challenges.
- Multiple background images was hard mainly in terms of knowing how to use them and keeping track of which location they are in when using different properties like background-position. I just had to keep in mind the positions of them and use commas to separate each bg.
- Drag and drop UI. It was hard because I never did any like that,from the OS to the webpage and I also needed some refreshes on the D&D API. Got some help from chatgpt which added the event listeners as an array and prevents the default action from happening
- Finally, I had some issues with submitting the form, checking the correct file type and size. ALso I made use of localStorage and the
FileReader
class to help manipulate the image easier.
I would like to know ways I can improve my accessibily, scss code and my JS code.
Community feedback
- @bccpadgePosted 3 months ago
Hi @dylan-dot-c. Congratulations on completing this challenge!!!🎉
To make your HTML more semantic when using
<form>
you can update your code with the example below<form> <fieldset> <legend>Sign up to get Conference ticket</legend> </fieldset> <fieldset></fieldset> <fieldset></fieldset> </form>
You can put your
<label>
and<input>
in each<fieldset>
More info📚:
I hope you find this useful and don't hesitate to reach out if you have any questions
Marked as helpful1@dylan-dot-cPosted 3 months ago@bccpadge Thanks, so your saying that instead of using divs to group my form fields I should use
fieldset
element and for the legend can I make it asr-only
class so only screen readers can see it?0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord