generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 222
London | ITP-SEP25 | Imran Mohamed | Sprint 3 | Quote generator #823
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
6 commits
Select commit
Hold shift + click to select a range
9484af7
Refactor index.html and quotes.js for improved functionality and stru…
i786m 3dfbb29
Refactor HTML structure and enhance CSS styles for improved layout an…
i786m 99c4341
Remove unnecessary comment for toggle switch style in CSS
i786m 63cc87b
Refactor HTML and CSS for toggle switch to improve structure and styling
i786m c8312ce
Update toggle switch styles for improved visual feedback and remove b…
i786m 2e9c3a4
Fix font-family declaration and adjust label::before content for cons…
i786m 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,25 @@ | ||
| <!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> | ||
| <script defer src="quotes.js"></script> | ||
| </head> | ||
| <body> | ||
| <h1>hello there</h1> | ||
| <p id="quote"></p> | ||
|
|
||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Quote Generator</title> | ||
| <script defer src="quotes.js"></script> | ||
| <link rel="stylesheet" href="style.css"> | ||
| </head> | ||
|
|
||
| <body> | ||
| <div class="quote-wrapper"> | ||
| <h1 id="quote"></h1> | ||
| <p id="author"></p> | ||
| <button type="button" id="new-quote">New quote</button> | ||
| </body> | ||
| </html> | ||
| <div class="controls"> | ||
| <input type="checkbox" class="toggle" id="auto-play" /> | ||
| <label for="auto-play" id="auto-play-status">auto-play:OFF</label> | ||
| <button type="button" id="new-quote">New quote</button> | ||
| </div> | ||
|
|
||
| </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,92 @@ | ||
| /** Write your CSS in here **/ | ||
| body { | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| height: 100vh; | ||
| margin: 0; | ||
| font-family:; | ||
| background-color:#f3a83b; | ||
| } | ||
|
|
||
| .quote-wrapper { | ||
| background: white; | ||
| color: #f3a83b; | ||
| padding: 20px; | ||
| margin: 50px auto; | ||
| border-radius: 8px; | ||
| max-width: 80%; | ||
| height: auto; | ||
| } | ||
|
|
||
| h1 { | ||
| font-size: 24px; | ||
| } | ||
|
|
||
| #author { | ||
| text-align: right; | ||
| margin-top: 10px; | ||
| } | ||
|
|
||
| button { | ||
| background-color:#f3a83b; | ||
| color: white; | ||
| border: none; | ||
| padding: 10px 20px; | ||
| border-radius: 5px; | ||
| cursor: pointer; | ||
| font-size: 16px; | ||
| } | ||
|
|
||
| .controls { | ||
| display: flex; | ||
| width: 100%; | ||
| align-items: center; | ||
| justify-content: space-between; | ||
| } | ||
|
|
||
| .toggle { | ||
| display: none; | ||
| } | ||
|
|
||
| label { | ||
| display: inline-block; | ||
| width: 125px; | ||
| padding: 10px 12px; | ||
| text-align: center; | ||
| background-color: white; | ||
| color: #f3a83b; | ||
| border: 1px solid #f3a83b; | ||
| border-radius: 5px; | ||
| position: relative; | ||
| cursor: pointer; | ||
| margin-left: 10px; | ||
| transition: background-color 0.3s; | ||
| } | ||
|
|
||
| label::before { | ||
| content: "x"; | ||
| color: white; | ||
| position: absolute; | ||
| top: 3px; | ||
| left: 3px; | ||
| width: 20px; | ||
| height: 20px; | ||
| margin-top: 6.5px; | ||
| background-color: #f3a83b; | ||
| border-radius: 50%; | ||
| transition: transform 0.3s; | ||
| } | ||
|
|
||
| .toggle:checked + label { | ||
| background-color: #f3a83b; | ||
| color: white; | ||
| } | ||
|
|
||
| .toggle:checked + label::before { | ||
| content: '✔'; | ||
| color: #f3a83b; | ||
| transform: translateX(120px); | ||
| background-color: white; | ||
| } |
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.
Your Quote generator app, works. Good job!