Skip to content

Commit 4f91b3d

Browse files
committed
💄 add new icon and finalize design
1 parent fe0645d commit 4f91b3d

File tree

6 files changed

+96
-12
lines changed

6 files changed

+96
-12
lines changed

personalization-webcomponents/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

personalization-webcomponents/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"fix": "prettier . --write && eslint . --fix"
1818
},
1919
"dependencies": {
20-
"@muenchen/muc-patternlab-vue": "5.2.0",
20+
"@muenchen/muc-patternlab-vue": "5.3.0-beta.1",
2121
"@vueuse/core": "13.3.0",
2222
"vue": "3.5.16"
2323
},

personalization-webcomponents/src/components/ChecklistCard.vue

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,15 @@
4545
<div
4646
style="padding-top: 16px; padding-bottom: 20px;"
4747
>
48-
<p v-for="(item) in firstThreeItemsSortedByChecked">
49-
<span>{{ item.checked ? "☑️" : "🔘"}}</span>
50-
<span>{{item.title}}</span>
51-
</p>
48+
<checklistitem-listitem
49+
v-for="(item, index) in firstThreeItemsSortedByChecked"
50+
:checklist-item="item"
51+
:class="{
52+
'pt-8': index != 0,
53+
'pb-8': index != firstThreeItemsSortedByChecked.length - 1
54+
}"
55+
>
56+
</checklistitem-listitem>
5257
</div>
5358

5459
<div>
@@ -64,6 +69,7 @@ import {MucCard} from "@muenchen/muc-patternlab-vue";
6469
import type DummyChecklist from "@/api/dummyservice/DummyChecklist.ts";
6570
import MucChip from "@/components/common/muc-chip.vue";
6671
import {computed} from "vue";
72+
import ChecklistitemListitem from "@/components/checklistitem-listitem.vue";
6773
6874
const props = defineProps<{
6975
checklist: DummyChecklist;
@@ -83,3 +89,12 @@ const firstThreeItemsSortedByChecked = computed(() => {
8389
});
8490
8591
</script>
92+
93+
<style>
94+
.pt-8 {
95+
padding-top: 8px;
96+
}
97+
.pb-8 {
98+
padding-bottom: 8px;
99+
}
100+
</style>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<template>
2+
<div
3+
class="circle"
4+
:class="checked ? 'checked' : ''"
5+
>
6+
</div>
7+
</template>
8+
9+
<script setup lang="ts">
10+
11+
import {MucIcon} from "@muenchen/muc-patternlab-vue";
12+
13+
const props = defineProps<{
14+
checked: boolean;
15+
}>();
16+
17+
</script>
18+
19+
<style scoped>
20+
.circle {
21+
width: 20px;
22+
height: 20px;
23+
border-radius: 24px;
24+
border: 2px solid var(--color-brand-main-blue);
25+
}
26+
27+
.circle.checked {
28+
background-color: var(--color-brand-main-blue);
29+
}
30+
</style>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<template>
2+
<div style="display: flex; align-items: center;">
3+
<checklist-checked-circle
4+
style="margin-right: 12px;"
5+
:checked="!!checklistItem.checked">
6+
</checklist-checked-circle>
7+
<div class="item-title">
8+
{{ checklistItem.title }}
9+
</div>
10+
</div>
11+
</template>
12+
13+
<script setup lang="ts">
14+
15+
import type DummyChecklistItem from "@/api/dummyservice/DummyChecklistItem.ts";
16+
import ChecklistCheckedCircle from "@/components/checklist-checked-circle.vue";
17+
18+
const props = defineProps<{
19+
checklistItem: DummyChecklistItem;
20+
}>();
21+
22+
</script>
23+
24+
<style scoped>
25+
.item-title {
26+
font-family: "Open Sans", "sans-serif";
27+
font-size: 18px ;
28+
}
29+
</style>

personalization-webcomponents/src/my-checklists.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
<div v-html="mucIconsSprite"/>
55
<!-- eslint-disable-next-line vue/no-v-html -->
66
<div v-html="customIconsSprite"/>
7-
<h1>Aktive Checklisten ({{ checklists.length }})</h1>
7+
<h1
8+
style="padding-bottom: 24px;"
9+
>
10+
<muc-icon icon="order-bool-ascending"></muc-icon>
11+
Aktive Checklisten ({{ checklists.length }})
12+
</h1>
813
<muc-card-container
914
style="grid-template-columns: repeat(auto-fit,589px)"
1015
>
@@ -27,12 +32,17 @@
2732
import customIconsSprite from "@muenchen/muc-patternlab-vue/assets/icons/custom-icons.svg?raw";
2833
import mucIconsSprite from "@muenchen/muc-patternlab-vue/assets/icons/muc-icons.svg?raw";
2934
import {onMounted, ref} from "vue";
30-
import {MucCardContainer, MucCard} from "@muenchen/muc-patternlab-vue";
35+
import {MucCardContainer, MucIcon} from "@muenchen/muc-patternlab-vue";
3136
import type DummyChecklist from "@/api/dummyservice/DummyChecklist.ts";
3237
import DummyChecklistService from "@/api/dummyservice/DummyChecklistService.ts";
3338
import ChecklistCard from "@/components/ChecklistCard.vue";
3439
import SkeletonLoader from "@/components/common/skeleton-loader.vue";
3540
41+
const props = defineProps<{
42+
checklistDetailUrl: string,
43+
newChecklistUrl: string
44+
}>();
45+
3646
const checklists = ref<DummyChecklist[]>([]);
3747
const loading = ref(false);
3848

0 commit comments

Comments
 (0)