From 8cb65d3bb21b51f4ddac91d19423f251091e51f4 Mon Sep 17 00:00:00 2001 From: Sebastian Stein Date: Sun, 20 Apr 2025 18:35:38 +0200 Subject: [PATCH] - added orange and blue slots - extended styles for slot types (test data) --- webapp/components/Badges.vue | 20 +++++++- webapp/pages/profile/_id/_slug.vue | 6 ++- webapp/static/img/badges/slot-blue.svg | 62 ++++++++++++++++++++++++ webapp/static/img/badges/slot-orange.svg | 62 ++++++++++++++++++++++++ 4 files changed, 147 insertions(+), 3 deletions(-) create mode 100644 webapp/static/img/badges/slot-blue.svg create mode 100644 webapp/static/img/badges/slot-orange.svg diff --git a/webapp/components/Badges.vue b/webapp/components/Badges.vue index c36536222..4913dd1bc 100644 --- a/webapp/components/Badges.vue +++ b/webapp/components/Badges.vue @@ -53,7 +53,7 @@ export default { align-items: center; font-weight: bold; font-size: 10px; - color: #333; + color: #ffffff; } .hc-badge { @@ -119,6 +119,24 @@ export default { content: "NW"; } + //test code + .test-express, + .liberation-express, + .nachweis-express, + .maskenfrei-express { + // todo: rename file according to purpose + background-image: url('/img/badges/slot-orange.svg'); + } + .beitragsblocker, + .beitragsstopper, + .masern-impfbloker, + .rundfunk-alarm, + .freunde-der-demokratie, + .restart-democracy { + // todo: rename file according to purpose + background-image: url('/img/badges/slot-blue.svg'); + } + .test-express::after { content: "TE"; } diff --git a/webapp/pages/profile/_id/_slug.vue b/webapp/pages/profile/_id/_slug.vue index 20dae8ab3..54f544a6e 100644 --- a/webapp/pages/profile/_id/_slug.vue +++ b/webapp/pages/profile/_id/_slug.vue @@ -272,9 +272,11 @@ export default { { key: 'BB', title: 'Beitragsblocker', type: 'beitragsblocker', icon: null }, { key: 'BS', title: 'Beitragsstopper', type: 'beitragsstopper', icon: null }, { key: 'MI', title: 'Masern-Impfbloker', type: 'masern-impfbloker', icon: null }, - { key: 'RA', title: 'Rundfunk-Alarm', type: 'rundfunk-alarm', icon: null }, - { key: 'FD', title: 'Freunde der Demokratie', type: 'freunde-der-demokratie', icon: null }, + // { key: 'RA', title: 'Rundfunk-Alarm', type: 'rundfunk-alarm', icon: null }, + // { key: 'FD', title: 'Freunde der Demokratie', type: 'freunde-der-demokratie', icon: null }, // { key: 'RD', title: 'Restart Democracy', type: 'restart-democracy', icon: null } + { title: '', type: 'empty', icon: null }, + { title: '', type: 'empty', icon: null }, ] user.badges = badgeList diff --git a/webapp/static/img/badges/slot-blue.svg b/webapp/static/img/badges/slot-blue.svg new file mode 100644 index 000000000..1d9caa53d --- /dev/null +++ b/webapp/static/img/badges/slot-blue.svg @@ -0,0 +1,62 @@ + + + + diff --git a/webapp/static/img/badges/slot-orange.svg b/webapp/static/img/badges/slot-orange.svg new file mode 100644 index 000000000..2c8d54af7 --- /dev/null +++ b/webapp/static/img/badges/slot-orange.svg @@ -0,0 +1,62 @@ + + + +