From ecf7c38911874cbe96c1e40e693b7675641c5312 Mon Sep 17 00:00:00 2001 From: pluja Date: Tue, 13 Feb 2024 10:41:49 +0100 Subject: [PATCH] ui improvements --- src/frontend/templates/attribute.html | 19 ++- src/frontend/templates/index.html | 66 ++++----- src/frontend/templates/layouts/main.html | 65 ++++----- .../templates/partials/service_card.html | 136 ++++++++++-------- 4 files changed, 156 insertions(+), 130 deletions(-) diff --git a/src/frontend/templates/attribute.html b/src/frontend/templates/attribute.html index 59966aa..0cdb8cd 100644 --- a/src/frontend/templates/attribute.html +++ b/src/frontend/templates/attribute.html @@ -1,14 +1,13 @@
-
+
-
+
-

+

{{if eq "info" .Attribute.Rating}} 🔵 {{end}} @@ -36,9 +35,9 @@

-
-

Services with this point:

-
+
+

Services with this point:

+
{{range .Services}} {{partial "partials/service_card" .}} {{end}} diff --git a/src/frontend/templates/index.html b/src/frontend/templates/index.html index bb6db22..cd49e5f 100644 --- a/src/frontend/templates/index.html +++ b/src/frontend/templates/index.html @@ -1,17 +1,19 @@ - - - - - - - -
- {{.Announcement.Title}} - {{.Announcement.Body}} -
-
+
@@ -24,44 +26,44 @@
-
+
-
- +
+ - + - + - + - + -
@@ -72,11 +74,11 @@ class="p-1 {{if eq "" .Filters.Type}}border-b border-lime-500/60 text-lime-500{{end}} text-xs">All
- Exchanges - Services
@@ -84,8 +86,8 @@
-
-
+
+
{{range .Services}} {{partial "partials/service_card" .}} {{end}} diff --git a/src/frontend/templates/layouts/main.html b/src/frontend/templates/layouts/main.html index 37697ba..bd8305d 100644 --- a/src/frontend/templates/layouts/main.html +++ b/src/frontend/templates/layouts/main.html @@ -52,39 +52,40 @@ {{end}} - diff --git a/src/frontend/templates/partials/service_card.html b/src/frontend/templates/partials/service_card.html index 4d557b0..d96301d 100644 --- a/src/frontend/templates/partials/service_card.html +++ b/src/frontend/templates/partials/service_card.html @@ -1,39 +1,59 @@ {{/* service_card.html */}} -