Repository navigation
Glasgow | 26-ITP-May | Francesco Romano Monda | Sprint 3 | Quote Generator App #1374
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
Changes from 5 commits
45da09e
2a50749
2bd8bea
9501a30
e7992d3
37febb7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,82 @@ | ||
| /** Write your CSS in here **/ | ||
| * { | ||
| box-sizing: border-box; | ||
| margin: 0; | ||
| padding: 0; | ||
| } | ||
|
|
||
| body { | ||
| background-color: #f3a83c; | ||
| font-family: Georgia, "Times New Roman", Times, serif; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| min-height: 100vh; | ||
| } | ||
|
|
||
| /* Container for heading + card */ | ||
| .outer-container { | ||
| width: 90%; | ||
| max-width: 650px; | ||
| text-align: center; | ||
| } | ||
|
|
||
| /* Heading styling */ | ||
| h1 { | ||
| color: white; | ||
| font-family: Arial, sans-serif; | ||
| margin-bottom: 20px; | ||
| font-size: 28px; | ||
| } | ||
|
|
||
| /* The white quote card */ | ||
| .quote-box { | ||
| background-color: #ffffff; | ||
| padding: 45px; | ||
| text-align: left; | ||
| position: relative; | ||
| } | ||
|
|
||
| /* Quote text styling with orange quote mark added automatically */ | ||
| #quote { | ||
| color: #f3a83c; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When I check the accessiblity with lighthouse, it tells me there is insufficient contrast, did you spot this when testing?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did not have time to carry out Lighthouse testing before submitting the task, as I was balancing the available time with completing the task requirements. Please bear in mind that finding this balance is an important skill to have in the workplace. However, I have now improved the contrast based on the Lighthouse feedback, and I hope that the task will still be considered complete. |
||
| font-size: 22px; | ||
| line-height: 1.4; | ||
| margin-bottom: 15px; | ||
| } | ||
|
|
||
| #quote::before { | ||
| content: "“ "; | ||
| font-size: 40px; | ||
| font-weight: bold; | ||
| line-height: 0; | ||
| vertical-align: -8px; | ||
| } | ||
|
|
||
| /* Author text styling right-aligned */ | ||
| #author { | ||
| color: #f3a83c; | ||
| font-size: 18px; | ||
| text-align: right; | ||
| margin-bottom: 25px; | ||
| } | ||
|
|
||
| #author::before { | ||
| content: "- "; | ||
| } | ||
|
|
||
| /* Button styled and pushed to bottom right */ | ||
| #new-quote { | ||
| display: block; | ||
| margin-left: auto; | ||
| background-color: #f3a83c; | ||
| color: #ffffff; | ||
| border: none; | ||
| padding: 12px 22px; | ||
| font-size: 15px; | ||
| font-family: Arial, sans-serif; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| #new-quote:hover { | ||
| opacity: 0.9; | ||
| } | ||
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.
Is there some semantic html you could use here, in place of multiple nested divs?
Uh oh!
There was an error while loading. Please reload this page.
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 updated the HTML to use more semantic elements instead of multiple nested div elements.