Skip to content

lethang7794/random-quote-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

freeCodeCamp - Random Quote Machine

Created with love by: Thang

View online at: https://lqt-quote-machine.netlify.app

Summary: This app show a random quote which can be changed and share to Twitter.

Walkthrough

Here's a walkthrough of implemented user stories:

  • Quote loading skeleton.

  • Fetch a new quote and display it when the new quote button is clicked.

  • Tweet the current quote.

Libraries use in this projects: React, TailwindCSS.

User Stories

The following required functionalities are completed:

  • User Story #1: I can see a wrapper element with a corresponding id="quote-box".
  • User Story #2: Within #quote-box, I can see an element with a corresponding id="text".
  • User Story #3: Within #quote-box, I can see an element with a corresponding id="author".
  • User Story #4: Within #quote-box, I can see a clickable element with a corresponding id="new-quote".
  • User Story #5: Within #quote-box, I can see a clickable a element with a corresponding id="tweet-quote".
  • User Story #6: On first load, my quote machine displays a random quote in the element with id="text".
  • User Story #7: On first load, my quote machine displays the random quote's author in the element with id="author".
  • User Story #8: When the #new-quote button is clicked, my quote machine should fetch a new quote and display it in the #text element.
  • User Story #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.
  • User Story #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 its href attribute to tweet the current quote.
  • User Story #11: The #quote-box wrapper element should be horizontally centered. Please run tests with browser's zoom level at 100% and page maximized.

Time Spent

Time spent: 5 hours spent in total.

  • 1.5 hours for the user stories.
  • 3.5 hours for styling with TailwindCSS (used for the first time).

License

Copyright [2021] [Le Quang Thang]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

This app show a random quote which can be changed and share to Twitter.

Resources

Stars

Watchers

Forks