Skip to content

ITP JAN 2025/ELFREDAH KEVIN-ALERECHI/DAT GROUP/Quote Generator App #495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Elfredah
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

@cjyuan cjyuan added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Apr 13, 2025
Copy link

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This requirement is not met.

When the page loads it should show a random quote from the quotes array on the screen. It should also show who said the quote.

It would be a better UX if the button does not shift its position when the quote length changes.

Please also fix this branch so that it contains only modified files that belong to this project.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move the JS code to a separate .js file?

Comment on lines +91 to +114
const quotes = [
{
quote: "Life isn't about getting and having, it's about giving and being.",
author: "Kevin Kruse",
},
{
quote: "Whatever the mind of man can conceive and believe, it can achieve.",
author: "Napoleon Hill",
},
{
quote: "Strive not to be a success, but rather to be of value.",
author: "Albert Einstein",
},
{
quote:
"Two roads diverged in a wood, and I—I took the one less traveled by, And that has made all the difference.",
author: "Robert Frost",
},
{
quote: "I attribute my success to this: I never gave or took any excuse.",
author: "Florence Nightingale",
},
// Add more quotes here if needed
];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should use the quotes included in quotes.js.

@Elfredah Elfredah assigned Elfredah and unassigned Elfredah Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants