From a1fae6680005eb635785089645beb297ea10d93d Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Fri, 12 May 2023 16:47:43 +0100 Subject: [PATCH] favourites --- src/main/resources/static/css/dark-mode.css | 5 +- .../resources/static/images/star-fill.svg | 3 + src/main/resources/static/images/star.svg | 3 + .../resources/templates/fragments/card.html | 5 +- src/main/resources/templates/home.html | 122 +++++++++++++----- 5 files changed, 105 insertions(+), 33 deletions(-) create mode 100644 src/main/resources/static/images/star-fill.svg create mode 100644 src/main/resources/static/images/star.svg diff --git a/src/main/resources/static/css/dark-mode.css b/src/main/resources/static/css/dark-mode.css index 13d32b47..3cc945db 100644 --- a/src/main/resources/static/css/dark-mode.css +++ b/src/main/resources/static/css/dark-mode.css @@ -27,10 +27,13 @@ body { background-color: #444 !important; } - #pages-container-wrapper { --background-color: rgba(255, 255, 255, 0.046) !important; --scroll-bar-color: #4c4c4c !important; --scroll-bar-thumb: #d3d3d3 !important; --scroll-bar-thumb-hover: rgb(var(--base-font-color)) !important; +} + +.favorite-icon img { + filter: brightness(0) invert(1) !important; } \ No newline at end of file diff --git a/src/main/resources/static/images/star-fill.svg b/src/main/resources/static/images/star-fill.svg new file mode 100644 index 00000000..de09c4aa --- /dev/null +++ b/src/main/resources/static/images/star-fill.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/main/resources/static/images/star.svg b/src/main/resources/static/images/star.svg new file mode 100644 index 00000000..742b5e25 --- /dev/null +++ b/src/main/resources/static/images/star.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/src/main/resources/templates/fragments/card.html b/src/main/resources/templates/fragments/card.html index 9242b862..eef6c82e 100644 --- a/src/main/resources/templates/fragments/card.html +++ b/src/main/resources/templates/fragments/card.html @@ -1,4 +1,4 @@ -
+
Icon @@ -6,4 +6,7 @@

+
+ Favorite +
diff --git a/src/main/resources/templates/home.html b/src/main/resources/templates/home.html index b4f38f6f..33f04ee1 100644 --- a/src/main/resources/templates/home.html +++ b/src/main/resources/templates/home.html @@ -57,7 +57,15 @@ filter: invert(0.2) sepia(2) saturate(50) hue-rotate(190deg); } - +.favorite-icon { + position: absolute; + top: 10px; + right: 10px; + cursor: pointer; +} +.favorite-icon img { + filter: brightness(0); +} @@ -75,45 +83,97 @@ filter: invert(0.2) sepia(2) saturate(50) hue-rotate(190deg);
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
+ +