https://github.com/mahmud-kandawala/random-quote-machine
This Random Quote Machine project is one of the five required projects to complete the Front End Development Libraries Certification from freeCodeCamp().
https://github.com/mahmud-kandawala/random-quote-machine
bootstrap css html javascript json math
Last synced: 3 months ago
JSON representation
This Random Quote Machine project is one of the five required projects to complete the Front End Development Libraries Certification from freeCodeCamp().
- Host: GitHub
- URL: https://github.com/mahmud-kandawala/random-quote-machine
- Owner: Mahmud-Kandawala
- License: mit
- Created: 2023-03-25T18:37:37.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-25T18:49:02.000Z (over 3 years ago)
- Last Synced: 2025-02-25T03:31:41.352Z (over 1 year ago)
- Topics: bootstrap, css, html, javascript, json, math
- Language: HTML
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Random Quote Machine
## Assignment
Fulfill the below user stories and get all of the tests to pass. Use whichever libraries or APIs you need. Give it your own personal style.
You can use any mix of HTML, JavaScript, CSS, Bootstrap, SASS, React, Redux, and jQuery to complete this project. You should use a frontend framework (like React for example) because this section is about learning frontend frameworks. Additional technologies not listed above are not recommended and using them is at your own risk. We are looking at supporting other frontend frameworks like Angular and Vue, but they are not currently supported. We will accept and try to fix all issue reports that use the suggested technology stack for this project. Happy coding!
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.
You can build your project by using this CodePen template and clicking Save to create your own pen. Or you can use this CDN link to run the tests in any environment you like: `https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js`
Once you're done, submit the URL to your working project with all its tests passing.
Note: Twitter does not allow links to be loaded in an iframe. Try using the `target="_blank"` or `target="_top"` attribute on the #tweet-quote element if your tweet won't load. `target="_top"` will replace the current tab so make sure your work is saved.
## Submitting
Copy your project's URL and submit it to freeCodeCamp.