Rough implementation of logos in navigation bar added
This commit is contained in:
@@ -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-->
|
||||
// *****************************************************
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user