More changes to login and registration pages
This commit is contained in:
@@ -18,5 +18,14 @@
|
|||||||
background: linear-gradient(to bottom, white, rgb(245, 245, 245), rgb(227, 227, 227));
|
background: linear-gradient(to bottom, white, rgb(245, 245, 245), rgb(227, 227, 227));
|
||||||
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;
|
||||||
border-radius: 8px;
|
}
|
||||||
|
|
||||||
|
#register-page button {
|
||||||
|
padding: 5px 10px;
|
||||||
|
background-color: red;
|
||||||
|
border-color: red;
|
||||||
|
|
||||||
|
border: 1px solid red;
|
||||||
|
border-radius: 8px;
|
||||||
|
color: white;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,8 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
// When #user is clicked
|
// When #user is clicked
|
||||||
$('#user').click(function() {
|
$('#user').click(function() {
|
||||||
|
|
||||||
|
$('#register-container').hide();
|
||||||
// Toggle the visibility of the login container
|
// Toggle the visibility of the login container
|
||||||
$('#login-container').toggle();
|
$('#login-container').toggle();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -66,15 +66,15 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{{#if user.username}}
|
{{#if user.username}}
|
||||||
<div class="container" id="login-container">
|
<div class="account-container" id="login-container">
|
||||||
{{> navigation-bar/accountinfo}}
|
{{> navigation-bar/accountinfo}}
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="container" id="login-container">
|
<div class="account-container" id="login-container">
|
||||||
{{> navigation-bar/login}}
|
{{> navigation-bar/login}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="container" id="register-container">
|
<div class="account-container" id="register-container">
|
||||||
{{> navigation-bar/register}}
|
{{> navigation-bar/register}}
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user