https://github.com/nix7amcm/fcc-random-quote-machine
This is my code for Project 1 'Random Quote Machine' of FreeCodeCamp's Front End Development Libraries Certification. Built using React and Bootstrap, and deployed with Render 🚀
https://github.com/nix7amcm/fcc-random-quote-machine
bootstrap freecodecamp freecodecamp-project front-end-development-libraries react reactjs render render-deployment
Last synced: 27 days ago
JSON representation
This is my code for Project 1 'Random Quote Machine' of FreeCodeCamp's Front End Development Libraries Certification. Built using React and Bootstrap, and deployed with Render 🚀
- Host: GitHub
- URL: https://github.com/nix7amcm/fcc-random-quote-machine
- Owner: Nix7amcm
- Created: 2024-01-12T12:08:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T16:28:14.000Z (over 2 years ago)
- Last Synced: 2025-03-13T11:44:06.955Z (about 1 year ago)
- Topics: bootstrap, freecodecamp, freecodecamp-project, front-end-development-libraries, react, reactjs, render, render-deployment
- Language: JavaScript
- Homepage: https://random-quote-machine-e5mj.onrender.com
- Size: 955 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Build a Random Quote Machine
============================
### My Solution:
[random-quote-machine-e5mj.onrender.com](https://random-quote-machine-e5mj.onrender.com)
---
### Images:
#### Desktop Light Mode

#### Desktop Dark Mode

#### Mobile Light Mode

#### Mobile Dark Mode

---
### Project Description:
**Objective:** Build an app that is functionally similar to this: [https://random-quote-machine.freecodecamp.rocks/](https://random-quote-machine.freecodecamp.rocks/).
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 Stories:
- [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.
---
### Additional Notes:
**Note:** **React 18 has known incompatibilities with the tests for this project (see [issue](https://github.com/freeCodeCamp/freeCodeCamp/issues/45922))**
You can build your project by [using this CodePen template](https://codepen.io/pen?template=MJjpwO) 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.
* * *