Hi! Here is my Random Quote Machine. All the quotes are from Oscar Wilde! What do you think?
Good functionality, a few UI notes:
-
Itâs not a requirement, but the most common button (Refresh in your case) is often in the bottom-right, and is colored differently (like the reply button below posts in this forum). Your users (like me!) will automatically expect it there.
-
That theme, tho. Itâs got a lot of bright white space with very thin lines. While flat white sites are often in vogue now, your choice of font and thin borders make the userâs eyes work too much. Increase font weight or size (your heading is fine), thicken up those borders, or put a slightly less intense background on.
-
This is nitpicky, and I see from your portfolio that you donât design in English (Catalan?), but âRefreshâ alone isnât very informative. Maybe âRefresh Quoteâ or âGet New Quoteâ?
Nice job on all those sites, btw!
Hi.
I think it looks nice.
The tweet and refresh buttonâs color are clashing in my opinion.
I would use the same color or more matching colors.
For secons, i notice you use a self defined array to get your quotes.
I would say to try and play around with a quote api.
Thank you very much for your response @vipatron! Your comments are very appreciate for me.
- Thank you! Youâre right. I also expect it here.
- Absolutely! I tried to emulate the new Material Design 2 design concepts that are appearing in Gmail, Tasks, etc⌠but youâre right. I fixed this. What do you think now?
- I opted to use Get New Quote. (Yes, I am from Catalonia).
Thank you very much!!!
Thank you @Manuuzzz. With the colors I tried to evoke the Twitter color, but youâre right. Now the color is the same of the main background. What do you think?
About the implementation of an API! Iâm very excited to implement it! Can you, please, send me a link with some information about how to start?
Thank you very much!
Much easier on the eyes now. I did notice this time around that, while using it, sometimes the âget new quoteâ button retrieves the same quote. I ran into the same issue on my project. You probably want a while loop that tests to make sure the random phrase you get with following line of code isnât the same as what is already displayed:
$("#getMessage").on("click", function() {
var i = Math.floor(Math.random() * (phrases.length - 1));
I did mine with React, not jQuery, but iâm sure you can figure it out. The UX when that happened was a moment of âdid it work?â To test that it wasnât happening once I wrote my while loop, I commented out my original quote (phrases) array, made it two quotes long, and ensured that they alternated. Good luck!
I think the colors are way better now.
For the API:
I used this API:
https://talaikis.com/api/quotes/random/
The goal is to retrieve random quotes via AJAX (xmlhttprequest -> you get a json file back as a result).
An example of my random quote machine (just check to source to get an idea on how to do it, iâm not experienced, so donât take my code as if it is correct! )