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' });
|
return res.status(500).json({ error: 'Error adding favorite team' });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.post('/favteam/remove', async (req, res) => {
|
app.post('/favteam/remove', async (req, res) => {
|
||||||
try {
|
try {
|
||||||
const { userID, teamID } = req.body;
|
const { userID, teamID } = req.body;
|
||||||
@@ -355,7 +356,6 @@ async function getFavoriteTeamsForUser(userId) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// *****************************************************
|
// *****************************************************
|
||||||
// <!-- Section 5 : Start Server-->
|
// <!-- Section 5 : Start Server-->
|
||||||
// *****************************************************
|
// *****************************************************
|
||||||
|
|||||||
@@ -41,6 +41,12 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</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">
|
<div id="user" 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>
|
||||||
|
|||||||
Reference in New Issue
Block a user