Fixes to login container linking
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
#login-screen-container {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
border: 1px solid gray;
|
border: 1px solid gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.form-container {
|
.form-container {
|
||||||
width: 70%; /* Adjust width as needed */
|
width: 70%; /* Adjust width as needed */
|
||||||
margin: 0 auto; /* Center horizontally */
|
margin: 0 auto; /* Center horizontally */
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#register-screen-container {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#login-container {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,8 +1,4 @@
|
|||||||
/* Add logo font face */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Scottsdale-Italic';
|
|
||||||
src: url('../../fonts/Scottsdale-Italic.ttf') format('truetype');
|
|
||||||
}
|
|
||||||
|
|
||||||
.sticky {
|
.sticky {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@@ -55,14 +51,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#user {
|
#user-profile-button {
|
||||||
width: 25px;
|
width: 25px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: width 0.3s ease; /* Adding transition for smooth effect */
|
transition: width 0.3s ease; /* Adding transition for smooth effect */
|
||||||
}
|
}
|
||||||
|
|
||||||
#user:hover {
|
#user-profile-button:hover {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Add logo font face */
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Scottsdale-Italic';
|
||||||
|
src: url('../../fonts/Scottsdale-Italic.ttf') format('truetype');
|
||||||
|
}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#register-container {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
@@ -1,19 +1,18 @@
|
|||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
// When #user is clicked
|
// When #user is clicked
|
||||||
$('#user').click(function() {
|
$('#user-profile-button').click(function() {
|
||||||
|
|
||||||
$('#register-container').hide();
|
$('#register-screen-container').hide();
|
||||||
// Toggle the visibility of the login container
|
// Toggle the visibility of the login container
|
||||||
$('#login-container').toggle();
|
$('#login-page').toggle();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#register-page-login-button').click(function() {
|
$('#register-page-login-button').click(function() {
|
||||||
event.preventDefault(); // Prevent the default action of following the link
|
event.preventDefault(); // Prevent the default action of following the link
|
||||||
|
|
||||||
$('#register-container').hide();
|
$('#register-screen-container').hide();
|
||||||
$('#login-container').toggle();
|
$('#login-screen-container').show();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ $(document).ready(function () {
|
|||||||
$('#register-button').click(function (event) {
|
$('#register-button').click(function (event) {
|
||||||
event.preventDefault(); // Prevent the default action of following the link
|
event.preventDefault(); // Prevent the default action of following the link
|
||||||
|
|
||||||
$('#login-container').hide();
|
$('#login-screen-container').hide();
|
||||||
// Show the register container
|
// Show the register container
|
||||||
$('#register-container').show();
|
$('#register-screen-container').show();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
<!-- Navigation Bar Stylesheets -->
|
<!-- Navigation Bar Stylesheets -->
|
||||||
<link rel="stylesheet" type="text/css" href="/css/navigation-bar/navigation-bar.css">
|
<link rel="stylesheet" type="text/css" href="/css/navigation-bar/navigation-bar.css">
|
||||||
<link rel="stylesheet" type="text/css" href="/css/navigation-bar/login.css">
|
<link rel="stylesheet" type="text/css" href="/css/login-and-registration/login.css">
|
||||||
<link rel="stylesheet" type="text/css" href="/css/navigation-bar/registration.css">
|
<link rel="stylesheet" type="text/css" href="/css/login-and-registration/registration.css">
|
||||||
|
|
||||||
<!-- Scoreboard Header Stylesheets -->
|
<!-- Scoreboard Header Stylesheets -->
|
||||||
<link rel="stylesheet" type="text/css" href="/css/navigation-bar/scoreboard-header/scoreboard.css">
|
<link rel="stylesheet" type="text/css" href="/css/navigation-bar/scoreboard-header/scoreboard.css">
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
<!-- Linking forms.css -->
|
<!-- Linking forms.css -->
|
||||||
<div class="login-page account-info-card" id="login-page">
|
<div class="account-portal-container" id="login-page">
|
||||||
|
|
||||||
<div class="form-container" id="login-form">
|
<div class="form-container" id="login-form">
|
||||||
<a id="username">Username: {{user.username}}</a>
|
<a id="username">Username: {{user.username}}</a>
|
||||||
|
|
||||||
<a style="text-decoration: underline;">Favorite Teams:</a> <br>
|
<a style="text-decoration: underline;">Favorite Teams:</a> <br>
|
||||||
|
|
||||||
{{#each fav_teams}}
|
{{#each fav_teams}}
|
||||||
|
|||||||
@@ -14,15 +14,8 @@
|
|||||||
<div class="collapse navbar-collapse" id="navbarToggler">
|
<div class="collapse navbar-collapse" id="navbarToggler">
|
||||||
<ul class="navbar-nav mr-auto mt-2 mt-lg-0" id="navbar-list">
|
<ul class="navbar-nav mr-auto mt-2 mt-lg-0" id="navbar-list">
|
||||||
|
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item">
|
||||||
<a class="nav-link dropdown-toggle" href="/league/2021" id="navbarDropdownPremierLeague" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<a class="nav-link" href="/league/2021">Premier League</a>
|
||||||
Premier League
|
|
||||||
</a>
|
|
||||||
<div class="dropdown-menu" aria-labelledby="navbarDropdownPremierLeague">
|
|
||||||
<!-- Dropdown menu items here -->
|
|
||||||
<a class="dropdown-item" href="/league/2021">Premier League</a>
|
|
||||||
<!-- Add more dropdown items if needed -->
|
|
||||||
</div>
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
@@ -56,7 +49,7 @@
|
|||||||
{{/each}}
|
{{/each}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="user" class="user-icon">
|
<div id="user-profile-button" class="user-icon">
|
||||||
<img src="/img/navigation-bar/user.png" alt="Your Image" class="img-fluid">
|
<img src="/img/navigation-bar/user.png" alt="Your Image" class="img-fluid">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -64,15 +57,15 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
{{#if user.username}}
|
{{#if user.username}}
|
||||||
<div class="account-portal" id="login-container">
|
<div class="account-portal" id="login-screen-container">
|
||||||
{{> navigation-bar/account-screen}}
|
{{> navigation-bar/account-screen}}
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="account-portal" id="login-container">
|
<div class="account-portal" id="login-account-container">
|
||||||
{{> navigation-bar/login}}
|
{{> navigation-bar/login}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<div class="account-portal" id="register-container">
|
<div class="account-portal" id="register-screen-container">
|
||||||
{{> navigation-bar/register}}
|
{{> navigation-bar/register}}
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user