From 569b958132a87485fdc8df1d02d1fa05eb8fa4cb Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Mon, 23 Jan 2023 13:08:41 +0100 Subject: [PATCH] Add badges by @Rasmus :100: --- static/static/img/badges/anonymous-access.svg | 62 +------ static/static/img/badges/backup.svg | 77 +-------- .../img/badges/encrypted-data-storage.svg | 64 +------ static/static/img/badges/logging.svg | 163 +----------------- .../static/img/badges/secure-connection.svg | 64 +------ static/static/img/badges/stable.svg | 47 +---- static/static/img/badges/zero-knowledge.svg | 63 +------ .../datacoop2020/assets/static/css/style.scss | 1 + .../datacoop2020/layouts/partials/badges.html | 5 +- 9 files changed, 12 insertions(+), 534 deletions(-) diff --git a/static/static/img/badges/anonymous-access.svg b/static/static/img/badges/anonymous-access.svg index 94935b36..2540db9b 100644 --- a/static/static/img/badges/anonymous-access.svg +++ b/static/static/img/badges/anonymous-access.svg @@ -1,61 +1 @@ - -image/svg+xml \ No newline at end of file + diff --git a/static/static/img/badges/backup.svg b/static/static/img/badges/backup.svg index b3f79d38..36c3ace9 100644 --- a/static/static/img/badges/backup.svg +++ b/static/static/img/badges/backup.svg @@ -1,76 +1 @@ - -image/svg+xml \ No newline at end of file + diff --git a/static/static/img/badges/encrypted-data-storage.svg b/static/static/img/badges/encrypted-data-storage.svg index 589972c2..30fb5947 100644 --- a/static/static/img/badges/encrypted-data-storage.svg +++ b/static/static/img/badges/encrypted-data-storage.svg @@ -1,63 +1 @@ - -image/svg+xml \ No newline at end of file + diff --git a/static/static/img/badges/logging.svg b/static/static/img/badges/logging.svg index 31817d53..9107f4c8 100644 --- a/static/static/img/badges/logging.svg +++ b/static/static/img/badges/logging.svg @@ -1,162 +1 @@ - -image/svg+xml \ No newline at end of file + diff --git a/static/static/img/badges/secure-connection.svg b/static/static/img/badges/secure-connection.svg index 9c200a58..f3cfbb4c 100644 --- a/static/static/img/badges/secure-connection.svg +++ b/static/static/img/badges/secure-connection.svg @@ -1,63 +1 @@ - - - - - - image/svg+xml - - - - - - - - - - - + diff --git a/static/static/img/badges/stable.svg b/static/static/img/badges/stable.svg index bb054338..cdd17d89 100644 --- a/static/static/img/badges/stable.svg +++ b/static/static/img/badges/stable.svg @@ -1,46 +1 @@ - -image/svg+xml \ No newline at end of file + diff --git a/static/static/img/badges/zero-knowledge.svg b/static/static/img/badges/zero-knowledge.svg index f0f777ed..cab1547f 100644 --- a/static/static/img/badges/zero-knowledge.svg +++ b/static/static/img/badges/zero-knowledge.svg @@ -1,62 +1 @@ - - - - - - image/svg+xml - - - - - - - - - - - + diff --git a/themes/datacoop2020/assets/static/css/style.scss b/themes/datacoop2020/assets/static/css/style.scss index e1fb7d80..0f6e57e5 100644 --- a/themes/datacoop2020/assets/static/css/style.scss +++ b/themes/datacoop2020/assets/static/css/style.scss @@ -207,6 +207,7 @@ aside > footer img:hover { .badge-icon { width: 30px; height: auto; + svg{fill:#4b3aba;} } dl.dl-services { diff --git a/themes/datacoop2020/layouts/partials/badges.html b/themes/datacoop2020/layouts/partials/badges.html index 5364f246..134a34fd 100644 --- a/themes/datacoop2020/layouts/partials/badges.html +++ b/themes/datacoop2020/layouts/partials/badges.html @@ -4,7 +4,10 @@

{{ title .name }} - + + {{$svg := printf "static/static/img/badges/%s" .icon}} + {{ $svg | readFile | safeHTML }} +

{{ markdownify .description }}