Code clean up for login container
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
|
#login-container {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
#login-page {
|
#login-page {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 150px; /* Adjust this value as needed */
|
top: 150px; /* Adjust this value as needed */
|
||||||
right: 20px; /* Adjust this value as needed */
|
right: 20px; /* Adjust this value as needed */
|
||||||
z-index: 10;
|
z-index: 5;
|
||||||
background: linear-gradient(to bottom, white, rgb(245, 245, 245), rgb(227, 227, 227)); /* Gradient from white to gray */
|
background: linear-gradient(to bottom, white, rgb(245, 245, 245), rgb(227, 227, 227)); /* Gradient from white to gray */
|
||||||
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
|
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
|
||||||
border: 1px solid gray;
|
border: 1px solid gray;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
.scoreboard-container {
|
.scoreboard-container {
|
||||||
overflow-x: auto; /* Enable horizontal scrolling */
|
overflow-x: auto; /* Enable horizontal scrolling */
|
||||||
|
overflow-y: hidden; /* Disable vertical scrolling */
|
||||||
white-space: nowrap; /* Prevent cards from wrapping to the next line */
|
white-space: nowrap; /* Prevent cards from wrapping to the next line */
|
||||||
border: 1px solid rgb(202, 2, 2);
|
border: 1px solid rgb(202, 2, 2);
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
// When #user is clicked
|
// When #user is clicked
|
||||||
$('#user').click(function() {
|
$('#user').click(function() {
|
||||||
// Toggle the visibility of the login container
|
// Toggle the visibility of the login container
|
||||||
$('#login-container').toggle();
|
$('#login-container').toggle();
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
|
|
||||||
<nav class="navbar navbar-expand-sm border-bottom">
|
|
||||||
<div class="container">
|
|
||||||
<button
|
|
||||||
class="navbar-toggler ms-auto"
|
|
||||||
type="button"
|
|
||||||
data-bs-toggle="collapse"
|
|
||||||
data-bs-target="#navbar-collapse"
|
|
||||||
aria-controls="navbar"
|
|
||||||
aria-expanded="false"
|
|
||||||
aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
<div class="collapse navbar-collapse" id="navbar-collapse">
|
|
||||||
<ul class="navbar-nav me-auto">
|
|
||||||
<li class="nav-item">
|
|
||||||
<!-- TODO: For Discover, add a <a> tag with an attribute href to call the '/discover' API -->
|
|
||||||
<a class="nav-link" href="/home">Home</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div class="nav-item me-1">
|
|
||||||
<!-- TODO: For Logout, add a <a> tag with an attribute href to call the '/logout API -->
|
|
||||||
<a class="nav-link" href="/logout">Logout</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- Container for login section -->
|
<!-- Container for login section -->
|
||||||
<div id="login-container" class="container">
|
<div class="container" id="login-container">
|
||||||
{{> navigation-bar/login}}
|
{{> navigation-bar/login}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user