Skip to content

ahbernhardt/random-quote-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Quote Machine

Build a Random Quote Machine. This is the first project of FreeCodeCamp Front End Libraries Certification. A Random quote machine built with React.

Check for Live Demo

Screenshot

screenshot

Objective

Build a CodePen.io app or other frontend framework that is functionally similar to this: https://codepen.io/freeCodeCamp/full/qRZeGZ.

User Stories

  • I can see a wrapper element with a corresponding id="quote-box".

  • Within #quote-box, I can see an element with a corresponding id="text".

  • Within #quote-box, I can see an element with a corresponding id="author".

  • Within #quote-box, I can see a clickable element with a corresponding id="new-quote".

  • Within #quote-box, I can see a clickable element with a corresponding id="tweet-quote".

  • On first load, my quote machine displays a random quote in the element with id="text".

  • On first load, my quote machine displays the random quote's author in the element with id="author".

  • When the #new-quote button is clicked, my quote machine should fetch a new quote and display it in the #text element.

  • My quote machine should fetch the new quote's author when the #new-quote button is clicked and display it in the #author element.

  • 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.

  • The #quote-box wrapper element should be horizontally centered. Please run tests with browser's zoom level at 100% and page maximized.

This project bootstrapped with Create React App.

Available Scripts for React app

In the project directory, you can run:

npm start

Runs the app and view it on the browser in the development mode: http://localhost:3000

The page will reload if you make edits.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run predeploy or npm run build

Builds the app for production to the build folder.

npm run deploy

Deploy build folder to gh-pages branch of the repository .


Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published