Fixes to file structure
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<div class="account-portal-container" id="account-pane">
|
||||
<div id="account-pane-content-container">
|
||||
<div id="account-header-container">
|
||||
<a id="username">Hello, {{user.username}}</a>
|
||||
<div class="logout-container">
|
||||
<a id="logout-button" class="account-portal-button" href="/logout">Logout</a>
|
||||
</div>
|
||||
</div>
|
||||
<div id="account-favorite-teams-container">
|
||||
<a id="account-favorite-teams-header">Favorite Teams:</a>
|
||||
{{#each fav_teams}}
|
||||
<div class="account-favorite-teams-card">
|
||||
<div id="account-favorite-teams-card-logo-container">
|
||||
<a href="/club/{{this.teamid}}">
|
||||
<img id="account-favorite-teams-card-logo" src="{{this.teamlogo}}" alt="teamlogo">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<a id="account-favorite-teams-card-title" href="/club/{{this.teamid}}">
|
||||
{{this.teamname}}
|
||||
</a>
|
||||
|
||||
<div id="account-delete-favorite-team-button-container">
|
||||
<!-- Add a different image for hover effect -->
|
||||
<img id="account-delete-favorite-team-button" class="account-delete-favorite-team-button" src="/img/navigation-bar/user-menu/account-pane/delete-club.png" alt="Delete Favorite Team">
|
||||
<img id="account-delete-favorite-team-button-hover" class="account-delete-favorite-team-button" src="/img/navigation-bar/user-menu/account-pane/delete-club-hover.png" userID="{{this.userid}}" teamID="{{this.teamid}}" alt="Delete Favorite Team Hover" >
|
||||
</div>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
29
public/views/partials/navigation-bar/user-menu/login.hbs
Normal file
29
public/views/partials/navigation-bar/user-menu/login.hbs
Normal file
@@ -0,0 +1,29 @@
|
||||
<!-- Linking forms.css -->
|
||||
<div class="account-portal-container" id="login-pane">
|
||||
<div class="form-container" id="login-form">
|
||||
<h1 class="mt-5 mb-4">Login</h1>
|
||||
|
||||
<!-- Check if message variable is present to display message partial -->
|
||||
{{#if message}}
|
||||
{{> message}}
|
||||
{{/if}}
|
||||
|
||||
<form action="/login" method="POST" class="mt-3">
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="username" class="form-label">Username:</label>
|
||||
<input type="text" class="form-control" id="username" name="username" required>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">Password:</label>
|
||||
<input type="password" class="form-control" id="password" name="password" required>
|
||||
</div>
|
||||
|
||||
<button class="account-portal-button" type="submit" id="login-submit">Submit</button>
|
||||
|
||||
</form>
|
||||
|
||||
<p class="mt-3">Don't have an account? <a id="register-button" href="/home">Register</a></p>
|
||||
</div>
|
||||
</div>
|
||||
29
public/views/partials/navigation-bar/user-menu/register.hbs
Normal file
29
public/views/partials/navigation-bar/user-menu/register.hbs
Normal file
@@ -0,0 +1,29 @@
|
||||
<div class="account-portal-container" id="register-pane">
|
||||
<div class="form-container">
|
||||
|
||||
<h1 class="mt-5 mb-4">Register</h1>
|
||||
|
||||
<!--- START OF FORM --->
|
||||
<form action="/register" method="POST" class="mt-3"> <!-- Specify API route to DB -->
|
||||
<!-- app.post('register') is found in index.js -->
|
||||
|
||||
<div class="mb-3" id="username-form">
|
||||
<label for="username" class="form-label">Username:</label>
|
||||
<input type="text" class="form-control" id="usernameInput" name="username" required>
|
||||
</div>
|
||||
|
||||
<div class="mb-3" id="password-form">
|
||||
<label for="password" class="form-label">Password:</label>
|
||||
<input type="password" class="form-control" id="passwordInput" name="password" required>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="account-portal-button">Submit</button>
|
||||
|
||||
</form>
|
||||
<!--- END OF FORM --->
|
||||
|
||||
<p class="mt-3">Already have an account? <a id="register-page-login-button" href="/login">Login</a></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user