petercr / Random-Quote-Machine

A random quote machine for Free Code Camp intermediate front-end projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Random Quote Machine

This project allows you to search random quote machine by inputting text and showing you the results of the search. It is one of the FreeCodeCamp Front End Libraries Projects

Here is a list of the user stories that this project must fulfill

  1. I can see a wrapper element with a corresponding id="quote-box".
  2. Within #quote-box, I can see an element with a corresponding id="text"
  3. Within #quote-box, I can see an element with a corresponding id="author"
  4. Within #quote-box, I can see a clickable element with a corresponding id="new-quote"
  5. Within #quote-box, I can see a clickable element with a corresponding id="tweet-quote"
  6. On first load, my quote machine displays a random quote in the element with id="text"
  7. On first load, my quote machine displays the random quote's author in the element with id="author"
  8. When the #new-quote button is clicked, my quote machine should fetch a new quote and display it in the #text element.
  9. My quote machine should fetch the new quote's author when the #new-quote button is clicked and display it in the #author element
  10. I can tweet the current quote by clicking on the #tweet-quote a element. This a element should include the "twitter.com/intent/tweet" path in it's href attribute to tweet the current quote.
  11. The #quote-box wrapper element should be horizontally centered. Please run tests with browser's zoom level at 100% and page maximized.

Link to testing suite for this project

The unit testing for this project can be found at https://gitcdn.link/repo/freeCodeCamp/testable-projects-fcc/master/build/bundle.js

Thanks I hope you enjoy my creation. And feel free to reach out to me on Twitter 🐦 @PeteCapeCod 🐶😎

Or here on GitHub at PeterCr

About

A random quote machine for Free Code Camp intermediate front-end projects

License:MIT License


Languages

Language:JavaScript 35.7%Language:HTML 33.9%Language:CSS 30.4%