-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
There was a problem hiding this comment.
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?
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 | ||
]; |
There was a problem hiding this comment.
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
.
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
Questions
Ask any questions you have for your reviewer.