https://github.com/lethang7794/random-quote-machine
This app show a random quote which can be changed and share to Twitter.
https://github.com/lethang7794/random-quote-machine
Last synced: 2 months ago
JSON representation
This app show a random quote which can be changed and share to Twitter.
- Host: GitHub
- URL: https://github.com/lethang7794/random-quote-machine
- Owner: lethang7794
- Created: 2021-03-19T05:29:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-22T06:36:33.000Z (about 4 years ago)
- Last Synced: 2025-01-20T06:42:32.844Z (4 months ago)
- Language: JavaScript
- Homepage: https://lqt-quote-machine.netlify.app
- Size: 247 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# freeCodeCamp - _Random Quote Machine_
Created with love by: `Thang`
View online at: [https://lqt-quote-machine.netlify.app](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:
- [x] User Story #1: I can see a wrapper element with a corresponding id="quote-box".
- [x] User Story #2: Within #quote-box, I can see an element with a corresponding id="text".
- [x] User Story #3: Within #quote-box, I can see an element with a corresponding id="author".
- [x] User Story #4: Within #quote-box, I can see a clickable element with a corresponding id="new-quote".
- [x] User Story #5: Within #quote-box, I can see a clickable a element with a corresponding id="tweet-quote".
- [x] User Story #6: On first load, my quote machine displays a random quote in the element with id="text".
- [x] User Story #7: On first load, my quote machine displays the random quote's author in the element with id="author".
- [x] 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.
- [x] 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.
- [x] 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.
- [x] 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 athttp://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.