generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 194
West Midlands | ITP-Sept-2025 | Ali Naru | Sprint 3 | Quotes Generator #881
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
MohammedNaru
wants to merge
4
commits into
CodeYourFuture:main
Choose a base branch
from
MohammedNaru:Sprint-3-Quote-Generator
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+110
−8
Open
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
ed493f9
Refactor: update HTML structure and enhance CSS styles for quote gene…
MohammedNaru 26988d2
Merge branch 'main' into Sprint-3-Quote-Generator
MohammedNaru 42fc254
Refactor: change quote paragraph to blockquote for semantic HTML
MohammedNaru 7dd3dde
Refactor: change author paragraph to cite for semantic HTML
MohammedNaru File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,22 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Title here</title> | ||
| <title>Quote Generator</title> | ||
|
|
||
| <!-- CONNECT YOUR CSS HERE --> | ||
| <link rel="stylesheet" href="style.css" /> | ||
|
|
||
| <!-- YOUR JS FILE --> | ||
| <script defer src="quotes.js"></script> | ||
| </head> | ||
|
|
||
| <body> | ||
| <h1>hello there</h1> | ||
| <p id="quote"></p> | ||
| <p id="author"></p> | ||
| <button type="button" id="new-quote">New quote</button> | ||
|
|
||
| <div id="quote-container"> | ||
| <p id="quote"></p> | ||
| <p id="author"></p> | ||
| <button id="new-quote">New quote</button> | ||
| </div> | ||
| </body> | ||
| </html> | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,68 @@ | ||
| /** Write your CSS in here **/ | ||
| /* Page background */ | ||
| body { | ||
| margin: 0; | ||
| padding: 0; | ||
| background-color: #f19d17; /* light orange color */ | ||
| font-family: Georgia, "Times New Roman", serif; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| height: 100vh; | ||
| } | ||
|
|
||
| /* Center white box */ | ||
| #quote-container { | ||
| background: white; | ||
| padding: 60px 80px; | ||
| width: 70%; | ||
| max-width: 900px; | ||
| border-radius: 4px; | ||
| text-align: left; | ||
| box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); | ||
| } | ||
|
|
||
| /* Quote text */ | ||
| #quote { | ||
| font-size: 2rem; | ||
| color: #fdc682; /* matching orange tone */ | ||
| font-weight: normal; | ||
| line-height: 1.5; | ||
| margin-bottom: 40px; | ||
| position: relative; | ||
| padding-left: 50px; | ||
| } | ||
|
|
||
| /* Big quotation mark style */ | ||
| #quote::before { | ||
| content: "❝"; | ||
| font-size: 3rem; | ||
| color: #f4b48a; | ||
| position: absolute; | ||
| left: 0; | ||
| top: -10px; | ||
| } | ||
|
|
||
| /* Author text */ | ||
| #author { | ||
| text-align: right; | ||
| font-size: 1.2rem; | ||
| color: #ed8208; | ||
| margin-bottom: 40px; | ||
| } | ||
|
|
||
| /* Button styling */ | ||
| #new-quote { | ||
| background-color: #a0e0ed; | ||
| color: rgb(146, 160, 185); | ||
| padding: 12px 30px; | ||
| border: none; | ||
| border-radius: 3px; | ||
| font-size: 1rem; | ||
| cursor: pointer; | ||
| float: right; | ||
| } | ||
|
|
||
| #new-quote:hover { | ||
| background-color: #cf7f22; | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You're using
<p>tags for both quote and author. Could there be more semantic HTML elements that better describe the content?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 have added a different tag please review.
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.
nice one,
blockquoteworks for the quote itself, look into the tag that is suitable forauthor.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 have decided to use
citetag forAuthorThere 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.
Awesome, that resolves this issue