-
Notifications
You must be signed in to change notification settings - Fork 28
Fav icon fix | nav bar #110
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?
Conversation
|
WhyPenguins
left a comment
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.
Hi @pradeepkumara ! This is a good start! I think there might have been some confusion though - the idea of this task was to update the main menu bar:

whereas it looks like you've changed the Run/Restart/Pause buttons.
Do you think you can change the focus to be on the main menu bar? Something kind of like this:

Code looks good for the most part, just make sure to write the code in the right files to help keep the codebase tidy.
Also similar to your other PRs, it'd be better if only the lines important for the PR were committed - formatting changes on other unrelated parts makes it more difficult to work out what parts of the PR are relevant/not 😋
Overall good work though, the drop-down menu works alright and also functions on mobile which is neat 😃
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css"> | ||
| <link rel="stylesheet" href="stylesheet.css"> | ||
|
|
||
| // adding fav icon |
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.
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.
hey, thank you for your all comments. i will sort them.
Browser_IDE/index.html
Outdated
|
|
||
| <style> | ||
| /* Navbar Styling */ | ||
| .navbar { | ||
| display: flex; | ||
| align-items: center; | ||
| padding: 10px; | ||
| border-radius: 5px; | ||
| box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); | ||
| } | ||
|
|
||
| /* Dropdown Button Styling */ | ||
| .dropdown { | ||
| position: relative; | ||
| display: none; /* Initially hidden */ | ||
| } | ||
|
|
||
| .dropbtn { | ||
| background-color: darkgrey; | ||
| color: white; | ||
| padding: 10px 15px; | ||
| font-size: 14px; | ||
| border: none; | ||
| border-radius: 4px; | ||
| cursor: pointer; | ||
| display: flex; | ||
| align-items: center; | ||
| } | ||
|
|
||
| .dropbtn i { | ||
| margin-left: 5px; | ||
| } | ||
|
|
||
| .dropbtn:hover { | ||
| background-color: #0056b3; | ||
| } | ||
|
|
||
| /* Dropdown Content Styling */ | ||
| .dropdown-content { | ||
| display: none; | ||
| position: absolute; | ||
| background-color: #404040; | ||
| color: white; | ||
| min-width: 150px; | ||
| box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); | ||
| z-index: 1; | ||
| border-radius: 4px; | ||
| padding: 5px 0; | ||
| } | ||
|
|
||
| .dropdown-content button { | ||
| background: none; | ||
| border: none; | ||
| color: white; | ||
| padding: 8px 12px; | ||
| text-align: left; | ||
| text-decoration: none; | ||
| display: block; | ||
| width: 100%; | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| .dropdown-content button:hover { | ||
| background: white; | ||
| color: #404040; | ||
| } | ||
|
|
||
| /* Show Dropdown on Hover */ | ||
| .dropdown:hover .dropdown-content { | ||
| display: block; | ||
| } | ||
|
|
||
| /* Primary Button Styling */ | ||
| .run-program { | ||
| color: white; | ||
| padding: 10px 15px; | ||
| font-size: 14px; | ||
| border: none; | ||
| border-radius: 4px; | ||
| cursor: pointer; | ||
| display: flex; | ||
| align-items: center; | ||
| margin-right: 10px; | ||
| } | ||
|
|
||
| .run-program i { | ||
| margin-right: 5px; | ||
| } | ||
|
|
||
| .run-program:hover { | ||
| background-color: #218838; | ||
| color: green; | ||
| } | ||
| </style> |
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.
This should all be in stylesheet.css
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 all the changes
| <link rel="stylesheet" href="stylesheet.css"> | ||
|
|
||
| // adding fav icon | ||
| <link rel="icon" href="https://thoth-tech.github.io/SplashkitOnline/favicon.ico" /> |
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.
This does work, but it'd be much better if it was still a relative path in case we change where we host SplashKit Online. <link rel="icon" href="favicon.ico"> works fine 😋
| button:hover:enabled { | ||
| background-color: #404040; | ||
| } |
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.
This causes none of the other buttons in the IDE to highlight when hovered, would be better to leave this as-was.
Browser_IDE/index.html
Outdated
| <button type="button" title="Expand Program" onclick="collapseProgramViewToggle()"><i class="bi bi-terminal"></i></button> | ||
| <button type="button" title="Expand Program" onclick="collapseProgramViewToggle()"><i | ||
| class="bi bi-terminal"></i></button> | ||
| <button id="collapsedRunProgram" type="button" class="run-program" title="Build and Run"> | ||
| <i class="bi bi-gear-fill"></i> | ||
| <i class="bi bi-play-fill"></i> | ||
| </button> | ||
| <button type="button" id="collapsedRestartProgram" title="Restart" style="display:none"><i class="bi bi-arrow-repeat"></i></button> | ||
| <button type="button" id="collapsedContinueProgram" title="Continue" style="display:none"><i class="bi bi-play-fill"></i></button> | ||
| <button type="button" id="collapsedStopProgram" title="Pause" style="display:none"><i class="bi bi-pause-fill"></i></button> | ||
| <button type="button" id="collapsedRestartProgram" title="Restart" style="display:none"><i | ||
| class="bi bi-arrow-repeat"></i></button> | ||
| <button type="button" id="collapsedContinueProgram" title="Continue" style="display:none"><i | ||
| class="bi bi-play-fill"></i></button> | ||
| <button type="button" id="collapsedStopProgram" title="Pause" style="display:none"><i | ||
| class="bi bi-pause-fill"></i></button> |
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.
Better not to change code that isn't related to the PR - I agree we can improve the formatting, but for now let's leave these parts as-is 😋 Same comments for a few areas above.

Description
updated the nav bar and fav icon
Fixes # (issue)
Type of change
Please delete options that are not relevant.
expected)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can
reproduce. Please also list any relevant details for your test configuration
Testing Checklist
Checklist