Skip to content

Birmingham | 26-ITP-May | Gabriel Pawuoi | Sprint 3 | Quote generator - #1413

Open
KhotKeys wants to merge 2 commits into
CodeYourFuture:mainfrom
KhotKeys:sprint-3-quote-generator
Open

Birmingham | 26-ITP-May | Gabriel Pawuoi | Sprint 3 | Quote generator#1413
KhotKeys wants to merge 2 commits into
CodeYourFuture:mainfrom
KhotKeys:sprint-3-quote-generator

Conversation

@KhotKeys

@KhotKeys KhotKeys commented Aug 9, 2026

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

  • Implemented displayQuote to pick a random quote from the quotes array using pickFromArray and update the #quote and #author elements.

  • Called displayQuote on page load for the initial display and wired it to the #new-quote button click event.

@github-actions

This comment has been minimized.

@KhotKeys
KhotKeys force-pushed the sprint-3-quote-generator branch from cc5c91a to 6968115 Compare August 9, 2026 14:13
@KhotKeys KhotKeys added 🏕 Priority Mandatory This work is expected 📅 Sprint 3 Assigned during Sprint 3 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 9, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 10, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good start, some suggested areas to look at

Comment thread Sprint-3/quote-generator/style.css Outdated
#new-quote {
margin: 20px;
position: absolute;
left: 50%;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Did you mean to center this button? It's not quite exactly centre, can you figure out how to fix that?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I see! The extra margin: 20px was fighting with the left: 50% transformation, throwing off the center alignment. I've stripped out the absolute positioning and refactored it using block margins (margin: 20px auto) to make it perfectly centered.

</head>
<body>
<h1>hello there</h1>
<p id="quote"></p>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is there a semantic html element you could use here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Surely, I have applied blockquote and cite

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏕 Priority Mandatory This work is expected Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 3 Assigned during Sprint 3 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants