Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions submit-challenge/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ <h2>Submit New Coding Challenge</h2>
</form>
<section id="preview"></section>
</main>
<a href="#top" class="to-top">⬆ Top</a>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: The anchor link references '#top' but there's no element with id="top" in the HTML. Add <div id="top"></div> at the beginning of the body or change the href to '#' to scroll to document top.

Suggested change
<a href="#top" class="to-top">⬆ Top</a>
<a href="#" class="to-top">⬆ Top</a>

<script src="script.js" defer></script>


Expand Down
19 changes: 18 additions & 1 deletion submit-challenge/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ input:focus, textarea:focus, select:focus, button:focus {
width: 400px;
/* margin: 50px auto; */
position: fixed;
bottom: 20px;
bottom: 100px;
right: 20px;
background: white;
border-radius: 10px;
Expand Down Expand Up @@ -412,3 +412,20 @@ input:focus, textarea:focus, select:focus, button:focus {
border: none;
cursor: pointer;
}
.to-top {
position: fixed;
bottom: 20px;
right: 150px;
background-color: #059669;
color: white;
z-index: 10;
padding: 10px 15px;
border-radius: 5px;
text-decoration: none;
font-weight: bold;

}

.to-top:hover {
background-color: #059669;
}
Comment on lines +429 to +431
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Hover state uses same color as normal state - no visual feedback on hover

Suggested change
.to-top:hover {
background-color: #059669;
}
.to-top:hover {
background-color: #047857;
}

Loading