generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 220
Birmingham | 25-ITP-Sept | Khor Biel | Sprint 3 | Quote generator app #855
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
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
6de8c13
Fixed random quote selection
wankoak 832d4ca
Fixed random quote and styled it
wankoak aff6068
Fixed quote generator and added styling
wankoak 15c2e92
Merge branch 'main' into quote-generator
wankoak 33daa46
fix: remove unnecessary load event wrapper from quote generator
wankoak 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,18 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Title here</title> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Quote generator app</title> | ||
| <link rel="stylesheet" href="styles.css"> | ||
| <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> | ||
| </body> | ||
| </html> | ||
| </head> | ||
| <body> | ||
| <div class="container"> | ||
| <h1>Quote generator</h1> | ||
| <p id="quote"></p> | ||
| <p id="author"></p> | ||
| <button type="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 was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| body { | ||
| font-family: Arial, sans-serif; | ||
| display: flex; | ||
| justify-content: center; | ||
| align-items: center; | ||
| min-height: 100vh; | ||
| background-color: orange; | ||
| } | ||
|
|
||
| .container { | ||
| background-color: white; | ||
| font-size: large; | ||
| padding: 40px; | ||
| border-radius: 8px; | ||
| box-shadow: 0 2px 10px rgba(0,0,0,0.1); | ||
| max-width: 500px; | ||
| width: 90%; | ||
| position: relative; | ||
| min-height: 300px; | ||
| margin: 0; | ||
| } | ||
|
|
||
| h1 { | ||
| color: #333; | ||
| margin-bottom: 30px; | ||
| font-size: 1.8em; | ||
| text-align: center; | ||
| } | ||
|
|
||
| #quote { | ||
| font-size: 1.3em; | ||
| line-height: 1.6; | ||
| margin-bottom: 20px; | ||
| color: orange; | ||
| font-weight: normal; | ||
| } | ||
|
|
||
| #quote::before, #quote::after { | ||
| content: '“'; | ||
| font-size: 1.5em; | ||
| vertical-align: top; | ||
| } | ||
|
|
||
| #author { | ||
| font-size: 1.1em; | ||
| color: orange; | ||
| position: absolute; | ||
| bottom: 70px; | ||
| right: 40px; | ||
| margin: 0; | ||
| text-align: right; | ||
| } | ||
|
|
||
| #author::before { | ||
| content: "- "; | ||
| } | ||
|
|
||
| #new-quote { | ||
| background-color: orange; | ||
| color: white; | ||
| border: none; | ||
| padding: 8px 16px; | ||
| font-size: 0.9em; | ||
| border-radius: 4px; | ||
| cursor: pointer; | ||
| font-family: Arial, sans-serif; | ||
| position: absolute; | ||
| bottom: 30px; | ||
| right: 40px; | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.