Rough implementation of logos in navigation bar added

This commit is contained in:
Lucas Patenaude
2024-04-23 20:53:03 -06:00
parent f8cf2dca28
commit 856edd6065
2 changed files with 7 additions and 1 deletions

View File

@@ -303,6 +303,7 @@ app.post('/favteam/add', async (req, res, next) => {
return res.status(500).json({ error: 'Error adding favorite team' });
}
});
app.post('/favteam/remove', async (req, res) => {
try {
const { userID, teamID } = req.body;
@@ -355,7 +356,6 @@ async function getFavoriteTeamsForUser(userId) {
}
}
// *****************************************************
// <!-- Section 5 : Start Server-->
// *****************************************************

View File

@@ -41,6 +41,12 @@
</ul>
</div>
<div id="favorite-teams-container" class="logos-container">
{{#each fav_teams}}
<img id="teamlogo" src="{{this.teamlogo}}" alt="teamlogo">
{{/each}}
</div>
<div id="user" class="user-icon">
<img src="/img/navigation-bar/user.png" alt="Your Image" class="img-fluid">
</div>