From 7ccb4d59b0713029cb79b39db4b098941a14e929 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:56:55 +0200 Subject: [PATCH] Footer link to Stirlingpdf.com (#1827) * fix * remove donate * Footer to have link to website --------- Co-authored-by: a --- .../software/SPDF/repository/UserRepository.java | 4 +++- src/main/resources/static/css/footer.css | 10 ++++++++++ src/main/resources/templates/fragments/footer.html | 5 +++-- src/main/resources/templates/fragments/navbar.html | 5 ----- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/main/java/stirling/software/SPDF/repository/UserRepository.java b/src/main/java/stirling/software/SPDF/repository/UserRepository.java index 3da21634..4f231e0f 100644 --- a/src/main/java/stirling/software/SPDF/repository/UserRepository.java +++ b/src/main/java/stirling/software/SPDF/repository/UserRepository.java @@ -4,6 +4,7 @@ import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; +import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import stirling.software.SPDF.model.User; @@ -13,7 +14,8 @@ public interface UserRepository extends JpaRepository { Optional findByUsernameIgnoreCase(String username); @Query("FROM User u LEFT JOIN FETCH u.settings where upper(u.username) = upper(:username)") - Optional findByUsernameIgnoreCaseWithSettings(String username); + Optional findByUsernameIgnoreCaseWithSettings(@Param("username") String username); + Optional findByUsername(String username); diff --git a/src/main/resources/static/css/footer.css b/src/main/resources/static/css/footer.css index ee47f54c..9b97efa4 100644 --- a/src/main/resources/static/css/footer.css +++ b/src/main/resources/static/css/footer.css @@ -18,7 +18,17 @@ text-align: center; /* Centers the text inside the div */ width: 100%; /* Full width to center the text properly */ } +.stirling-link { + text-decoration: none; /* Remove the underline */ + color: inherit; /* Keep the text color the same as the surrounding text */ + cursor: pointer; /* Change the cursor to indicate it's clickable */ + font-weight: bold; /* Make it bold to subtly hint that it's clickable */ + transition: color 0.3s ease; /* Add a smooth transition effect for color change on hover */ +} +.stirling-link:hover { + color: #007BFF; /* Change the color on hover to a noticeable link color */ +} .footer-icon { font-size: 2rem; } diff --git a/src/main/resources/templates/fragments/footer.html b/src/main/resources/templates/fragments/footer.html index 7414ea99..7d0c1a54 100644 --- a/src/main/resources/templates/fragments/footer.html +++ b/src/main/resources/templates/fragments/footer.html @@ -10,7 +10,8 @@ + + Stirling PDF + \ No newline at end of file diff --git a/src/main/resources/templates/fragments/navbar.html b/src/main/resources/templates/fragments/navbar.html index d62dc172..4e8e7219 100644 --- a/src/main/resources/templates/fragments/navbar.html +++ b/src/main/resources/templates/fragments/navbar.html @@ -397,11 +397,6 @@ discord - - - favorite - -