Hi campers,
I would like to see if anyone would be able give some feedback to my Random Quote Machine project.
Thank you in advance
Hi campers,
I would like to see if anyone would be able give some feedback to my Random Quote Machine project.
Thank you in advance
Overall, very nicely done. You just used jQuery for this, which is perfectly fine, but I would suggest you use a framework (probably React) for at least one of these front-end projects since part of the reason for doing them is to learn a framework.
A few suggestions on the UI:
<blockquote>
for the quote. You could even wrap the whole thing in a <figure>
and use a <figcaption>
for the reference: see the MDN blockquote docs.em
(or rem
) units so that the element can grow as the text size gets bigger. If you don’t quite know what I am referring to, google for ‘zoom text only’.outline
property on the :focus
pseudo-class.<a>
tag and visually hide it. Google ‘visually-hidden text’ to figure out how to do this.let
s with const
. I think standard practice nowadays is to always use const
except when the variable needs to be updated.window.sessionStorage;
can be removed completely since you aren’t saving the Storage object. If you are using sessionStorage just because you wanted to learn how it works that is fine, but I don’t think it is really needed here since you can just keep track of the current index with a simple variable. OR, if you want to make some use of local storage, you could use localStorage
instead and then when the page initially loads you could pull the last index from local storage to prevent them from getting that index again on the first quote they see.Hi @dwisatriow !
I think your page looks good.
I think the next project would be the perfect candidate for that.
That ended up being one of my favorite projects
Keep up the good work!
Hi @bbsmooth,
Thank’s for the valuable feedback . I will try to fixed it with the suggestions you point out. And I did already used React for other next projects too.
Hi @dwisatriow
Congratulations upon completing the project. Great observations by @bbsmooth and @jwilkins.oboe . One issue which you can look into is content jumping around when you switch from one quote to another. I have never been a fan of it. To be honest I have also struggled with it a lot.
I’m not sure you can avoid height changes in the quote box, especially if you are pulling random quotes and don’t know what the max length of the quote will be. But I think you could make it so that the top of the box always stays in one place so it doesn’t appear to jump up and down.
@bbsmooth @nibble
Thanks for the feedback guys.
What I can think of it is setting the overflow of the quotes to scroll, but I don’t really like if some part of the quotes is hidden.
So probably I would just add an animation when the quotes is changing, like fading out then in or growing and shrinking in size smoothly
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.