favourites

This commit is contained in:
Anthony Stirling
2023-05-12 16:47:43 +01:00
parent c4d1761687
commit a1fae66800
5 changed files with 105 additions and 33 deletions

View File

@@ -1,4 +1,4 @@
<div th:fragment="card" class="feature-card">
<div th:fragment="card" class="feature-card" th:id="${id}">
<a th:href="${cardLink}">
<div class="d-flex align-items-center"> <!-- Add a flex container to align the SVG and title -->
<img th:if="${svgPath}" id="card-icon" class="home-card-icon home-card-icon-colour" th:src="${svgPath}" alt="Icon" width="30" height="30">
@@ -6,4 +6,7 @@
</div>
<p class="card-text" th:text="${cardText}"></p>
</a>
<div class="favorite-icon" onclick="toggleFavorite(this)">
<img src="images/star.svg" alt="Favorite">
</div>
</div>