File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed
personalization-webcomponents Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 5
5
>
6
6
<template #headerPrefix >
7
7
<div
8
- style = " padding-right : 16 px ; font-size : 32 px ; "
8
+ class = " card-header-icon "
9
9
>
10
- <img src =" https://assets.muenchen.de/mde/1.0.10/assets/svg/pictograms/pictogram-cash.svg" alt =" cash-icon" ></img >
10
+ <img
11
+ width =" 56px"
12
+ height =" 56px"
13
+ :src =" getChecklistIconByTitle(checklist.title)"
14
+ alt =" checklist-icon"
15
+ ></img >
11
16
</div >
12
17
</template >
13
18
<template #content >
@@ -70,6 +75,7 @@ import type DummyChecklist from "@/api/dummyservice/DummyChecklist.ts";
70
75
import MucChip from " @/components/common/muc-chip.vue" ;
71
76
import {computed } from " vue" ;
72
77
import ChecklistitemListitem from " @/components/checklistitem-listitem.vue" ;
78
+ import {CHECKLIST_TITLE_TO_ICON_MAP , getChecklistIconByTitle } from " @/util/constants.ts" ;
73
79
74
80
const props = defineProps <{
75
81
checklist: DummyChecklist ;
@@ -90,10 +96,17 @@ const firstThreeItemsSortedByChecked = computed(() => {
90
96
91
97
</script >
92
98
93
- <style >
99
+ <style scoped>
100
+ .card-header-icon {
101
+ margin-right : 16px ;
102
+ border : 1px solid var (--color-neutrals-blue );
103
+ border-radius : 56px ;
104
+ }
105
+
94
106
.pt-8 {
95
107
padding-top : 8px ;
96
108
}
109
+
97
110
.pb-8 {
98
111
padding-bottom : 8px ;
99
112
}
Original file line number Diff line number Diff line change 1
1
export const FIRSTNAME_DEFAULT = "World" ;
2
+
3
+ export function getChecklistIconByTitle ( checklistTitle : string ) {
4
+ return {
5
+ "Ich habe wenig Geld." : "./assets/img/placeholder_checklist_icon.png" ,
6
+ "Ich will umziehen." : "./assets/img/placeholder_checklist_icon.png" ,
7
+ "Ich manage eine Familie." : "./assets/img/placeholder_checklist_icon.png"
8
+ } [ checklistTitle ] ;
9
+ }
You can’t perform that action at this time.
0 commit comments