-
-
Notifications
You must be signed in to change notification settings - Fork 280
GLASGOW | Jan-26-ITP | Prakash Dcosta | Sprint 3 | Quote Generator #1107
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
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. An advanced topic regarding UX:
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. Understood. I made the following changes to incorporate it. I increased the quote-container height and max-width, made the display to flex and further the quote-text i made it to overflow with minimum heing 0 so that it can scroll and not disturb the button. Thanks 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.
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 made the modifications and tested it. Pl see if its alright now. Thanks 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. Looks good now |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,80 @@ | ||
| /** Write your CSS in here **/ | ||
| body { | ||
| margin: 0; | ||
| font-family: Georgia, "Times New Roman", serif; | ||
| background-color: #f59e0b; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| height: 100vh; | ||
| } | ||
| /* h1 changes */ | ||
| h1 { | ||
| color: #050301; | ||
| text-align: center; | ||
| margin-bottom: 40px; | ||
| font-weight: normal; | ||
| } | ||
|
|
||
| /* Container card */ | ||
| .quote-container { | ||
| background-color: #d9d9d9; | ||
| width: 1200px; | ||
| max-width: none; | ||
| padding: 60px; | ||
| box-sizing: border-box; | ||
| text-align: left; | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: space-between; | ||
| height: 500px; | ||
|
|
||
| } | ||
|
|
||
| /* Quote text */ | ||
| #quote { | ||
| font-size: 32px; | ||
| color: #f59e0b; | ||
| line-height: 1.4; | ||
| margin-bottom: 30px; | ||
| position: relative; | ||
| } | ||
|
|
||
| /* Big quote mark */ | ||
| #quote::before { | ||
| content: "“"; | ||
| font-size: 80px; | ||
| position: absolute; | ||
| left: -40px; | ||
| top: -20px; | ||
| color: #f59e0b; | ||
| } | ||
|
|
||
| /* Author */ | ||
| #author { | ||
| text-align: right; | ||
| font-size: 20px; | ||
| color: #130d04; | ||
| margin-bottom: 30px; | ||
| } | ||
|
|
||
| /* Button */ | ||
| #new-quote { | ||
| background-color: #f59e0b; | ||
| color: white; | ||
| border: none; | ||
| padding: 15px 25px; | ||
| font-size: 16px; | ||
| cursor: pointer; | ||
| align-self: flex-end; | ||
| } | ||
|
|
||
| #new-quote:hover { | ||
| background-color: #d97706; | ||
| } | ||
| /* Making the new area scrollable*/ | ||
| .quote-text { | ||
| flex-grow: 1; | ||
| overflow-y: auto; | ||
| min-height: 0; | ||
| } |




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.
How could you make it more clear what HTML elements are nested inside the new divs?
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.
Got it. I can add comments and i can make it visually better. I have modified it. Thank you
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 was referring to code indentation. With the correct indentation the comments are not needed. indentation is a standard that makes it easy to see visually which elements are on which hierarchy. Tools like the IDE also allow code folding based on indentation
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 made the change now. Pl check. I will also go go through IDE thoroughly. Thank you
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.
The indentation looks good now. If you run prettier it should always do the correct formatting for you and you do not have to think about it