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));
|
||||
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
|
||||
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
|
||||
$('#user').click(function() {
|
||||
|
||||
$('#register-container').hide();
|
||||
// Toggle the visibility of the login container
|
||||
$('#login-container').toggle();
|
||||
});
|
||||
|
||||
@@ -66,15 +66,15 @@
|
||||
</nav>
|
||||
|
||||
{{#if user.username}}
|
||||
<div class="container" id="login-container">
|
||||
<div class="account-container" id="login-container">
|
||||
{{> navigation-bar/accountinfo}}
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="container" id="login-container">
|
||||
<div class="account-container" id="login-container">
|
||||
{{> navigation-bar/login}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="container" id="register-container">
|
||||
<div class="account-container" id="register-container">
|
||||
{{> navigation-bar/register}}
|
||||
</div>
|
||||
Reference in New Issue
Block a user